forked from tsunday/mappers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
177 lines (163 loc) · 2.72 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[tox]
envlist =
precommit,
py{27,35}-django110,
py{27,35,36,37}-django111,
py{35,36,37}-django20,
py{35,36,37}-django21,
py{35,36,37,38}-django22,
py{36,37,38}-django30,
flake8,
bandit,
xenon,
mypy,
importlint,
mkdocs,
vale,
doctest,
remarklint,
yamllint,
jscpd,
commitlint
isolated_build = true
[testenv:precommit]
basepython = python3.8
skip_install = true
deps =
pre-commit
commands =
pre-commit autoupdate
pre-commit run {posargs:--all-files}
commands_post =
sed -i 's/rev: .*$/rev: ""/g' .pre-commit-config.yaml
whitelist_externals =
sed
[testenv]
deps =
attrs
coverage
django110: Django==1.10.*
django111: Django==1.11.*
django20: Django==2.0.*
django21: Django==2.1.*
django22: Django==2.2.*
django30: Django==3.0.*
py{36,37,38}: pydantic
pytest
django{110,111,20,21,22,30}: pytest-django
pytest-randomly
pytest-timeout
PyYAML
tomlkit
setenv =
DJANGO_SETTINGS_MODULE = django_project.settings
commands =
pip install ./tests/helpers/.
coverage run -m pytest {posargs}
[testenv:flake8]
basepython = python3.8
skip_install = true
deps =
flake8
flake8-2020
flake8-bugbear
flake8-builtins
flake8-docstrings
flake8-eradicate
flake8-executable
flake8-fixme
flake8-print
flake8-pytest
flake8-pytest-style
flake8-tidy-imports
commands =
flake8
[testenv:bandit]
basepython = python3.8
skip_install = true
deps =
bandit
commands =
bandit -r src/
[testenv:xenon]
basepython = python3.8
skip_install = true
deps =
xenon
commands =
xenon --max-absolute A --max-modules A --max-average A src/
[testenv:mypy]
basepython = python3.8
skip_install = true
deps =
django-stubs
mypy
pydantic
commands =
mypy src/
[testenv:importlint]
basepython = python3.8
deps =
import-linter
commands =
lint-imports
[testenv:mkdocs]
basepython = python3.8
extras = mkdocs
deps =
commands =
mkdocs {posargs:build}
[testenv:vale]
basepython = python3.8
skip_install = true
deps =
commands =
vale --glob='*.md' docs README.md
whitelist_externals =
vale
[testenv:doctest]
basepython = python3.8
deps =
coverage
Django
PyYAML
commands =
pip install ./tests/helpers/.
coverage run -m mddoctest
[testenv:remarklint]
basepython = python3.8
skip_install = true
deps =
commands =
npm install
npx remark --frail .
whitelist_externals =
npm
npx
[testenv:yamllint]
basepython = python3.8
skip_install = true
deps =
yamllint
commands =
yamllint --strict .
[testenv:jscpd]
basepython = python3.8
skip_install = true
deps =
commands =
npm install
npx jscpd src/
whitelist_externals =
npm
npx
[testenv:commitlint]
basepython = python3.8
skip_install = true
deps =
commands =
npm install
npx commitlint --from master
whitelist_externals =
npm
npx