-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
93 lines (82 loc) · 1.63 KB
/
tox.ini
File metadata and controls
93 lines (82 loc) · 1.63 KB
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
93
[tox]
envlist = py38, py39, py310, py311, py312, flake8, mypy, coverage
isolated_build = true
[testenv]
deps =
pytest>=7.0.0
pytest-cov>=4.0.0
pytest-mock>=3.10.0
responses>=0.22.0
commands = pytest {posargs}
[testenv:flake8]
deps =
flake8>=5.0.0
flake8-docstrings
commands = flake8 pyhetznerserver tests
[testenv:mypy]
deps =
mypy>=1.0.0
types-requests
commands = mypy pyhetznerserver --ignore-missing-imports
[testenv:black]
deps = black>=22.0.0
commands = black --check --diff pyhetznerserver tests
[testenv:isort]
deps = isort>=5.10.0
commands = isort --check-only --diff pyhetznerserver tests
[testenv:coverage]
deps =
pytest>=7.0.0
pytest-cov>=4.0.0
commands =
pytest --cov=pyhetznerserver --cov-report=term-missing --cov-report=html --cov-report=xml
[testenv:docs]
deps =
sphinx>=5.0.0
sphinx-rtd-theme>=1.2.0
sphinx-autodoc-typehints>=1.19.0
commands =
sphinx-build -b html docs docs/_build/html
[testenv:security]
deps =
bandit>=1.7.0
safety>=2.0.0
commands =
bandit -r pyhetznerserver/
safety check
[flake8]
max-line-length = 100
max-complexity = 10
exclude =
.git,
__pycache__,
.tox,
.eggs,
*.egg,
build,
dist,
.venv,
venv
ignore =
E203,
W503,
D100,
D104
[coverage:run]
source = pyhetznerserver
omit =
*/tests/*
*/test_*
setup.py
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
class .*\bProtocol\):
@(abc\.)?abstractmethod