Skip to content

Commit

Permalink
Introduce ruff to check code style
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Aug 17, 2024
1 parent f56db65 commit 4b8547e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ install: ## Install the project in dev mode.

.PHONY: fmt
fmt: ## Format code using black & isort.
$(ENV_PREFIX)poetry run ruff check tosfs/ --fix
poetry run ruff check tosfs/ --fix
$(ENV_PREFIX)isort tosfs/
$(ENV_PREFIX)black -l 88 tosfs/

.PHONY: lint
lint: ## Run pep8, black, mypy linters.
set -e;
$(ENV_PREFIX)black -l 88 --check tosfs/
$(ENV_PREFIX)poetry run ruff check tosfs/
poetry run ruff check tosfs/
$(ENV_PREFIX)mypy --ignore-missing-imports tosfs/

.PHONY: test
Expand Down

0 comments on commit 4b8547e

Please sign in to comment.