forked from thedrow/dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
150 lines (139 loc) · 2.84 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
[tox]
envlist =
precommit,
py{27,35}-django110,
py{27,35,36}-django111,
py{35,36,37}-django20,
py{35,36,37}-django21,
py{35,36,37}-django22,
py{27,35,36,37}-flask,
py{27,35,36,37}-celery,
flake8,
bandit,
mypy,
importlint,
mkdocs,
doctest,
remarklint,
yamllint,
jscpd
isolated_build = true
[testenv:precommit]
basepython = python3.7
skip_install = true
deps =
pre-commit
commands_pre =
commands =
pre-commit autoupdate
pre-commit run --all-files
commands_post = sed -i "s/rev: .*$/rev: ''/g" .pre-commit-config.yaml
whitelist_externals = sed
[testenv]
deps =
celery: celery
django{110,111,20,21,22}: coreapi
coverage
django110: Django==1.10.*
django111: Django==1.11.*
django20: Django==2.0.*
django21: Django==2.1.*
django22: Django==2.2.*
django{110,111}: django-filter==1.1.*
django{20,21,22}: django-filter
django{110,111,20,21,22}: djangorestframework
flask: Flask
pytest
django{110,111,20,21,22}: pytest-django
flask: pytest-flask
pytest-randomly
pytest-timeout
django{110,111,20,21,22}: pytz
PyYAML
tomlkit
setenv =
DJANGO_SETTINGS_MODULE = django_project.settings
commands_pre = pip install ./tests/helpers/.
commands = coverage run -m pytest []
[testenv:flake8]
basepython = python3.7
skip_install = true
deps =
flake8
flake8-2020
flake8-bugbear
flake8-builtins
flake8-eradicate
flake8-executable
flake8-print
flake8-pytest
flake8-pytest-style
flake8-tidy-imports
commands_pre =
commands = flake8
[testenv:bandit]
basepython = python3.7
skip_install = true
deps =
bandit
commands_pre =
commands = bandit -r src/
[testenv:mypy]
basepython = python3.7
skip_install = true
deps =
django-stubs
djangorestframework-stubs
mypy
commands_pre =
commands = mypy src/
[testenv:importlint]
basepython = python3.7
deps =
import-linter
commands_pre =
commands = lint-imports
[testenv:mkdocs]
basepython = python3.7
extras = mkdocs
deps =
commands_pre =
commands = mkdocs build
[testenv:doctest]
basepython = python3.7
deps =
attrs
celery
coverage
Django
django-filter
djangorestframework
pytest
requests
responses
commands = coverage run -m mddoctest
[testenv:remarklint]
basepython = python3.7
skip_install = true
deps =
commands_pre =
commands =
npm install
npm run lint:md
whitelist_externals = npm
[testenv:yamllint]
basepython = python3.7
skip_install = true
deps =
yamllint
commands_pre =
commands = yamllint --strict .
[testenv:jscpd]
basepython = python3.7
skip_install = true
deps =
commands_pre =
commands =
npm install
npm run lint:cp
whitelist_externals = npm