-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
67 lines (54 loc) · 1.36 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
[tox]
skipsdist=True
envlist = pep8,py310
[testenv]
allowlist_externals =
python
pycodestyle
django-admin
flake8
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e .
commands =
django-admin test --settings=researcher_workspace.test.settings --exclude-tag selenium {posargs}
[testenv:py38]
basepython = python3.8
[testenv:py310]
basepython = python3.10
[testenv:selenium]
basepython = python3
passenv = DISPLAY
TMPDIR
GH_TOKEN
commands =
django-admin test --settings=researcher_workspace.test.settings --tag selenium {posargs}
[testenv:devenv]
envdir = devenv
usedevelop = True
commands =
[testenv:manage]
commands = {envpython} {toxinidir}/manage.py {posargs}
[testenv:pep8]
allowlist_externals =
python
pycodestyle
deps =
pep8
hacking>=6.0
commands = pycodestyle guacamole researcher_desktop researcher_workspace vm_manager
[testenv:flake8]
deps =
flake8
hacking>=6.0
commands = flake8 --jobs 1 guacamole researcher_desktop researcher_workspace vm_manager
[pycodestyle]
exclude = *settings.py,*settings_template.py,FoR_codes.py
ignore = E126,E127,E128,E131,W503
[flake8]
exclude = *settings.py,*settings_template.py,FoR_codes.py
ignore = E126,E127,E128,E131,W503,H102,H301