~turku/turku/turku-storage

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
[tox]
envlist = black, flake8, pytest

[testenv]
basepython = python

[testenv:black]
commands = python -mblack --check .
deps = black

[testenv:flake8]
commands = python -mflake8
deps = flake8

[testenv:pytest]
commands = python -mpytest --cov=turku_storage --cov-report=term-missing
deps = pytest
       pytest-cov
       -r{toxinidir}/requirements.txt

[testenv:pytest-quick]
commands = python -mpytest -m "not slow"
deps = pytest
       -r{toxinidir}/requirements.txt

[flake8]
exclude =
    .git,
    __pycache__,
    .tox,
# TODO: remove C901 once complexity is reduced
ignore = C901,E203,E231,W503
max-line-length = 120
max-complexity = 10

[pytest]
markers =
    slow