@@ -14,38 +14,39 @@ help:
1414 @echo " Targets:"
1515 @echo " up Updates dev/test dependencies"
1616 @echo " deps Ensure dev/test dependencies are installed"
17- @echo " check Checks that build is sane"
18- @echo " test Runs all tests"
19- @echo " docs Builds the documentation"
17+ @echo " check Checks that build is sane"
18+ @echo " test Runs all tests"
19+ @echo " docs Builds the documentation"
2020 @echo " style Auto-formats the code"
21+ @echo " lint Auto-formats the code and check type hints"
2122
2223up :
2324 @poetry update
2425
2526deps :
26- @poetry install -E asyncpg -E aiomysql -E accel -E psycopg -E asyncodbc
27+ @poetry install --all-groups -E asyncpg -E accel -E psycopg -E asyncodbc -E aiomysql
2728
2829deps_with_asyncmy :
29- @poetry install -E asyncpg -E asyncmy -E accel -E psycopg -E asyncodbc
30+ @poetry install --all-groups -E asyncpg -E accel -E psycopg -E asyncodbc -E asyncmy
3031
31- check : deps build _check
32+ check : build _check
3233_check :
33- ifneq ($(shell which black) ,)
34- black --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
35- endif
34+ ruff format --check $(checkfiles ) || (echo " Please run 'make style' to auto-fix style issues" && false)
3635 ruff check $(checkfiles )
3736 mypy $(checkfiles )
3837 # pylint -d C,W,R $(checkfiles)
3938 # bandit -r $(checkfiles)make
4039 twine check dist/*
4140
42- lint : deps build
43- ifneq ($(shell which black) ,)
44- black $(checkfiles)
45- endif
41+ style : deps _style
42+ _style :
43+ ruff format $(checkfiles )
4644 ruff check --fix $(checkfiles )
45+
46+ lint : build _lint
47+ _lint :
48+ $(MAKE ) _style
4749 mypy $(checkfiles )
48- # pylint $(checkfiles)
4950 bandit -c pyproject.toml -r $(checkfiles )
5051 twine check dist/*
5152
@@ -94,11 +95,6 @@ docs: deps
9495 rm -fR ./build
9596 sphinx-build -M html docs build
9697
97- style : deps _style
98- _style :
99- isort -src $(checkfiles )
100- black $(checkfiles )
101-
10298build : deps
10399 rm -fR dist/
104100 poetry build
0 commit comments