File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Directories
2- SRC_DIRS := project_name/ test/ # FIXME
2+ SRC_PATHS := project_name/ test/ # FIXME
33
44# Tasks
55.PHONY : help
@@ -19,16 +19,16 @@ help:
1919format :
2020 @echo " ==> Sorting imports..."
2121 @# Currently, the Ruff formatter does not sort imports, see https://docs.astral.sh/ruff/formatter/#sorting-imports
22- @poetry run ruff check --select I --fix $(SRC_DIRS )
22+ @poetry run ruff check --select I --fix $(SRC_PATHS )
2323 @echo " =====> Formatting code..."
24- @poetry run ruff format $(SRC_DIRS )
24+ @poetry run ruff format $(SRC_PATHS )
2525
2626.PHONY : check_format
2727check_format :
2828 @echo " =====> Checking format..."
29- @poetry run ruff format --check --diff $(SRC_DIRS )
29+ @poetry run ruff format --check --diff $(SRC_PATHS )
3030 @echo " =====> Checking imports are sorted..."
31- @poetry run ruff check --select I --exit-non-zero-on-fix $(SRC_DIRS )
31+ @poetry run ruff check --select I --exit-non-zero-on-fix $(SRC_PATHS )
3232
3333.PHONY : ruff
3434ruff :
You can’t perform that action at this time.
0 commit comments