-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
55 lines (48 loc) · 956 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
48
49
50
51
52
53
54
55
[tox]
envlist =
py39-django32
flake8
[pytest]
DJANGO_SETTINGS_MODULE = twitch_hdt_ebs.settings
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONWARNINGS = all
PGPORT = {env:PGPORT}
commands = pytest --showlocals {posargs}
deps =
django32: Django>=3.2,<4.0
fakeredis==2.18.0
pytest
pytest-django
pytest-mock
requests-mock
[testenv:flake8]
skip_install = True
commands =
flake8 twitch_hdt_ebs tests
deps =
flake8==3.8.4
flake8-isort==2.7.0
isort==4.3.4
flake8-quotes==1.0.0
[testenv:mypy]
commands =
mypy --ignore-missing-imports twitch_hdt_ebs
deps =
mypy==0.812
[flake8]
ignore = E117, E501, E731, E741, W191, W504
max-line-length = 92
exclude = .tox, build/, ideas/, udfs/
inline-quotes = double
show-source = True
[isort]
indent = tab
line_length = 92
lines_after_imports = 2
balanced_wrapping = true
combine_as_imports = true
default_section = THIRDPARTY
known_first_party = twitch_hdt_ebs
multi_line_output = 5