-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathtox.ini
More file actions
76 lines (69 loc) · 1.81 KB
/
Copy pathtox.ini
File metadata and controls
76 lines (69 loc) · 1.81 KB
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
[tox]
minversion = 4.6
envlist = pep8,docs,py{311,312,313,314}-django52,py{312,313,314}-django60
[testenv]
skip_install = true
deps =
-r{toxinidir}/requirements-test.txt
django52: django~=5.2.0
django52: djangorestframework~=3.16.0
django52: django-filter~=25.1.0
django60: django~=6.0.0
django60: djangorestframework~=3.16.0
django60: django-filter~=25.2.0
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
PYTHONDEVMODE = 1
PYTHONWARNINGS = once
passenv =
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
DATABASE_TYPE
DATABASE_USER
DATABASE_PASSWORD
DATABASE_HOST
DATABASE_PORT
DATABASE_NAME
DJANGO_TEST_PROCESSES
commands =
python {toxinidir}/manage.py test --noinput --parallel -v 2 --timing -- {posargs:patchwork.tests.unit}
[testenv:pep8]
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[flake8]
# Some rules are ignored as their use makes the code more difficult to read:
#
# E129 visually indented line with same indent as next logical line
# E203 whitespace before ':'
# W503 line break before binary operator
ignore = E129, E203, W503
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -E -W -b dirhtml -d docs/_build/doctrees docs docs/_build/html {posargs}
[testenv:venv]
commands = {posargs}
[testenv:coverage]
deps =
coverage
-r{toxinidir}/requirements-dev.txt
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
commands =
coverage erase
coverage run --omit=*tox*,patchwork/tests/unit/*.py,manage.py,patchwork/migrations/*.py \
--branch {toxinidir}/manage.py test --noinput patchwork.tests.unit
coverage report -m
[gh-actions]
python =
3.11: py311
3.12: py312
3.13: py313
3.14: py314