aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
blob: 2c9e11784722e2fd9e39beb1aac8634526b81339 (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
[tox]
envlist = py39,py38,py37,py36,docs,flake8,black
skip_missing_interpreters = True

[testenv]

commands =
    python --version
    py.test --pyargs ihatemoney.tests.tests

deps =
    -e.[dev]

# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp

[testenv:docs]
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
    -rdocs/requirements.txt
changedir = {toxinidir}

[testenv:black]
commands =
    black --check --target-version=py34 .
    isort -c -rc .
changedir = {toxinidir}

[testenv:flake8]
commands = flake8 ihatemoney
changedir = {toxinidir}

[flake8]
exclude = migrations
max_line_length = 100
extend-ignore =
    # See https://github.com/PyCQA/pycodestyle/issues/373
    E203,

[travis]
python =
  3.6: py36
  3.7: py37
  3.8: py38, docs, black, flake8
  3.9: py39