summaryrefslogtreecommitdiff
path: root/tox.ini
blob: bcdc65f1bb5a80a8eb330f6fe62e0c52b08a7ade (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]
minversion = 1.6
envlist =
    py26,py27,py32,py33,py34,py27-flake8,py34-flake8

[testenv]
usedevelop = True
deps =
    mock
    nose
commands =
    python setup.py test -q
    python setup.py flake8
    nosetests flake8.tests._test_warnings

[testenv:py26]
deps =
  mock==1.0.1
  nose

[testenv:py27-flake8]
basepython = python2.7
deps =
    flake8
commands = flake8 {posargs} flake8/

[testenv:py34-flake8]
basepython = python3.4
deps =
    flake8
commands = flake8 {posargs} flake8/

[testenv:release]
basepython = python2.7
deps =
    twine >= 1.5.0
    wheel
commands =
    python setup.py sdist bdist_wheel
    twine upload --skip-existing {posargs} dist/*

[flake8]
select = E,F,W
max_line_length = 79
exclude = .git,.tox,dist,docs,*egg