1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Update tox.

This commit is contained in:
William Ting 2016-04-28 22:44:27 -07:00
parent 5985ce604a
commit 0b184f3bf0
2 changed files with 26 additions and 16 deletions

View File

@ -13,7 +13,7 @@ docs:
pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1 pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1
pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md
lint: flake8:
@flake8 ./ --config=tox.ini @flake8 ./ --config=tox.ini
release: docs release: docs
@ -41,6 +41,7 @@ tar:
test: lint test: lint
@find . -type f -iname "*.pyc" -delete @find . -type f -iname "*.pyc" -delete
tox tox
tox -e flake8
test-fast: test-fast:
@find . -type f -iname "*.pyc" -delete @find . -type f -iname "*.pyc" -delete

39
tox.ini
View File

@ -1,34 +1,43 @@
[tox] [tox]
envlist = envlist =
py26, py26,
py27, py27,
py32, py32,
py33, py33,
py34 py34
# ignore missing setup.py # ignore missing setup.py
skipsdist = True skipsdist = True
[testenv] [testenv]
setenv =
PYTHONDONTWRITEBYTECODE = 1
deps = deps =
mock mock
coverage
pytest pytest
commands = py.test -rsxX -q commands =
coverage run --source=bin/ -m pytest -vv -rxs --tb native -s --durations 10 --strict {posargs:tests}
coverage report -m
[testenv:flake8] [testenv:flake8]
deps = flake8 deps =
commands = flake8 . flake8
pyflakes
pep8
mccabe
commands =
flake8 .
[flake8] [flake8]
filename = filename =
*.py, *.py,
autojump autojump
ignore = ignore =
E126, E126,
E128 E128
max-line-length = 79 max-line-length = 131
max-complexity = 10 max-complexity = 20
show-pep8 = True show-pep8 = True
[pytest] [pytest]
addopts = -rsxX -q
norecursedirs = .git .tox docs norecursedirs = .git .tox docs