-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
48 lines (43 loc) · 954 Bytes
/
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
47
48
[tox]
envlist = py36,py37,py38,py39,flake8,pylint,black
[testenv]
deps =
coverage
pytest
pytest-cov
-Ur{toxinidir}/requirements.txt
commands =
coverage erase
pytest -v --cov={envsitepackagesdir}/src --cov-report=term-missing --cov-report=xml
coverage html
[testenv:flake8]
description = "Running flake8"
basepython = python3
deps =
flake8
flake8-builtins
flake8-docstrings
flake8-bugbear
flake8-colors
pep8-naming
flake8-comprehensions
flake8-import-order
flake8-import-style
commands = flake8
[testenv:pylint]
description = "Running pylint"
basepython = python3
deps =
pylint
-Ur{toxinidir}/requirements.txt
commands = pylint --errors-only src/
[testenv:black]
description = "Running black"
basepython = python3
skip_install = true
deps = black
commands = black --check --diff setup.py src/ tests/
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests
show-source = True
max-line-length = 88