kynan/nbstripout

`--dry-run` should exit non-0 if files would be updated

joaonc opened this issue · 1 comments

Using nbstripout as a pre-commit hook with the --dry-run option so the verification fails with a list of files that need to be updated without actually updating the files. But --dry-run always exits with 0 (success), which means the hook doesn't work with --dry-run.

IMO, --dry-run should return non-0 (ideally 1) if any file would be changed by running nbstripout.

Oh, this is a dup of #153

Closing.