Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_stages: [pre-commit]

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 25.12.0
hooks:
- id: black

Expand All @@ -13,10 +13,10 @@ repos:
- id: end-of-file-fixer
- id: debug-statements

- repo: https://github.com/christopher-hacker/enforce-notebook-run-order
rev: 2.1.1
hooks:
- id: enforce-notebook-run-order
# - repo: https://github.com/christopher-hacker/enforce-notebook-run-order
# rev: 2.1.1
# hooks:
# - id: enforce-notebook-run-order

- repo: local
hooks:
Expand All @@ -27,6 +27,7 @@ repos:
- nbformat
language: python
types: [jupyter]
exclude: tests/examples/bad.ipynb

- id: check-badges
name: check badges
Expand All @@ -38,3 +39,21 @@ repos:
args: [--fix-header, --repo-name=devops_tests]
language: python
types: [jupyter]
exclude: tests/examples/bad.ipynb

- id: notebooks-output
name: notebooks output
entry: notebooks_output
additional_dependencies:
- nbformat
language: python
types: [jupyter]
exclude: tests/examples/bad.ipynb

- id: notebooks-using-jupyter-utils
name: notebooks using open-atmos-jupyter-utils
entry: notebooks_using_jupyter_utils
additional_dependencies:
- nbformat
language: python
types: [ jupyter ]
16 changes: 16 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@
language: python
stages: [pre-commit]
types: [jupyter]

- id: notebooks-output
name: notebooks output
description: check if notebooks are executed and without errors and warnings
entry: notebooks_output
language: python
stages: [pre-commit]
types: [jupyter]

- id: notebooks-using-jupyter-utils
name: notebooks using open-atmos-jupyter-utils
description: check if notebook use show_anim() and show_plot() methods from open-atmos-jupyter-utils
entry: notebooks_using_jupyter_utils
language: python
stages: [pre-commit]
types: [jupyter]
Loading
Loading