mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Better project structure
This commit is contained in:
parent
f31f092f9b
commit
1746a97e24
52 changed files with 221 additions and 189 deletions
28
tox.ini
Normal file
28
tox.ini
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[tox]
|
||||
project = pre_commit
|
||||
# These should match the travis env list
|
||||
envlist = py26,py27
|
||||
|
||||
[testenv]
|
||||
install_command = pip install --use-wheel {opts} {packages}
|
||||
deps = -rrequirements_dev.txt
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
coverage report --show-missing --fail-under 90
|
||||
flake8 {[tox]project} tests setup.py
|
||||
# pylint {[tox]project} tests setup.py
|
||||
|
||||
[testenv:venv]
|
||||
envdir = venv-{[tox]project}
|
||||
commands =
|
||||
|
||||
[testenv:docs]
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
sphinx
|
||||
changedir = docs
|
||||
commands = sphinx-build -b html -d build/doctrees source build/html
|
||||
|
||||
[flake8]
|
||||
max-line-length=131
|
||||
Loading…
Add table
Add a link
Reference in a new issue