-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
101 lines (87 loc) · 1.47 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tox]
envlist =
py3
format
pylint
pyroma
flake8
pycodestyle
bandit
pydocstyle
[testenv]
basepython = python3
deps =
pyben
pytest-clarity
pytest-cov
pytest
pytest-icdiff
pytest-instafail
pytest-randomly
commands =
pytest --cov=torrentfileQt --cov=tests
coverage xml
coverage html
[testenv:pylint]
basepython = python3
deps =
pylint
pytest
commands =
pylint torrentfileQt tests
[testenv:pyroma]
basepython = python3
deps =
pyroma
commands =
pyroma .
[testenv:flake8]
basepython = python3
deps =
pyflakes
mccabe
flake8[mccabe]
commands =
flake8 torrentfileQt --max-complexity 20
flake8 tests --max-complexity 20
[testenv:format]
basepython = python3
deps =
black
commands =
black tests torrentfileQt
[testenv:twinecheck]
basepython = python3
deps =
twine
build
commands =
python -m build --sdist
twine check dist/*
[testenv:bandit]
basepython = python3
deps =
toml
bandit[toml]
commands =
bandit -r -c pyproject.toml torrentfileQt tests
[testenv:pycodestyle]
basepython = python3
deps =
pycodestyle
commands =
pycodestyle torrentfileQt tests
[testenv:pydocstyle]
basepython = python3
deps =
pydocstyle
commands =
pydocstyle torrentfileQt tests
[pydocstyle]
ignore = D200, D210, D212, D213, D413, D407, D406, D203
[pycodestyle]
ignore = E741, E731, E203, E501
[mccabe]
ignore = MC0001
[flake8]
ignore = F401, E731, E501, E203