Skip to content

Commit

Permalink
ci: Pin version of black
Browse files Browse the repository at this point in the history
A new release of black changed the way some of our files are formatted,
so use a fixed version in CI.
  • Loading branch information
bdarnell committed Nov 2, 2019
1 parent d81d685 commit 2b153ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 2b153ad

Please sign in to comment.