-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
37 lines (32 loc) · 870 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
[tox]
requires =
tox>=4
env_list = lint, type, py38
[testenv]
description = run unit tests
deps =
pytest>=3
commands = pytest -v tests/ {posargs}
# NOTE: to use interactive debugger, comment the above line and uncomment the following two lines
# pytest-pudb
#commands = pytest --pudb -v tests/ {posargs}
[testenv:lint]
description = run linters
skip_install = true
ignore_errors = true
deps =
isort==5.12.0
pycodestyle==2.10.0
commands =
isort --profile black --length-sort --line-width 120 -c src/dnfile examples tests
pycodestyle --show-source src/dnfile examples tests
[testenv:type]
description = run type checks
deps =
pytest>=3 # required for tests/
mypy==1.4.1
commands = mypy --config-file .github/mypy/mypy.ini src/dnfile tests/
[pycodestyle]
ignore = E221, E222, E241, E266, W503
max-line-length = 180
statistics = True