Skip to content
Snippets Groups Projects
Commit 55adbde4 authored by Moul's avatar Moul
Browse files

[mod] #162: Add make isort rule

Add isort to check rule
Align mypy
parent 18c8e7ec
No related branches found
No related tags found
No related merge requests found
.PHONY: docs tests check check-format mypy pylint format build deploy deploy_test .PHONY: docs tests check check-format mypy isort pylint format build deploy deploy_test
.SILENT: deploy deploy_test # do not echo commands with password .SILENT: deploy deploy_test # do not echo commands with password
# generate documentation # generate documentation
...@@ -10,7 +10,7 @@ tests: ...@@ -10,7 +10,7 @@ tests:
poetry run python3 -m unittest ${TESTS_FILTER} poetry run python3 -m unittest ${TESTS_FILTER}
# check # check
check: mypy pylint check-format check: mypy isort pylint check-format
# check static typing # check static typing
mypy: mypy:
...@@ -18,6 +18,9 @@ mypy: ...@@ -18,6 +18,9 @@ mypy:
poetry run mypy tests --ignore-missing-imports poetry run mypy tests --ignore-missing-imports
poetry run mypy examples --ignore-missing-imports poetry run mypy examples --ignore-missing-imports
isort:
poetry run isort duniterpy tests examples
# check code errors # check code errors
pylint: pylint:
poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment