kynan/nbstripout

Option to error on cell outputs exceeding `--max-size`

Open

#167 opened on Aug 19, 2022

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (1,047 stars) (90 forks)batch import
help wantedtype:enhancement

Description

The --max-size flag added in #135 is a great addition! 👍

When using nbstripout as commit hook, it would be nice to have a slightly safer mode that doesn't auto-remove output exceeding the max size but rather raises an error to abort the commit and let the developer handle it on a case by case basis (maybe compress rather than remove the cell output).

Contributor guide