Skip to content

Commit e6f754e

Browse files
committed
use nbqa for notebooks
1 parent 10fdf0b commit e6f754e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ repos:
2020
rev: 22.10.0
2121
hooks:
2222
- id: black
23-
- id: black-jupyter
2423
- repo: https://github.com/pycqa/flake8
2524
rev: 3.9.2
2625
hooks:
2726
- id: flake8
27+
- repo: https://github.com/nbQA-dev/nbQA
28+
rev: 1.5.3
29+
hooks:
30+
- id: nbqa-black
31+
# additional_dependencies: [jupytext] # optional, only if you're using Jupytext
32+
- id: nbqa-pyupgrade
33+
args: ["--py37-plus"]
34+
- id: nbqa-isort
35+
# args: ["--float-to-top"]
36+
args: [--profile, black]

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
nbqa
12
pathlib
23
pre-commit
34
twine

0 commit comments

Comments
 (0)