-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 loc) · 895 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
[tox]
envlist =
py310-django{32,40,41,42,main}
flake8
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
[testenv]
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
commands = pytest --showlocals {posargs}
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
djangomain: https://github.com/django/django/archive/main.tar.gz
pytest
pytest-django
[testenv:flake8]
skip_install = True
commands =
flake8
isort -c
deps =
flake8==3.7.7
flake8-quotes==1.0.0
isort==4.3.12
[flake8]
ignore = E117, W191, I201, W504
exclude = .tox/, */migrations/
inline-quotes = double
max-line-length = 92
[isort]
indent = tab
line_length = 92
lines_after_imports = 2
balanced_wrapping = True
default_section = THIRDPARTY
known_first_party = django_hearthstone
multi_line_output = 5
skip = .tox/, django_hearthstone/cards/migrations/