summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 78fd079f0286f3005325cf18c84f878efe64c62f (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
[tox]
usedevelop = true
minversion = 2.4
envlist =
    py{35,36,37,38}-tests,
    py37-{docs,lint}

[testenv]
basepython =
    py35: python3.5
    py36: python3.6
    py37: python3.7
    py38: python3.8
deps =
    tests: -rtests/requirements.txt
    docs: sphinx
extras = pandas
commands =
    tests: pytest {posargs:tests}
    docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html

[testenv:py37-lint]
basepython = python3.7
deps =
    flake8
    # flake8-black
    isort
    twine
    check-manifest
commands =
    # flake8 src/tablib tests/
    isort --check-only --diff
    check-manifest -v
    python setup.py sdist
    twine check dist/*

[flake8]
exclude =
    .tox
ignore=E501,E127,E128,E124