-
Notifications
You must be signed in to change notification settings - Fork 2
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
Revisit using pre-commit.ci #463
Comments
Briefly from memory the decision to turn it off was:
I'm actually OK with violating 1. We could have pre-commit.ci on the repo, but not the template. If I read you correctly, you're suggesting that we make the template a bit smarter and have it choose whether to lint based on a |
I'm happy to have it on the repo, but not the template |
I'm definitely only proposing for the repo here, not the template. I'm not suggesting we alter the template - just that we add |
Installed and tested here #464 (comment) |
Sorry I'm turning this off. It is impossible to turn off autoupdates pre-commit-ci/issues#83. See the issues/concerns: #479, #482 |
@paddyroddy could you post the issue you've found on this thread? I think they're spread around several PRs/issues at the moment, and I'm struggling to find them all 😄 |
Why not taking alphas? |
It's here @dstansby |
Also doesn't update the template |
I can follow links, but I'm asking if you could repeat the problems here so it's easier for us to see what they are all in one place 🙏 |
Hmm. I'm also a bit wary of adding and removing bots and making decisions so unilaterally. 🗳 I think we should add it, keep it on, and accept that autoupdates will come from both bots. I'm fine with alpha versions. Presumably, renovate will update the template at a slower cycle. Which is less of an issue if we are using versioning and |
I can understand that. But the bot did more than was advertised in #463. IMO behaviour that we don't want. The maintainer is a 🍑 and has not added the ability to turn off autoupdates.
I disagree. Reasons:
If we could turn off autoupdate then I'm not opposed to having it. But it's really not hard to run |
In this thread pre-commit-ci/issues#83 there are the maintainer's reasons for not wanting the ability to turn off autoupdates. |
I see.
I'm actually not so opposed to having the repo and template out of sync. What's the worse that could happen? Alternatives:
|
Not seen The worst I guess would be:
|
I've added a new rule at https://github.com/UCL-ARC/python-tooling/settings/rules/2461978 which (I think...) bans branches called @paddyroddy did you disable the bot? If so, could you re-enable it, and we can see if this works? If it does it seems like a good solution. |
I think we should:
.... If your branch rule has worked, then there should be no autoupdate PR from pre-commit.ci despite that one is needed. On Tuesday we can merge @renovate's PRs. |
@samcunliffe I didn't do PRs in your desired order, as didn't see this. Can install bad bot now. |
Will close this. We can reopen if issues arise. |
If I'm makng a simple change to markdown, such as in #462, I use the GitHub web interface for speed. This can often result in pre-commit failing however, because the markdown isn't correctly linted. This then breaks the benefit of using the GitHub website for speed, because I have no way of automatically fixing the linting and have to go back to local development on my laptop.
To improve this I'd like to propose we revisit using pre-commit.ci to lint this repo. This would provide a mechanism of automatically making pre-commit fixes on demand, by posting a "pre-commit.ci autofix" comment in a PR.
In #196 we very briefly discussed and decided not to use it because it's not available for private repositories. One mitigation to this is we can still have a GitHub actions linting job, so when someone sets up a private repo from this template there's still a linting CI job that is run.
So I'd like to advocate for using pre-commit.ci for this repo. Thoughts?
The text was updated successfully, but these errors were encountered: