Remove all configuration from Tox file #165

Merged
witten merged 2 commits from :cifix/tox-remove-config into master 2019-05-14 16:45:24 +00:00
3 changed files with 17 additions and 8 deletions

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[tool.black]
line-length = 100
skip-string-normalization = true
Review

Doesn't that mean the output formatted files will only support Python 3.7? I think the default behavior when this option is omitted is probably fine. From the black docs: "default: per-file auto-detection". Alternatively, if that's not good enough, 'py35' probably works as a target version here.

Doesn't that mean the output formatted files will only support Python 3.7? I think the default behavior when this option is omitted is probably fine. From the [black docs](https://github.com/python/black#command-line-options): "default: per-file auto-detection". Alternatively, if that's not good enough, 'py35' probably works as a target version here.

View File

@ -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 = *.*/*

14
tox.ini
View File

@ -7,22 +7,20 @@ minversion = 3.10.0
usedevelop = True
deps = -rtest_requirements.txt
whitelist_externals = sh
install_command =
# temporary work around for https://github.com/pypa/pip/issues/6434
python -m pip install --no-use-pep517 {opts} {packages}
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