Remove pyupgrade and flynt pre-commit hooks#203
Conversation
Use the corresponding ruff rules instead
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #203 +/- ##
=======================================
Coverage 99.63% 99.63%
=======================================
Files 8 8
Lines 1931 1932 +1
=======================================
+ Hits 1924 1925 +1
Misses 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
GeigerJ2
left a comment
There was a problem hiding this comment.
Nice! Was actually just waiting for this PR from you :D there are more ruff rules one could auto-apply here, and in aiida-core, e.g., automatically moving imports into if TYPE_CHECKING: blocks, etc. Crazy how many rules actually are there in ruff :3
|
Oh, whoops, please don't merge yet, I forgot to activate the flynt rules |
|
Should be good now, sorry about that @GeigerJ2
Haha, indeed, we can do that at some point. I think in AiiDAlab we have a few more, e.g. Bugbear. I was also looking into enabling ASYNC rules in aiida-core. |
|
Thanks for the review and approval @GeigerJ2 🫶 Merge is up to you. |
Done, thanks again! 🚀 |
Use the corresponding ruff rules instead.
(see also corresponding PR in aiida-core that removed flynt aiidateam/aiida-core#7022)
All the code changes are autofixes from ruff.