Skip to content

Commit 3f14182

Browse files
committed
tox: Cleanup
Reduce indentation to 2 spaces, remove unused targets, and run everything under Python 3 by default. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent d58775d commit 3f14182

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

tox.ini

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
[tox]
2-
minversion = 2.0
3-
envlist = pep8,mypy,py{27,35,36,37,py}
2+
minversion = 3.1
3+
envlist = pep8,mypy,clean,py{27,35,36,37,py},report
4+
ignore_basepython_conflict = true
45

56
[testenv]
7+
basepython = python3
68
deps =
7-
-r{toxinidir}/requirements.txt
8-
-r{toxinidir}/test-requirements.txt
9+
-r{toxinidir}/test-requirements.txt
910
commands =
10-
pytest -Wall {posargs}
11+
pytest -Wall {posargs}
1112

1213
[testenv:pep8]
1314
deps =
14-
flake8
15+
flake8
1516
commands =
16-
flake8 {posargs} git_pw
17+
flake8 {posargs} git_pw
1718

1819
[testenv:mypy]
1920
deps=
20-
mypy
21+
mypy
2122
commands=
22-
mypy {posargs:--ignore-missing-imports --follow-imports=skip} git_pw
23+
mypy {posargs:--ignore-missing-imports --follow-imports=skip} git_pw
2324

2425
[testenv:docs]
2526
deps =
26-
-r{toxinidir}/docs/requirements.txt
27+
-r{toxinidir}/docs/requirements.txt
2728
commands =
28-
sphinx-build {posargs:-E -W} docs docs/_build/html
29+
sphinx-build {posargs:-E -W} docs docs/_build/html
2930

3031
[testenv:man]
3132
deps =
32-
-r{toxinidir}/docs/requirements.txt
33+
-r{toxinidir}/docs/requirements.txt
3334
commands =
34-
python setup.py --command-packages=click_man.commands man_pages
35+
python setup.py --command-packages=click_man.commands man_pages
3536

3637
[flake8]
37-
show-source = True
38+
show-source = true
3839

3940
[travis]
4041
python =
41-
3.7: py37, pep8, mypy
42+
3.7: py37, pep8, mypy

0 commit comments

Comments
 (0)