-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (57 loc) · 1.54 KB
/
tox.ini
File metadata and controls
64 lines (57 loc) · 1.54 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
[tox]
envlist = py{311,312}-django{42,52}, docs, quality, pii_check
skipsdist = true
[doc8]
; D001 = Line too long
ignore = D001
[testenv]
runner = uv-venv-lock-runner
dependency_groups =
test
django42
commands =
python manage.py check
python manage.py makemigrations learning_credentials --check --dry-run --verbosity 3
pytest {posargs}
[testenv:py{311,312}-django42]
setenv =
PYTEST_ADDOPTS=-W "ignore:'index_together' is deprecated:django.utils.deprecation.RemovedInDjango51Warning"
[testenv:py{311,312}-django52]
dependency_groups =
test
django52
[testenv:docs]
dependency_groups =
doc
django42
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
# Adding the option here instead of as a default in the docs Makefile because that Makefile is generated by sphinx.
SPHINXOPTS = -W
allowlist_externals =
make
rm
commands =
doc8 --ignore-path docs/_build README.rst docs
rm -f docs/learning_credentials.rst
rm -f docs/modules.rst
uv build
make -e -C docs clean
make -e -C docs html
twine check --strict dist/*
[testenv:quality]
dependency_groups = quality
pass_env = MISE_TRUSTED_CONFIG_PATHS
allowlist_externals =
mise
commands =
ruff check --output-format=github .
ruff format --check
yamllint --strict --format parsable .
mise run selfcheck
[testenv:pii_check]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
commands =
code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage