Trailing whitespace not working · Issue #250 · pre-commit/pre-commit-hooks · GitHub
Skip to content

Trailing whitespace not working #250

Description

@revolter

I just installed pre-commit, added this .pre-commit-config.yaml file:

# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    sha: v1.1.1
    hooks:
    -   id: trailing-whitespace

and added a trailing space to a line in a file in the project, staged it, and when I commit it, it commits with the space, instead of removing it.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions