-
Notifications
You must be signed in to change notification settings - Fork 313
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
Adopt ruff and use less pre-commit #1114
Conversation
cc @ofek |
Codecov ReportBase: 80.01% // Head: 79.97% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1114 +/- ##
==========================================
- Coverage 80.01% 79.97% -0.05%
==========================================
Files 68 68
Lines 8013 8023 +10
Branches 1586 1587 +1
==========================================
+ Hits 6412 6416 +4
- Misses 1179 1185 +6
Partials 422 422
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Ruff catches so much 🙂 |
Hmm, wow, our |
I dislike pre-commit |
I'm coming to the same conclusion |
Okay, this is as far as I can remove pre-commit itself without modifying the hook that is created in |
@blink1073 @ofek - I'm curious about the "dislike pre-commit" comments and merely trying to better understand. Could you please elaborate on some of the pain points? |
Quotes of others in Discord that I agree with:
|
Thanks @ofek! This is making me think that any sort of pre-commit hook should be opt-in, which is how it used to be in the original |
After thinking about it more, I think we do want to preserve some aspects of pre-commit, as it does give us some conveniences. I'd rather not add things to the bot if pre-commit CI is already doing it. I left the builtins, |
As a lurker on this thread, I'm curious about the application of "not liking pre-commit." What is the recommended way for:
|
Adopt
ruff
, "an extremely fast Python linter, written in Rust."It is still listed as alpha, pending a couple of open issues, but it is already used by several major projects including
hatch
.Copies the pattern used by
hatch
for linting, formatting, and typing.