-
-
Notifications
You must be signed in to change notification settings - Fork 329
pre-commit-ci bot #1460
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
Comments
You should be able to use |
That's good to know! It looks like this is documented in more detail here: https://pre-commit.ci/ However, I'm still not sure why this bot exists, rather than making linting part of the checks for a PR |
I am not a fan of having the bot make commits. I feel like this creates friction in the developer workflow. I'd be in favor of changing the configuration. Thoughts @joshmoore? |
I don't have a strong feeling either way, i.e. there are pros and cons of both. I think this was mostly because the kind folks that were working on linting during gsoc & outreachy were in favor, but I agree that this should most importantly work for active maintainers. As long as it gets fixed per PR rather than breaking things deeper in the release process, I'll be happy. |
My understanding is that this is the state we've landed on. Closing but reopen if there's more to do here. |
over in #1459 I'm trying to change the pre-commit configuration without styling the code, because I want that to be a separate PR, as per the suggestion here. The logic of that suggestion was to separate the styling configuration changes (which should be attributed to me in git blame) from the styling itself, which will touch the entire codebase and probably not be attributed to anyone in git blame.
However, this project now has a bot that automatically applies the pre-commit hooks to pull requests, even for files that haven't been committed. See f1d1372 Because of this bot, it's impossible to do separate PRs for this styling change.
What is the argument for using this bot? I feel like the styling / linting stuff should be part of the checks PRs must pass rather than changes that are automatically applied to PRs.
The text was updated successfully, but these errors were encountered: