Browse Source

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

Dan Helfman 6 năm trước cách đây
mục cha
commit
096be14230
4 tập tin đã thay đổi với 5 bổ sung13 xóa
  1. 1 0
      NEWS
  2. 0 7
      scripts/black
  3. 0 3
      scripts/isort
  4. 4 3
      tox.ini

+ 1 - 0
NEWS

@@ -1,5 +1,6 @@
 1.3.4.dev0
  * 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.
  * #169: Automatically sort Python imports in code.
  * Document installing borgmatic with pip install --user instead of a system Python install.

+ 0 - 7
scripts/black

@@ -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

+ 0 - 3
scripts/isort

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

+ 4 - 3
tox.ini

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