tox.ini 984 Bytes
Newer Older
erdnaxe's avatar
erdnaxe committed
1
[tox]
erdnaxe's avatar
erdnaxe committed
2
envlist = py35,py36,py37,linters
erdnaxe's avatar
erdnaxe committed
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
skipsdist = True

[testenv]
basepython = python3
deps =
    -r{toxinidir}/requirements.txt
    coverage
commands =
    ./manage.py makemigrations
    coverage run ./manage.py test {posargs}
    coverage report -m

[testenv:pre-commit]
deps = pre-commit
commands =
    pre-commit run --all-files --show-diff-on-failure

[testenv:linters]
deps =
    -r{toxinidir}/requirements.txt
    flake8
    flake8-colors
    flake8-import-order
    flake8-typing-imports
    pep8-naming
    pyflakes
    pylint
commands =
    flake8 logs med media search users
    pylint .

[flake8]
ignore = D203, W503, E203
exclude =
    .tox,
    .git,
    __pycache__,
    build,
    dist,
    *.pyc,
    *.egg-info,
    .cache,
    .eggs,
    *migrations*
max-complexity = 10
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