New issue
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
Pre-commit: all files are passed in pre-commit.ci #239
Comments
This hook will process the files that are given to it and what you show here is passing the complete set of Markdown files every time, so that is what gets analyzed. Here is some information about limiting that to recently changed files: https://pre-commit.com/#usage-in-continuous-integration The two approaches you show should be equivalent as you say. If you find they are not for some reason, please let us know! FYI, you shouldn't need to pass anything other than id and args. Here is a simpler example to show what I mean: https://github.com/DavidAnson/Workflows/blob/main/.pre-commit-config.yaml |
I have the impression that pre-commit.ci runs a
I know but I want to be the more explicit I can making it easier to share the project configuration within my heterogeneous contributors pool :). @DavidAnson: should we use the markdownlint-cli2 from now? I've just read your blog post but I would enjoy a direct confirmation, because we also promote the use of the vscode extension. |
Ok, I've found a similar issue: pre-commit-ci/issues#90 So, it's not yet implemented and it's supposed to be part of the paid scope. |
I prefer CLI2, partly because it is more configurable and integrates more closely with the VS Code extension, but I know that it takes an approach that feels weird to some people. I try to encourage everyone to use what works best for their needs. |
Hello,
First of all, thanks you for this CLI :).
I'm trying to use it as a pre-commit hook running on CI to autofix common errors from an heterogeneous pool of contributors to a static website. Here come:
Am I missing something in the configuration?
Secondary question
What's the difference between:
and, after #235, removing
--fix
from args :The text was updated successfully, but these errors were encountered: