forked from openedx/xblock-google-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (38 loc) · 946 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
[tox]
envlist = py38-django{32,42},quality
[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 =
django32: Django>=3.2,<4.0
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 setup.py
pycodestyle google_drive setup.py
make selfcheck