forked from yunojuno/django-request-token
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (43 loc) · 1.07 KB
/
tox.ini
File metadata and controls
52 lines (43 loc) · 1.07 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
[tox]
isolated_build = True
envlist = fmt, lint, mypy, checks, py{3.8,3.9,3.10,3.11}-django{32,40,41,main}
[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
djangomain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest --cov=request_token tests/
[testenv:checks]
description = Django system checks and missing migrations
deps = Django
commands =
python manage.py check --fail-level WARNING
python manage.py makemigrations --dry-run --check --verbosity 3
[testenv:fmt]
description = Python source code formatting (isort, black)
deps =
isort
black
commands =
isort --check-only request_token
black --check request_token
[testenv:lint]
description = Python source code linting (flake8, bandit, pydocstyle)
deps =
flake8
flake8-bandit
flake8-docstrings
commands =
flake8 request_token
[testenv:mypy]
description = Python source code type hints (mypy)
deps =
mypy
commands =
mypy request_token