We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've a simple file template.j2:
template.j2
/** * @file * My file */
which doesn't have any trailing whitespace, however the hook reports otherwise in every single line.
I'm using .j2 extension as this is a Jinja2 template. If I change to .j3 it works fine.
.j2
.j3
$ pre-commit run -a Check for conflict markers and core.whitespace errors.......................Failed - hook id: git-check - exit code: 2 template.j2:1: trailing whitespace. +/** template.j2:2: trailing whitespace. + * @file template.j2:3: trailing whitespace. + * My file template.j2:4: trailing whitespace. + */
My .pre-commit-config.yaml:
.pre-commit-config.yaml
--- repos: - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: master hooks: - id: git-check
I've tried to add exclude: '(\.j2)$' but it didn't help.
exclude: '(\.j2)$'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've a simple file
template.j2
:which doesn't have any trailing whitespace, however the hook reports otherwise in every single line.
I'm using
.j2
extension as this is a Jinja2 template. If I change to.j3
it works fine.My
.pre-commit-config.yaml
:I've tried to add
exclude: '(\.j2)$'
but it didn't help.The text was updated successfully, but these errors were encountered: