Skip to content

Commit

Permalink
ci: Use jupyter-black pre-commit hook over nbqa-black (#1598)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
matthewfeickert committed Sep 7, 2021
1 parent 347fd3a commit 4f18dbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Expand Up @@ -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
Expand All @@ -52,5 +52,3 @@ repos:
hooks:
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.25.0]
- id: nbqa-black
additional_dependencies: [black==21.8b0]

0 comments on commit 4f18dbd

Please sign in to comment.