This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
192 lines (168 loc) · 3.38 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[tox]
envlist =
clean,
test,
py{36,37,38,39},
cov
static,
lint,
docs,
isort,
black,
skip_missing_interpreters = True
isolated_build = True
[testenv:djdoc]
basepython = python3.9
deps =
django-doctor
django
commands =
django_doctor check --jobs=1
skip_install: true
[testenv:djlint]
basepython = python3.9
deps = djlint
commands =
djlint atlas -e html.dj --ignore="W013"
djlint atlas --ignore="W013,W018"
skip_install: true
[testenv:isort]
deps = isort
commands = isort atlas
skip_install: true
[testenv:black]
deps = black
commands = black atlas
skip_install: true
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
COVERAGE_FILE=.coverage
[testenv:test]
extras = test
changedir = atlas
passenv =
PGPASSWORD
POSTGRES_HOST
commands =
npm install
npm run build
coverage run -p manage.py test --no-input --pattern="test_views.py" --settings atlas.settings.test
show_missing = True
depends =
test: clean
cov: test
allowlist_externals =
coverage
echo
npm
[testenv:browsertest]
extras = test
changedir = atlas
passenv =
PGPASSWORD
POSTGRES_HOST
BROWSERSTACK_USERNAME
BROWSERSTACK_ACCESS_KEY
BROWSERSTACK_BUILD_NAME
BROWSERSTACK_PROJECT_NAME
commands =
coverage run -p manage.py test --no-input --pattern="test_browser.py" --settings atlas.settings.test_browser
show_missing = True
depends =
test: clean
cov: test
[testenv:py{36,37,38,39}]
extras = test
changedir = atlas
passenv = PGPASSWORD
commands =
py{36,37,38,39}: coverage run -p manage.py test --no-input --pattern="test_views.py" --settings atlas.settings.test
show_missing = True
depends =
py{36,37,38,39}: clean
cov: py{36,37,38,39}
allowlist_externals = coverage
[testenv:clean]
deps = coverage
changedir = atlas
commands = coverage erase
skip_install: true
[testenv:cov]
deps = coverage
changedir = atlas
commands =
coverage combine
coverage report
coverage xml -o ../report.xml
skip_install: true
[testenv:static]
changedir = atlas
commands =
npm install -g npm
npm install
# npx prettier --debug-check static/js/ --loglevel error
npx eslint static/js/ --quiet
npx jshint static/js/
# npx prettier --debug-check static/css/ --loglevel error
npx stylelint static/css/ --syntax scss
allowlist_externals =
npm
npx
ls
skip_install: true
; [testenv:radon]
; deps = radon
; commands =
; echo "Complexity"
; radon cc atlas -s -n B --total-average
; echo "Maintainability"
; radon mi atlas -s -n B
; skip_install: true
; allowlist_externals =
; echo
[testenv:lint]
deps =
reformat
flake8
flake8-bugbear
flake8-docstrings
flake8-rst-docstrings
flake8-rst
flake8-builtins
pep8-naming
flake8-comprehensions
flake8-bandit
flake8-eradicate
flake8-pytest-style
flake8-print
flake8-simplify
flake8-variables-names
flake8-markdown
pygments
black
pylint
mypy
types-python-dateutil
types-requests
types-pytz
commands =
flake8 atlas
black --fast --check atlas
touch atlas/__init__.py
pylint atlas
rm atlas/__init__.py
mypy atlas
allowlist_externals =
touch
rm
skip_install: true
[testenv:docs]
basepython = python3.9
changedir = docs
extras = docs
deps = myst-parser
commands = sphinx-build -E -b html . _build
setenv =
PYTHONDONTWRITEBYTECODE=1
DEBUG=False