-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtox.ini
85 lines (72 loc) · 1.69 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
[flake8]
;E203 for black (whitespace before : in slices)
;F811 for @overload
;W503 for black (operators and newlines)
ignore = E203, F811, E501, W503
max-line-length = 88
[coverage:run]
; branch = true: would need a lot of pragma: no branch on infinite loops.
parallel = true
omit =
.tox/*
tests/*
[coverage:report]
skip_covered = True
show_missing = True
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
[tox]
envlist = py3{7,8,9,10,11}, flake8, mypy, black, pylint, pydocstyle, coverage, isort, ruff
isolated_build = True
skip_missing_interpreters = True
[testenv]
deps =
pytest
coverage
hypothesis
commands = coverage run -m pytest -m "not slow"
setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
deps = coverage
depends = py37, py38, py39, py310, py311
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine
coverage report --fail-under 100
[testenv:flake8]
deps =
flake8
flake8-bugbear
skip_install = True
commands = flake8 tests/ oeis.py
[testenv:black]
deps = black
skip_install = True
commands = black --check --diff tests/ oeis.py
[testenv:mypy]
deps = mypy
skip_install = True
commands = mypy --ignore-missing-imports oeis.py
[testenv:pylint]
deps = pylint
commands = pylint --disable import-outside-toplevel,invalid-name oeis.py
[testenv:pydocstyle]
deps = pydocstyle
skip_install = True
commands = pydocstyle oeis.py
[testenv:isort]
deps = isort
skip_install = True
commands = isort --profile=black oeis.py
[testenv:ruff]
deps = ruff
skip_install = True
commands = ruff check oeis.py