-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
52 lines (43 loc) · 1.13 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
[tox]
envlist = fmt, lint, mypy, py{36,37,38}-django{21,22,30,31,master}
[testenv]
deps =
coverage
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
python --version
coverage erase
coverage run --include=package_monitor/* manage.py test package_monitor
coverage report -m
[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 package_monitor
black --check package_monitor
[testenv:lint]
description = Python source code linting (flake8, bandit, pydocstyle)
deps =
flake8
flake8-bandit
flake8-docstrings
commands =
flake8 package_monitor
[testenv:mypy]
description = Python source code type hints (mypy)
deps =
mypy
commands =
mypy package_monitor