From 4f18dbdac2d39f847f108b5f56934559480c19ee Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 7 Sep 2021 10:20:31 -0500 Subject: [PATCH] ci: Use `jupyter-black` pre-commit hook over `nbqa-black` (#1598) * Use jupyter-black pre-commit hook id from Black - black-jupyter will run on Python and pyi files, so it replaces the black hook id as well * Remove nbqa-black pre-commit hook from nbQA - Marco Gorelli essentially contributed nbqa-black to Black in the form of jupyter-black --- .pre-commit-config.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f598c5a5f..5557d29334 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - repo: https://github.com/psf/black rev: 21.8b0 hooks: - - id: black + - id: black-jupyter - repo: https://github.com/asottile/blacken-docs rev: v1.11.0 @@ -52,5 +52,3 @@ repos: hooks: - id: nbqa-pyupgrade additional_dependencies: [pyupgrade==2.25.0] - - id: nbqa-black - additional_dependencies: [black==21.8b0]