diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..10572daa5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[tool.black] +line-length = 100 +skip-string-normalization = true diff --git a/setup.cfg b/setup.cfg index 12871ff0f..e26fdfc29 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,10 @@ [metadata] description-file=README.md + +[tool:pytest] +testpaths = tests +addopts = --cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end + +[flake8] +ignore = E501,W503 +exclude = *.*/* diff --git a/tox.ini b/tox.ini index 3384636a7..484931292 100644 --- a/tox.ini +++ b/tox.ini @@ -8,21 +8,16 @@ usedevelop = True deps = -rtest_requirements.txt whitelist_externals = sh commands = - py.test --cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end \ - tests [] + pytest sh scripts/black flake8 . [testenv:black] basepython = python3.7 commands = - black --skip-string-normalization --line-length 100 . + black . [testenv:end-to-end] deps = -rtest_requirements.txt commands = - py.test tests/end-to-end [] - -[flake8] -ignore = E501,W503 -exclude = *.*/* + pytest tests/end-to-end