-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
73 lines (65 loc) · 1.47 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
66
67
68
69
70
71
72
73
[tox]
skipsdist = True
envlist =
black
isort
pylint
py{310,311}-django{42,50}-wagtail{50,60}
[testenv]
deps =
django42: Django==4.2
django50: Django==5.0
wagtail50: wagtail==5.0
wagtail60: wagtail==6.0
pytest
pytest-clarity
pytest-cov
pytest-django
pytest-mock
wagtail-markdown
wagtail-metadata
weasyprint
allowlist_externals =
./manage.py
commands =
./manage.py compilemessages --ignore .venv --ignore .tox
pytest --cov --cov-report=xml
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
[testenv:black]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = black --exclude '.*(migrations|.tox|.venv)' --check --diff .
[testenv:isort]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = isort --check-only --diff .
[testenv:pylint]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = pylint --django-settings-module=tests.settings wagtail_resume tests
[pytest]
addopts = --ds=tests.settings --reuse-db -ra
testpaths = tests
norecursedirs = .git */migrations/* .venv
[coverage:run]
branch = True
source = wagtail_resume
omit =
./.venv/*
*/migrations/*
*/apps.py
[coverage:report]
fail_under = 80