-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
68 lines (60 loc) · 1.2 KB
/
tox.ini
File metadata and controls
68 lines (60 loc) · 1.2 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
[tox]
minversion = 3.25.0
envlist = py38, py39, py310, py311, py312, lint, mypy
isolated_build = True
skip_missing_interpreters = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest>=7.0.0
pytest-cov>=4.0.0
commands =
pytest --cov=cloudflare_ufw_sync --cov-report=term {posargs:tests}
[testenv:lint]
deps =
flake8>=6.0.0
black>=23.0.0
isort>=5.12.0
commands =
flake8 src tests
black --check src tests
isort --check src tests
[testenv:mypy]
deps =
mypy>=1.0.0
types-requests>=2.28.0
types-PyYAML>=6.0.0
commands =
mypy src
[testenv:format]
deps =
black>=23.0.0
isort>=5.12.0
commands =
black src tests
isort src tests
[flake8]
max-line-length = 127
select = E9,F63,F7,F82
exclude = .git,__pycache__,build,dist
count = True
show-source = True
statistics = True
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts = --cov=cloudflare_ufw_sync --cov-report=xml --cov-report=term
[coverage:run]
source = cloudflare_ufw_sync
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
pass
omit =
tests/*