forked from bennylope/django-organizations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (44 loc) · 921 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
44
45
46
47
48
49
[tox]
envlist =
flake8,
py{38,39,310}-django{32},
py{38,39}-django{42},
py{310,311,312}-django{42,50}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=0.22", "hatch-vcs>=0.2"]
[testenv]
package = wheel
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/organizations
commands = pytest {posargs} --cov=organizations
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
hatch>=1.7.0
django32: Django>=3.2,<4
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
extras = tests
[testenv:flake8]
basepython=python3
deps=
flake8==3.8.3
commands=
flake8 src/organizations tests
[flake8]
ignore = E126,E128,W503
max-line-length = 120
exclude = migrations,.ropeproject
max-complexity = 10