-
Notifications
You must be signed in to change notification settings - Fork 72
/
tox.ini
102 lines (87 loc) · 1.77 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
102
[tox]
envlist = py3, lint, format, mypy
[testenv:py3]
deps =
pytest > 5
hypothesis == 6.15.0
commands =
pytest -m "not generated" {posargs}
[testenv:lint]
deps =
pytest > 5
hypothesis == 6.15.0
pylint == 3.3.1
typing-extensions
mccabe
flake8 == 7.1.1
flake8-comprehensions
flake8-bugbear
commands =
pylint -rn -j0 setup.py gdtoolkit/ tests/ --rcfile=pylintrc
flake8 gdtoolkit/ --max-complexity 20 --config=tox.ini
[testenv:format]
deps =
black == 22.3.0
commands =
black --check \
setup.py \
gdtoolkit/ \
tests/common.py \
tests/conftest.py \
tests/formatter \
tests/linter \
tests/parser \
tests/gdradon
[testenv:mypy]
setenv =
MYPYPATH = stubs
deps =
mypy == 0.971
types-pkg_resources == 0.1.3
types-PyYAML == 6.0.12.12
types-docopt
commands =
mypy gdtoolkit/ tests/ --config-file tox.ini
[testenv:radon]
deps =
radon
commands =
radon cc . -s -n C
radon mi . -s -n B
[testenv:coverage]
deps =
pytest > 5
hypothesis == 6.15.0
pytest-cov
commands =
pytest --cov-branch --cov=./gdtoolkit --cov-report=term
[testenv:profiling]
deps =
pytest > 5
hypothesis == 6.15.0
pytest-profiling
commands =
pytest --profile-svg {posargs}
[testenv:deadcode]
deps =
vulture == 2.6
commands =
vulture gdtoolkit/ {posargs}
[flake8]
ignore =
E121,E123,E126,E226,E24,E704,W503,W504
, E203
, E231,E702,E275
, F401
max-line-length = 100
[mypy-hypothesis]
ignore_missing_imports = True
[mypy-hypothesis.extra]
ignore_missing_imports = True
[mypy-hypothesis.extra.lark]
ignore_missing_imports = True
[mypy-pytest]
ignore_missing_imports = True
[mypy-radon.*]
ignore_missing_imports = True
[mypy]