-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
76 lines (67 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
66
67
68
69
70
71
72
73
74
75
76
[tox]
envlist=
flake8,
isort,
bandit,
py{36,37}-django{20,21,22,dev}-{base,flake8,prospector},
py{27,36,37}-django11-{base,flake8,prospector}
skip_missing_interpreters=true
[travis]
python=
2.7: py27
3.6: py36
3.7: py37
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
# -- recommended but optional:
python_files = tests.py test_*.py *_tests.py
[flake8]
ignore=E305
max_line_length=119
[coverage]
deps=
coverage
[django]
deps=
django11: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1.11,<2.2
django22: Django>=2.2
djangodev: https://github.com/django/django/archive/master.tar.gz
[testenv]
setenv=
DJANGO_SETTINGS_MODULE=tests.settings
DATABASE_URL=sqlite:memory:
PIPENV_VERBOSITY=-1
PYTHONPATH=.
deps=
{[coverage]deps}
{[django]deps}
flake8: flake8
base: pytest
base: pytest-django
base: pytest-cov
base: dj-database-url
commands=
base: pytest --cov=src/computed_field
flake8: flake8 src/computed_field
[testenv:flake8]
deps=
flake8
commands=
flake8 src/ tests/
[testenv:isort]
# I can't seem to get this to reliably pick up the correct settings.
deps=
isort
commands=
isort -rc -c src/computed_field
[testenv:prospector]
deps=
py27: prospector==0.11.1
py36: prospector
py37: prospector
pylint-django
{[django]deps}
commands=
prospector src/computed_field --uses django