generated from yunojuno/poetry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (54 loc) · 1.34 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
isolated_build = True
envlist =
fmt, lint, mypy,
django-checks,
; https://docs.djangoproject.com/en/5.0/releases/
django32-py{38,39,310}
django40-py{38,39,310}
django41-py{38,39,310,311}
django42-py{38,39,310,311}
django50-py{310,311,312}
djangomain-py{311,312}
[testenv]
deps =
coverage
pytest
pytest-cov
pytest-django
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: https://github.com/django/django/archive/stable/5.0.x.tar.gz
djangomain: https://github.com/django/django/archive/main.tar.gz
setenv =
DJANGO_SECRET_KEY = "not-very-secret-testing-key"
commands =
pytest --cov=simple_saml --verbose tests/
[testenv:django-checks]
description = Django system checks and missing migrations
deps =
Django
django-sslserver
commands =
python manage.py check --fail-level WARNING
python manage.py makemigrations --dry-run --check --verbosity 3
[testenv:fmt]
description = Python source code formatting (black)
deps =
black
commands =
black --check simple_saml
[testenv:lint]
description = Python source code linting (ruff)
deps =
ruff
commands =
ruff simple_saml
[testenv:mypy]
description = Python source code type hints (mypy)
deps =
mypy
commands =
mypy simple_saml