-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtox.ini
50 lines (44 loc) · 1006 Bytes
/
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
[tox]
envlist = py{38,311,312}-django{42},quality,package
[pycodestyle]
exclude = .git,.tox
max-line-length = 120
[pydocstyle]
ignore = D200,D203,D212
[pytest]
DJANGO_SETTINGS_MODULE = workbench.settings
addopts = --cov google_drive --cov-report term-missing --durations=10
norecursedirs = .* requirements
[testenv]
allowlist_externals =
make
mkdir
rm
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
setenv =
DJANGO_SETTINGS_MODULE = workbench.settings
SCREENSHOT_DIR={toxinidir}/var/logs
SELENIUM_DRIVER_LOG_DIR={toxinidir}/var/logs
commands =
mkdir -p {toxinidir}/var/logs
rm -rf {toxinidir}/var/logs/*
pytest {posargs}
make validate_translations
[testenv:quality]
allowlist_externals =
make
deps =
-r{toxinidir}/requirements/quality.txt
commands =
pylint google_drive
pycodestyle google_drive
make selfcheck
[testenv:package]
deps =
build
twine
commands =
python -m build
twine check dist/*