Run tests for all installed versions of Python (#166).

This commit is contained in:
Dan Helfman 2019-05-14 12:09:07 -07:00
parent 2cffa8deaa
commit 0defaf9cb5
4 changed files with 5 additions and 13 deletions

1
NEWS
View file

@ -1,5 +1,6 @@
1.3.4.dev0 1.3.4.dev0
* Part of #125: Color borgmatic (but not Borg) output when using an interactive terminal. * Part of #125: Color borgmatic (but not Borg) output when using an interactive terminal.
# #166: Run tests for all installed versions of Python.
* #168: Update README with continuous integration badge. * #168: Update README with continuous integration badge.
* #169: Automatically sort Python imports in code. * #169: Automatically sort Python imports in code.
* Document installing borgmatic with pip install --user instead of a system Python install. * Document installing borgmatic with pip install --user instead of a system Python install.

View file

@ -1,7 +0,0 @@
#!/usr/bin/env sh
if which black; then
black --skip-string-normalization --line-length 100 --check .
else
echo "Skipping black due to not being installed."
fi

View file

@ -1,3 +0,0 @@
#!/usr/bin/env sh
isort --recursive --check-only --settings-path setup.cfg .

View file

@ -1,5 +1,6 @@
[tox] [tox]
envlist = py3 envlist = py35,py36,py37
skip_missing_interpreters=true
skipsdist = True skipsdist = True
minversion = 3.10.0 minversion = 3.10.0
@ -12,8 +13,8 @@ install_command =
python -m pip install --no-use-pep517 {opts} {packages} python -m pip install --no-use-pep517 {opts} {packages}
commands = commands =
pytest pytest
sh scripts/black py36,py37: black --check .
sh scripts/isort isort --recursive --check-only --settings-path setup.cfg .
flake8 . flake8 .
[testenv:black] [testenv:black]