@@ -8,14 +8,6 @@ TEST_DIR := tests
88help :
99 @cat Makefile | grep ' ^## ' --color=never | cut -c4- | sed -e " ` printf ' s/ - /\t- /;' ` " | column -s " ` printf ' \t' ` " -t
1010
11- # # black - Runs the Black Python formatter against the project
12- black :
13- $(VIRTUAL_BIN ) /black $(PROJECT_NAME ) / $(TEST_DIR ) /
14-
15- # # black-check - Checks if the project is formatted correctly against the Black rules
16- black-check :
17- $(VIRTUAL_BIN ) /black $(PROJECT_NAME ) / $(TEST_DIR ) / --check
18-
1911# # build - Builds the project in preparation for release
2012build :
2113 $(VIRTUAL_BIN ) /python -m build
@@ -33,10 +25,6 @@ coverage:
3325docs :
3426 $(VIRTUAL_BIN ) /pdoc $(PROJECT_NAME ) -o docs
3527
36- # # flake8 - Lint the project with flake8
37- flake8 :
38- $(VIRTUAL_BIN ) /flake8 $(PROJECT_NAME ) / $(TEST_DIR ) /
39-
4028# # init-examples-submodule - Initialize the examples submodule
4129init-examples-submodule :
4230 git submodule init
@@ -52,19 +40,15 @@ update-examples-submodule:
5240 git submodule init
5341 git submodule update --remote
5442
55- # # isort - Sorts imports throughout the project
56- isort :
57- $(VIRTUAL_BIN ) /isort $(PROJECT_NAME ) / $(TEST_DIR ) /
58-
59- # # isort-check - Checks that imports throughout the project are sorted correctly
60- isort-check :
61- $(VIRTUAL_BIN ) /isort $(PROJECT_NAME ) / $(TEST_DIR ) / --check-only
62-
63- # # lint - Run linters on the project
64- lint : black-check isort-check flake8 mypy scan
43+ # # lint - Lints the project
44+ lint :
45+ $(VIRTUAL_BIN ) /ruff check $(PROJECT_NAME ) / $(TEST_DIR ) /
46+ $(VIRTUAL_BIN ) /ruff format --check $(PROJECT_NAME ) / $(TEST_DIR ) /
6547
66- # # lint-fix - Runs all formatting tools against the project
67- lint-fix : black isort
48+ # # lint-fix - Fixes lint issues
49+ lint-fix :
50+ $(VIRTUAL_BIN ) /ruff check --fix $(PROJECT_NAME ) / $(TEST_DIR ) /
51+ $(VIRTUAL_BIN ) /ruff format $(PROJECT_NAME ) / $(TEST_DIR ) /
6852
6953# # mypy - Run mypy type checking on the project
7054mypy :
8468test :
8569 $(VIRTUAL_BIN ) /pytest
8670
87- .PHONY : help black black-check build clean coverage docs flake8 install isort isort-check lint lint-fix mypy release scan test
71+ .PHONY : help build clean coverage docs install lint lint-fix mypy release scan test
0 commit comments