aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
blob: 66e98701e04dbe758fa30f83fe1c45272571aeb0 (plain)
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
[flake8]
max-line-length = 100
exclude = fietsboek/alembic
per-file-ignores =
    fietsboek/models/__init__.py:F401

[tox]
envlist = python,pylint,pylint-tests,flake8
isolated_build = true

[testenv]
deps =
    pytest
    lxml: lxml
extras = testing
passenv =
    TERM
commands =
    pytest {posargs}

[testenv:pylint]
deps = pylint
usedevelop = true
commands =
    pylint --rcfile=pylint.toml fietsboek

[testenv:pylint-tests]
deps = pylint
usedevelop = true
allowlist_externals = bash
commands =
    bash -c "pylint --rcfile=pylint.tests.toml tests/**/*.py"

[testenv:flake8]
deps = flake8
usedevelop = true
commands =
    flake8 fietsboek

[testenv:sphinx]
deps = sphinx
usedevelop = true
allowlist_externals = make
changedir={toxinidir}{/}doc
commands =
    make html