-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
56 lines (50 loc) · 1.1 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
[tox]
envlist =
lint,
py36-django{21,22,30,master},
py37-django{21,22,30,master},
py38-django{21,22,30,master},
[testenv]
commands = pytest --cov=shortener --cov-append --junitxml=test-results/tests.xml
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
deps =
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
django30: Django>3.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
coverage
pytest
pytest-cov
pytest-django
[testenv:lint]
skip_install = True
commands =
flake8
isort -c
black -l100 --check .
deps =
black
flake8
flake8-absolute-import
flake8-isort
flake8-quotes
[flake8]
max-line-length = 100
exclude = docs/, shortener/migrations/, .tox/, build/
inline-quotes = double
[isort]
default_section = THIRDPARTY
known_first_party = shortener
line_length = 100
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = True
use_parentheses = True
[coverage:run]
source = shortener
[pytest]
junit_family = xunit2
django_find_project = false