forked from torchbox/django-pattern-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 870 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
[tox]
envlist =
py{39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-dj51
py{310,311,312}-djmain
lint
skipsdist = true
[testenv]
allowlist_externals =
poetry
./tox_install.sh
install_command =
./tox_install.sh {packages}
commands =
poetry run python -X dev -W error runtests.py
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=. --dry-run
deps =
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.zip
[testenv:lint]
commands =
poetry install -q
poetry run flake8
poetry run isort --check --diff .
poetry run black --check --diff .
[flake8]
ignore = W503
max-complexity = 13
max-line-length = 120
exclude = .tox,venv,migrations,node_modules
[coverage:run]
source = pattern_library