added commands_pre
@@ -18,23 +18,36 @@ deps =
-rrequirements.txt
-rrequirements-dev.txt
+commands_pre =
+ isort btclib
+ isort tests
+
+ black btclib
+ black tests
+
commands =
- check-manifest
isort -c btclib
+ isort -c tests
+
black --check btclib
- flake8 btclib
- pylint btclib
- bandit -c .bandit.yml -r {toxinidir}/btclib
- mypy btclib
+ black --check tests
+
+ check-manifest
# This repository uses a Markdown long_description, so the -r flag
# to `setup.py check` is not needed. If your project contains a
# README.rst, use `python setup.py check -m -r -s` instead.
python setup.py check -m -s
- isort -c tests
- black --check tests
+ bandit -c .bandit.yml -r {toxinidir}/btclib
+ bandit -c .bandit.yml -s B101 -r {toxinidir}/btclib/tests
+
+ flake8 btclib
flake8 tests
+
+ pylint btclib
pylint tests
- bandit -c .bandit.yml -s B101 -r {toxinidir}/btclib/tests
+
+ mypy btclib
mypy tests
+
pytest --cov-report term-missing:skip-covered --cov=btclib --cov=tests
