-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
92 lines (82 loc) · 1.51 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[tox]
envlist =
{py37,py38,py39,py310}
linting
publish
[testenv]
deps =
coverage
hypothesis
isodate
pytest
pytest-benchmark
commands =
coverage run -m pytest {posargs}
coverage report
coverage xml
[testenv:linting]
deps =
isodate
bandit
black
dlint
flake8
flake8-bugbear
isort<5
mypy
pylint
commands =
flake8 src/isoduration tests
pylint src/isoduration
mypy --strict --no-error-summary src/isoduration
black -q --check src/isoduration tests
isort -rc -c src/isoduration
bandit -qr src/isoduration
[testenv:publish]
skip_install = true
passenv =
TWINE_REPOSITORY_URL
TWINE_USERNAME
TWINE_PASSWORD
deps =
wheel
setuptools
twine
commands =
python setup.py sdist bdist_wheel clean --all
- twine upload --non-interactive dist/*
[pytest]
addopts = -ra
testpaths = tests
[coverage:run]
branch = true
source = isoduration
[coverage:paths]
source =
src/isoduration
.tox/*/lib/python*/site-packages/isoduration
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
fail_under = 98
precision = 2
show_missing = true
[flake8]
max-line-length = 88
max-complexity = 15
select = C,E,F,W,B,B950
ignore = E203, E501, W503
[isort]
line_length = 88
known_first_party = isoduration
# Vertical Hanging Indent.
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true