From: Ben Darnell Date: Sat, 2 Nov 2019 21:37:36 +0000 (-0400) Subject: ci: Pin version of black X-Git-Tag: v6.1.0b1~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2766%2Fhead;p=thirdparty%2Ftornado.git ci: Pin version of black A new release of black changed the way some of our files are formatted, so use a fixed version in CI. --- diff --git a/.travis.yml b/.travis.yml index 5ea318f15..880a00c43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 0578c9f14..9a6f013a3 100644 --- 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 =