From 4b8547e52fb775b7effeac9f3b385360692432fc Mon Sep 17 00:00:00 2001 From: yanghua Date: Sat, 17 Aug 2024 15:26:08 +0800 Subject: [PATCH] Introduce ruff to check code style --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index df6b9b0..73a7fb2 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ 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/ @@ -42,7 +42,7 @@ fmt: ## Format code using black & isort. 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