Skip to content

nbstripout 0.8.2 can fight with pre-commit-hooks v6.0.0 on Windows over line endings #208

Description

@owenlamont

I have the follow prek/pre-commit config:

repos:
  - repo: https://github.com/kynan/nbstripout
    rev: 0.8.2
    hooks:
      - id: nbstripout
        args: [--drop-empty-cells]
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
    hooks:
      - id: mixed-line-ending
        args: [--fix=lf]

Which works fine on Ubuntu but when I tried it on Windows nbstripout would start adding carriage returns to my Jupyter notebooks and pre-commit-hooks would remove them again in an endless cycle.

Could you add some config option to specify a preferred line ending in nbstripout - or some other way to break the deadlock so I can use just lf endings on Windows?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions