-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
49 lines (42 loc) · 793 Bytes
/
tox.ini
File metadata and controls
49 lines (42 loc) · 793 Bytes
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
49
[tox]
labels =
build = clean, _build
[testenv]
deps =
pytest
coverage
commands =
coverage run pytest -rs {posargs}
coverage report
# ensure 100% coverage of tests
coverage report --fail-under 100 --include tests/*
[isort]
profile = black
[testenv:format]
skip_install = true
deps =
isort
black
commands =
isort {posargs:.}
black {posargs:.}
[flake8]
max_line_length = 120
[testenv:lint]
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings>=1.3.1
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8 {posargs:{[common]src}}
[testenv:clean]
skip_install = true
deps = pyclean
commands = pyclean {posargs:. --debris}
[testenv:_build]
skip_install = true
deps = build
commands = python -m build -w