-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (48 loc) · 881 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
[tox]
envlist =
py37-django{22,30}
linters
[testenv]
setenv =
PYTHONWARNINGS = all
deps =
coverage
django22: Django ~= 2.2
django30: Django ~= 3.0
codeflix
Pillow
django_select2
urllib3
networkx
djangorestframework
commands =
coverage run --source codeflix codeflix/runtests.py
[testenv:linters]
deps =
Django ~= 2.2
flake8
flake8-colors
flake8-import-order
flake8-typing-imports
pep8-naming
pyflakes
commands =
flake8 codeflix/
[flake8]
ignore = D203, W503, E203
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs,
*migrations*
max-complexity = 10
max-line-length = 300
import-order-style = google
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s