forked from yunojuno/django-magic-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (42 loc) · 969 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
40
41
42
43
44
45
46
47
48
49
50
[tox]
isolated_build = True
envlist = fmt, lint, mypy, py{3.7,3.8,3.9}-django{22,30,31,32,main}
[testenv]
deps =
coverage
freezegun
pytest
pytest-cov
pytest-django
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
djangomain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest --cov=magic_link tests/
[testenv:fmt]
description = Python source code formatting (isort, black)
deps =
isort
black
commands =
isort --check-only magic_link
black --check magic_link
[testenv:lint]
description = Python source code linting (pylint, flake8, bandit, pydocstyle)
deps =
flake8
flake8-bandit
flake8-blind-except
flake8-docstrings
flake8-logging-format
flake8-print
commands =
flake8 magic_link
[testenv:mypy]
description = Python source code type hints (mypy)
deps =
mypy
commands =
mypy magic_link