mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Update tox.
This commit is contained in:
parent
5985ce604a
commit
0b184f3bf0
3
Makefile
3
Makefile
@ -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 markdown docs/header.md docs/install.md docs/body.md -o README.md
|
||||
|
||||
lint:
|
||||
flake8:
|
||||
@flake8 ./ --config=tox.ini
|
||||
|
||||
release: docs
|
||||
@ -41,6 +41,7 @@ tar:
|
||||
test: lint
|
||||
@find . -type f -iname "*.pyc" -delete
|
||||
tox
|
||||
tox -e flake8
|
||||
|
||||
test-fast:
|
||||
@find . -type f -iname "*.pyc" -delete
|
||||
|
21
tox.ini
21
tox.ini
@ -9,14 +9,24 @@ envlist =
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE = 1
|
||||
deps =
|
||||
mock
|
||||
coverage
|
||||
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]
|
||||
deps = flake8
|
||||
commands = flake8 .
|
||||
deps =
|
||||
flake8
|
||||
pyflakes
|
||||
pep8
|
||||
mccabe
|
||||
commands =
|
||||
flake8 .
|
||||
|
||||
[flake8]
|
||||
filename =
|
||||
@ -25,10 +35,9 @@ filename =
|
||||
ignore =
|
||||
E126,
|
||||
E128
|
||||
max-line-length = 79
|
||||
max-complexity = 10
|
||||
max-line-length = 131
|
||||
max-complexity = 20
|
||||
show-pep8 = True
|
||||
|
||||
[pytest]
|
||||
addopts = -rsxX -q
|
||||
norecursedirs = .git .tox docs
|
||||
|
Loading…
Reference in New Issue
Block a user