Skip to content

Commit 8c76a97

Browse files
committed
Add format-ipy-cells builtin hook
Add a Rust-native builtin hook that formats `# %%` cell delimiters in VS Code interactive Python notebooks. Based on the Python [format-ipy-cells](https://github.com/janosh/format-ipy-cells) hook, reimplemented using a structured line-based parser instead of chained regex substitutions. The hook normalizes cell delimiter spacing, comment formatting, removes empty cells, ensures consistent blank lines between cells, and handles module docstring spacing. Usage: ```yaml repos: - repo: builtin hooks: - id: format-ipy-cells ```
1 parent 9328863 commit 8c76a97

File tree

3 files changed

+604
-0
lines changed

3 files changed

+604
-0
lines changed

0 commit comments

Comments
 (0)