Newer
Older
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4", 'django>=2.2,<5.0']
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "constellation/version.py"
[tool.check-manifest]
ignore = ["constellation/version.py"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py37-django22
py38-django22
py39-django{22,32}
py310-django{32,41}
py311-django{32,41}
crispy_bootstrap5>=0.6
django41: Django>=4.1,<4.2
django-dnsmanager>=0.2.2
django-extensions~=3.0
django-filter>=2.4.0
django-polymorphic~=3.0
djangorestframework~=3.12
django-tables2>=2.3
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
commands =
./manage.py makemigrations
coverage run --omit='constellation/wsgi.py' --source='access,billing,constellation,firewall,layers,management,member,topography,unix' ./manage.py test access billing firewall layers management member topography unix
coverage report -m
[testenv:linters]
deps =
flake8
flake8-colors
flake8-django
flake8-typing-imports
pep8-naming
pyflakes
check-manifest
commands =
flake8 access billing constellation firewall layers management member topography unix
check-manifest
[flake8]
ignore = W503, I100, I101
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs,
*migrations*
max-complexity = 15
max-line-length = 120
import-order-style = google
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
"""