-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
46 lines (40 loc) · 1.09 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
# Testing environment mainly copied from https://github.com/divio/django-filer
[tox]
envlist =
flake8
isort
py{36,37,38,39}-dj{30,31}
py{36,37,38,39,310}-dj{32}
py{38,39,310}-dj{40,41,master}
py{310}-dj{master}
skip_missing_interpreters=True
[flake8]
exlude = migrations
max-line-length = 80
[isort]
combine_as_imports = true
default_section = THIRDPARTY
include_trailing_comma = true
known_first_party = time_wizard
line_length = 79
multi_line_output = 5
skip = migrations
[testenv]
deps =
dj30: -r tests/requirements/django-3.0.txt
dj31: -r tests/requirements/django-3.1.txt
dj32: -r tests/requirements/django-3.2.txt
dj40: -r tests/requirements/django-4.0.txt
dj41: -r tests/requirements/django-4.1.txt
djmaster: -r tests/requirements/django-master.txt
commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run tests/settings.py test --extra-settings=tests/settings.py
{env:COMMAND:coverage} report
[testenv:flake8]
deps = flake8
commands = flake8 time_wizard
[testenv:isort]
deps = isort
commands = isort -c time_wizard
skip_install = true