From 0afe2fe901ae8e7a8c1defcc446bd3bab2e849d7 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Thu, 23 Sep 2021 14:23:05 +0200 Subject: [PATCH] Replace nbqa-black with black-jupyter pre-commit hook Fixes #249 --- .pre-commit-config.yaml | 7 ++----- setup.cfg | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 27bfe5a5..1d557860 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,9 +19,9 @@ repos: hooks: - id: setup-cfg-fmt - repo: https://github.com/psf/black - rev: 21.7b0 + rev: 21.9b0 hooks: - - id: black + - id: black-jupyter - repo: https://github.com/PyCQA/isort rev: "5.9.3" hooks: @@ -77,9 +77,6 @@ repos: - repo: https://github.com/nbQA-dev/nbQA rev: 1.1.0 hooks: - - id: nbqa-black - # Match version of black used for .py and .ipynb - additional_dependencies: [black==21.7b0] - id: nbqa-isort additional_dependencies: [isort==5.9.3] - id: nbqa-mypy diff --git a/setup.cfg b/setup.cfg index a89c4a9b..430514f7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -62,14 +62,14 @@ where = src [options.extras_require] dev = - black + black[jupyter] build bump2version deepdiff ipython isort nbsphinx - pre-commit + pre-commit>=2.15.0 pycodestyle pytest pytest-cov