diff --git a/Makefile b/Makefile index 1c169e390cde0fc9118291a97a542fa33bee9638..cd18d87c756829fc2979c0071740029acc0409a9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: docs tests check +.PHONY: docs tests check mypy pylint # generate documentation docs: @@ -8,6 +8,13 @@ docs: tests: python3 -m unittest ${TESTS_FILTER} +# check +check: mypy pylint + # check static typing -check: +mypy: python3 -m mypy duniterpy --ignore-missing-imports + +# check code errors +pylint: + pylint --disable=C --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ diff --git a/requirements_dev.txt b/requirements_dev.txt index e70f7780458caa75b832fd0b6325c44ef9177712..d175ea349ca5c1465e0bace6c04c2121ac2271b7 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,4 +1,5 @@ coveralls mypy +pylint sphinx sphinx_rtd_theme