Skip to content

Commit

Permalink
Implement ls API
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Aug 14, 2024
1 parent 2b7341b commit 728c223
Show file tree
Hide file tree
Showing 6 changed files with 695 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES CONTROL]
disable=R0913,W0718,W0223
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.ONESHELL:
ENV_PREFIX=$(shell poetry env info -p 2>/dev/null || { [ -d "/home/runner/.local" ] && echo "/home/runner/.local"; })/bin/
ENV_PREFIX=$(shell poetry env info -p 2>/dev/null)/bin/
TEST_DIR?="tosfs/tests/"

.PHONY: help
Expand Down Expand Up @@ -28,9 +28,9 @@ show: ## Show the current environment.

.PHONY: install
install: ## Install the project in dev mode.
$(ENV_PREFIX)pip install poetry
$(ENV_PREFIX)poetry lock
$(ENV_PREFIX)poetry install --with dev
pip install poetry
poetry lock
poetry install --with dev

.PHONY: fmt
fmt: ## Format code using black & isort.
Expand All @@ -49,7 +49,7 @@ lint: ## Run pep8, black, mypy linters.

.PHONY: test
test: ## Run tests and generate coverage report.
$(ENV_PREFIX)pytest -v -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 ${TEST_DIR}
$(ENV_PREFIX)pytest -vv -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 ${TEST_DIR}

.PHONY: watch
watch: ## Run tests on every change.
Expand Down
Loading

0 comments on commit 728c223

Please sign in to comment.