Skip to content

Commit

Permalink
add more notebook QA hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 7, 2023
1 parent 88954b6 commit aa68c8c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ repos:
types_or: [python, pyi, jupyter]
additional_dependencies: [".[jupyter]"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
hooks:
- id: nbqa-pyupgrade
args: ["--py38-plus"]
- id: nbqa-isort
- id: nbqa-flake8
args: ["--extend-ignore=E402"]
exclude: ^lessons/landlab/landlab-terrainbento

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
Expand All @@ -36,6 +46,7 @@ repos:
hooks:
- id: nbstripout
description: Strip output from jupyter notebooks
args: [--drop-empty-cells]

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
Expand All @@ -49,6 +60,12 @@ repos:
- id: isort
files: \.py$

# - repo: https://github.com/mcflugen/heartfelt-hooks
# rev: v0.2.0
# hooks:
# - id: check-whitespace
# - id: check-mixed-case

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down

0 comments on commit aa68c8c

Please sign in to comment.