-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
52 lines (46 loc) · 1.14 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
[tox]
envlist = py{38, 311}-django{42}, quality, check_keywords
[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120
[pydocstyle]
ignore = D101,D200,D203,D212
match-dir = (?!migrations)
[pytest]
DJANGO_SETTINGS_MODULE = test_settings
addopts = --cov help_tokens --cov-report term-missing --cov-report xml
norecursedirs = .* requirements
[testenv]
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
python -Wd -m pytest {posargs}
[testenv:quality]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = .
allowlist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
touch tests/__init__.py
pylint help_tokens tests
rm tests/__init__.py
pycodestyle help_tokens tests
pydocstyle help_tokens tests
python -m build --wheel
twine check dist/*
isort --check-only tests help_tokens manage.py setup.py test_settings.py
make selfcheck
[testenv:check_keywords]
allowlist_externals =
make
deps =
-r{toxinidir}/requirements/test.txt
commands =
make check_keywords