Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding clean-notebooks pre-commit (#357)
* add pre commit yaml * fix precommit * checking precommit * try to avoid cleaning empty cells * ignore empty cells * add pre-commit job to docs CI * pre-commit changes to clean nbs * add newline Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com> * stop doc build if pre-commit fails Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com> * remove empty attachments key Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com> * Update .pre-commit-config.yaml * Add empty line --------- Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com>
- Loading branch information
Showing
4 changed files
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
# This is the configuration for pre-commit, a local framework for managing pre-commit hooks | ||
# Check out the docs at: https://pre-commit.com/ | ||
|
||
default_stages: [commit] | ||
repos: | ||
- repo: https://github.com/hoxbro/clean_notebook | ||
rev: v0.1.8 | ||
hooks: | ||
- id: clean-notebook | ||
args: [-i, slideshow, --keep-empty] # ignore RISE slideshow metadata and keep empty cells |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters