-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
39 lines (32 loc) · 728 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
[tox]
envlist = py-black, py-flake8, py-pytest
[testenv:py-black]
commands = python -mblack --check .
deps = black
[testenv:py-black-reformat]
commands = python -mblack .
deps = black
[testenv:py-flake8]
commands = python -mflake8
deps = flake8
[testenv:py-pytest]
commands = python -mpytest --cov=dsari --cov-report=term-missing
deps = pytest
pytest-cov
-r{toxinidir}/requirements.txt
[testenv:py-pytest-quick]
commands = python -mpytest -m "not slow"
deps = pytest
-r{toxinidir}/requirements.txt
[flake8]
exclude =
.git,
__pycache__,
.tox,
# TODO: remove C901 once complexity is reduced
ignore = C901,E203,E231,W503
max-line-length = 120
max-complexity = 10
[pytest]
markers =
slow