Skip to content

Commit

Permalink
Replace nbqa-black with black-jupyter pre-commit hook
Browse files Browse the repository at this point in the history
Fixes #249
  • Loading branch information
sverhoeven committed Sep 23, 2021
1 parent ee43e4c commit 0afe2fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Expand Up @@ -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
Expand Down

0 comments on commit 0afe2fe

Please sign in to comment.