-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
147 lines (131 loc) · 2.68 KB
/
Copy pathtox.ini
File metadata and controls
147 lines (131 loc) · 2.68 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[tox]
isolated_build = true
envlist =
python3.8,
python3.9,
python3.10,
python3.11,
python3.12,
python3.13,
python3.13t,
python3.14,
python3.14t,
pypy3.8,
pypy3.9,
pypy3.10,
pypy3.11,
black,
flake8,
pyright,
linters,
skip_missing_interpreters = true
[gh-actions]
python =
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12
3.13: python3.13
3.13t: python3.13t
3.14: python3.14
3.14t: python3.14t
pypy-3.8: pypy3.8
pypy-3.9: pypy3.9
pypy-3.10: pypy3.10
pypy-3.11: pypy3.11
[testenv]
deps =
-rrequirements_dev.txt
commands =
pytest -v --cov=src/qs_codec --cov-report=xml
[testenv:black]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands =
black src/qs_codec tests/
[testenv:isort]
basepython = python3
skip_install = true
profile = black
deps =
-rrequirements_dev.txt
commands =
isort --check-only --diff .
[testenv:flake8]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands = flake8 src/qs_codec
[testenv:pylint]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands =
pylint --rcfile=tox.ini src/qs_codec
[testenv:pypy3.8]
basepython = pypy3.8
commands =
# PyPy 7.3.11 can segfault during pytest assertion rewriting before tests run.
pytest --assert=plain -v --cov=src/qs_codec --cov-report=xml
[testenv:pypy3.9]
basepython = pypy3.9
[testenv:pypy3.10]
basepython = pypy3.10
[testenv:pypy3.11]
basepython = pypy3.11
[testenv:bandit]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands =
bandit -r src/qs_codec -c .bandit.yml
[testenv:mypy]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands =
mypy src/qs_codec
[testenv:pyright]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands =
pyright src/qs_codec
[testenv:linters]
basepython = python3
skip_install = true
deps =
{[testenv:black]deps}
{[testenv:isort]deps}
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:bandit]deps}
{[testenv:mypy]deps}
{[testenv:pyright]deps}
commands =
{[testenv:black]commands}
{[testenv:isort]commands}
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:bandit]commands}
{[testenv:mypy]commands}
{[testenv:pyright]commands}
[flake8]
ignore = I100,I201,I202,D203,D401,W503,E203,F401,F403,C901,E501
exclude =
*__init__.py
.tox
max-complexity = 10
max-line-length = 88
import-order-style = pycharm
application-import-names = flake8
[pylint]
disable = C0209,C0301,C0411,R,W0107,W0622