forked from btclib-org/btclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (36 loc) · 1.2 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions.
# To use it, "python -m pip install tox" and then run "tox" from this directory.
#
# - check-manifest
# confirm that lists of files in version control and sdist do match
# - python setup.py check
# confirm required package meta-data in setup.py
# - readme_renderer (when using a ReStructuredText README)
# confirms your long_description will render correctly on PyPI.
[tox]
[testenv]
ignore_errors = True
deps =
-rrequirements-dev.txt
-rrequirements.txt
commands_pre =
isort .
black .
commands =
isort -c .
black --check .
pylint setup.py
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
bandit -r {toxinidir}/btclib
bandit -s B101 -r {toxinidir}/tests
flake8 .
pylint btclib
pylint tests
mypy .
pytest --cov-report term-missing:skip-covered --cov=btclib --cov=tests