Debian Codegraph @

tox.ini

raw symbols SCIP
1 [tox]
2 envlist = coverage-clean,py{3.8,3.9,3.10,3.11,3.12,py3.8,3.9-nooptionals},coverage-report,flake8,isort,mypy
3
4 [testenv]
5 deps =
6 coverage
7 pytest
8 attrs
9 {py3.8,pypy3.8}: twisted
10 py3.8: asgiref
11 # See https://github.com/django/asgiref/issues/393 for why we need to pin asgiref for pypy
12 pypy3.8: asgiref==3.6.0
13 commands = coverage run --parallel -m pytest {posargs}
14
15 [testenv:py3.9-nooptionals]
16 commands = coverage run --parallel -m pytest {posargs}
17
18 [testenv:coverage-clean]
19 deps = coverage
20 skip_install = true
21 commands = coverage erase
22
23 [testenv:coverage-report]
24 deps = coverage
25 skip_install = true
26 commands =
27 coverage combine
28 coverage report
29
30 [testenv:flake8]
31 deps =
32 flake8==6.0.0
33 flake8-docstrings==1.6.0
34 flake8-import-order==0.18.2
35 skip_install = true
36 commands =
37 flake8 prometheus_client/ tests/ setup.py
38
39 [testenv:isort]
40 deps =
41 isort==5.10.1
42 skip_install = true
43 commands =
44 isort --check prometheus_client/ tests/ setup.py
45
46 [testenv:mypy]
47 deps =
48 pytest
49 asgiref
50 mypy==0.991
51 skip_install = true
52 commands =
53 mypy --install-types --non-interactive prometheus_client/ tests/
54
55 [flake8]
56 ignore =
57 D,
58 E303,
59 E402,
60 E501,
61 E722,
62 E741,
63 F821,
64 F841,
65 W291,
66 W293,
67 W503,
68 E129,
69 E731
70
71 per-file-ignores = prometheus_client/__init__.py:F401
72 import-order-style = google
73 application-import-names = prometheus_client
74
75 [isort]
76 force_alphabetical_sort_within_sections = True
77 force_sort_within_sections = True
78 include_trailing_comma = True
79 multi_line_output = 5