]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
ci: Pin version of black 2766/head
authorBen Darnell <ben@bendarnell.com>
Sat, 2 Nov 2019 21:37:36 +0000 (17:37 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 2 Nov 2019 21:37:36 +0000 (17:37 -0400)
A new release of black changed the way some of our files are formatted,
so use a fixed version in CI.

.travis.yml
tox.ini

index 5ea318f15018db419923df73741d2bcc2b09f53b..880a00c43e30f57547e86c66d4e2bfe6cf14e03c 100644 (file)
@@ -36,7 +36,7 @@ install:
     # Ideally we'd run the lint stuff on the latest Python
     # version supported. But Python 3.7 requires slower-to-start VMs,
     # so we run it on 3.6 to minimize total CI run time.
-    - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then travis_retry pip install flake8 mypy==0.701 black; fi
+    - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then travis_retry pip install flake8 mypy==0.701 black==19.3b0; fi
     # We run docs on py37 because we need some bug fixes for introspection of annotations.
     - if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then travis_retry pip install -r docs/requirements.txt; fi
     # On travis the extension should always be built
diff --git a/tox.ini b/tox.ini
index 0578c9f14bc8770577e4bef3e32158c25c747a45..9a6f013a3855a5b8f6a79f33fed4ebaaf32688a5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -66,7 +66,7 @@ deps =
      {py3,py35,py36,py37}-full: pycares
      sphinx: -r{toxinidir}/docs/requirements.txt
      lint: flake8
-     lint: black
+     lint: black==19.3b0
      mypy: mypy==0.701
 
 setenv =