2015-03-15 18:14:30 +01:00
|
|
|
[tox]
|
2018-10-01 02:30:04 +02:00
|
|
|
envlist = py3
|
|
|
|
skipsdist = True
|
2015-03-15 18:14:30 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-10-01 02:30:04 +02:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
2018-10-01 02:30:04 +02:00
|
|
|
py.test --cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end \
|
|
|
|
tests []
|
2018-10-15 18:04:29 +02:00
|
|
|
- black --skip-string-normalization --line-length 100 --check .
|
2018-09-30 08:15:18 +02:00
|
|
|
flake8 .
|
2018-09-30 07:45:00 +02:00
|
|
|
|
|
|
|
[testenv:black]
|
2018-10-01 02:30:04 +02:00
|
|
|
basepython = python3.7
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
|
|
|
black --skip-string-normalization --line-length 100 .
|
2018-09-30 08:15:18 +02:00
|
|
|
|
2018-10-01 02:30:04 +02:00
|
|
|
[testenv:end-to-end]
|
2018-10-04 07:36:25 +02:00
|
|
|
deps = -rtest_requirements.txt
|
2018-10-01 02:30:04 +02:00
|
|
|
commands =
|
2018-10-04 07:36:25 +02:00
|
|
|
py.test tests/end-to-end []
|
2018-10-01 02:30:04 +02:00
|
|
|
|
2018-09-30 08:15:18 +02:00
|
|
|
[flake8]
|
2018-10-01 02:30:04 +02:00
|
|
|
ignore = E501,W503
|
|
|
|
exclude = *.*/*
|