From 207fd42b2819a50495ee7ed0b9581918a0d67c2d Mon Sep 17 00:00:00 2001 From: Burton DeWilde Date: Wed, 26 Aug 2020 18:31:28 -0500 Subject: [PATCH] Set bound on black dep, return lint veto powers the most recent version of black made some changes, _and_ introduced some bugs: https://github.com/psf/black/issues/1629 let's prevent an update until it's ready --- .github/workflows/lint_and_format.yml | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_and_format.yml b/.github/workflows/lint_and_format.yml index 112687205..92b51c313 100644 --- a/.github/workflows/lint_and_format.yml +++ b/.github/workflows/lint_and_format.yml @@ -17,7 +17,7 @@ jobs: python -m pip install black flake8 - name: check formatting with black run: | - python -m black --diff src scripts + python -m black --diff --check src scripts - name: lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/setup.cfg b/setup.cfg index 418f5e433..bf7a31e9c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -60,7 +60,7 @@ where = src viz = matplotlib>=1.5.0 dev = - black>=19.0b0 + black>=19.0b0,<20.8b0 flake8>=3.8.0 m2r>=0.2.0 mypy>=0.600