-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
58 lines (50 loc) · 1 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
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
skipsdist=True
envlist=
lint,
python{3.8,3.11},
coverage
[testenv]
deps=
coverage[toml]
commands=
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -b -m coverage run --parallel-mode --source='regdown' setup.py test {posargs}
basepython=
python3.8: python3.8
python3.11: python3.11
[testenv:lint]
basepython=python3.11
deps=
black
ruff
isort
commands=
black --check regdown setup.py
ruff regdown
isort --check-only --diff regdown
[testenv:coverage]
basepython=python3.11
deps=
coverage
diff_cover
commands=
coverage combine
coverage xml
diff-cover coverage.xml --compare-branch=origin/main --fail-under=100
[flake8]
ignore=E731,W503,W504
exclude=
.tox,
__pycache__,
[isort]
combine_as_imports=1
lines_after_imports=2
include_trailing_comma=1
multi_line_output=3
skip=.tox
use_parentheses=1
default_section=THIRDPARTY
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[coverage:run]
omit =
tests.py