-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
51 lines (45 loc) · 1.05 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
[tox]
envlist =
py{38,39,310,311}-django{31,32,40,42}
py312-django{40,42}
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
deps =
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
allowlist_externals = poetry
commands =
pip install pip -U
poetry install -v
poetry run pytest tests/ --cov="{toxinidir}/src" --cov-report=xml
codecov -e TOXENV
[flake8]
extend-ignore = E203, E266, E501, W503
exclude =
.git,
.venv,
.tox,
__pycache__,
build,
dist
# line length is intentionally set to 80 here because black uses Bugbear
# See https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length for more details
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
per-file-ignores =
src/django_peeringdb/migrations/*.py:F401
[pytest]
norecursedirs = .facsimile data gen .tox