Merge of check_tests_and_examples to dev
3 unresolved threads
3 unresolved threads
- Add mypy, pylint and black check on tests and examples folders
- Fix mypy and pylint alerts in code
- Black format tests and examples folders
- Fix a bug in pubsec v1 load file function
Edited by Vincent Texier
Merge request reports
Activity
14 14 # check static typing 15 15 mypy: 16 16 python3 -m mypy duniterpy --ignore-missing-imports 17 python3 -m mypy tests --ignore-missing-imports 18 python3 -m mypy examples --ignore-missing-imports 17 19 18 20 # check code errors 19 21 pylint: 20 pylint --disable=C,R0913,R0903,R0902,R0914,R0912,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ 22 pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ 23 pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 tests/ 24 pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 examples/ This three tools are treating the whole files and will anyway stop at first encountered error.
This is incorrect, as I have experienced the opposite when implementing those commands.
a
make
recipe (say pylint for example) only stop after a command line exit with a status code > 0So, with only one command line, the recipe will only stop after all folders have been checked, displaying all alerts at the end. This is not what I want.
With 3 command lines, the recipe will stop at the first one.
Edited by Vincent Texier
Please register or sign in to reply