Skip to content

Commit

Permalink
Python: tox -e all (iotaledger#1964)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
Alex6323 and thibault-martinez authored Feb 7, 2024
1 parent 85e4a09 commit c5a0d74
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bindings/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ commands =
description = Run format checker {basepython}
deps = autopep8
commands =
autopep8 --exclude .venv --diff --recursive --aggressive --max-line-length 120 --exit-code .
autopep8 --exclude env --diff --recursive --aggressive --max-line-length 120 --exit-code .

[testenv:lint-sdk]
description = Run pylint {basepython} on iota_sdk
Expand All @@ -48,3 +48,17 @@ deps =
commands =
pip install .
pylint --disable=missing-function-docstring,missing-class-docstring --rcfile=.pylintrc tests/**/*.py

[testenv:all]
description = Helper command to ensure locally that Python CI checks will pass.
deps =
-r requirements-dev.txt
pylint
autopep8
commands =
autopep8 --exclude env --in-place --recursive --aggressive --max-line-length 120 --exit-code .
pip install .
pylint --rcfile=.pylintrc iota_sdk/**/*.py
pylint --rcfile=.pylintrc examples/**/*.py
pylint --disable=missing-function-docstring,missing-class-docstring --rcfile=.pylintrc tests/**/*.py
pytest -v

0 comments on commit c5a0d74

Please sign in to comment.