Skip to content

Trailing whitespace not working #250

@revolter

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.

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