-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (51 loc) · 1.01 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
[tox]
isolated_build = True
envlist = py37,py38,py39,py310,py311,py312,black,coverage,isort,pre-commit
skip_missing_interpreters = true
[coverage:run]
omit =
rdns_reaper/test
[coverage:report]
exclude_lines =
def test_*
pragma: no cover
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
class .*\bProtocol\):
@(abc\.)?abstractmethod
[testenv]
deps = pytest
commands = pytest rdns_reaper/
[testenv:coverage]
deps =
pytest
coverage
commands =
coverage run --branch -m pytest rdns_reaper/
coverage report -m
[testenv:black]
allowlist_externals = black
deps =
black
commands = black rdns_reaper/ --check
[testenv:isort]
deps =
isort
commands = isort rdns_reaper/ --check
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312