Skip to content

Commit 723a308

Browse files
Add nbqa-ruff for Jupyter notebooks
1 parent 51beb74 commit 723a308

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: disallow-caps
2929
name: Disallow improper capitalization
3030
language: pygrep
31-
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|PyBaMM
31+
entry: Numpy|Scipy|Cmake|Github|Pybamm
3232
exclude: .pre-commit-config.yaml
3333

3434
# Python files
@@ -53,3 +53,11 @@ repos:
5353
- id: rst-backticks
5454
- id: rst-directive-colons
5555
- id: rst-inline-touching-normal
56+
57+
# Jupyter notebooks
58+
59+
- repo: https://github.com/nbQA-dev/nbQA
60+
rev: "1.7.0"
61+
hooks:
62+
- id: nbqa-ruff
63+
additional_dependencies: [ruff==0.0.281]

0 commit comments

Comments
 (0)