-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathtox.ini
More file actions
81 lines (72 loc) · 1.84 KB
/
Copy pathtox.ini
File metadata and controls
81 lines (72 loc) · 1.84 KB
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
74
75
76
77
78
79
80
81
# Tox (https://tox.wiki/) - run tests in isolation using virtualenv.
[tox]
envlist =
lint
format
# Python/Django combinations that are officially supported
py3{10,11}-django{52}
py3{12,13,14}-django{52,60}
behave-latest
package
docs
clean
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[gh-actions:env]
DJANGO =
5.2: django52
6.0: django60
[testenv]
description = Unit tests
deps =
coverage[toml]
django52: Django>=5.2,<6.0
django60: Django>=6.0,<6.1
latest: Django
latest: git+https://github.com/behave/behave.git#egg=behave
pytest
commands =
coverage run -m pytest {posargs}
coverage run -a tests/manage.py behave --tags=~@failing --tags=~@requires-live-http --simple {posargs}
coverage run -a tests/manage.py behave --tags=~@failing {posargs}
coverage xml
coverage report
[testenv:clean]
description = Remove Python bytecode and other debris
skip_install = true
deps = pyclean
commands = pyclean {posargs:. tests docs --debris --erase db.sqlite3 TESTS-*.xml *-report.xml _build/**/* _build --yes --verbose}
[testenv:docs]
description = Build package documentation (HTML)
skip_install = true
deps = sphinx
commands = sphinx-build -M html docs docs/_build
setenv = LANG=C.UTF-8
[testenv:format]
description = Ensure consistent code style (Ruff)
skip_install = true
deps = ruff
commands = ruff format {posargs:--check --diff .}
[testenv:lint]
description = Lightening-fast linting (Ruff)
skip_install = true
deps = ruff
commands = ruff check {posargs:.}
[testenv:package]
description = Build package and check metadata (or upload package)
skip_install = true
deps =
build
twine
commands =
python -m build
twine {posargs:check --strict} dist/*
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL