chore: Move to using Ruff for pre-commit#2124
chore: Move to using Ruff for pre-commit#2124matthewfeickert merged 4 commits intoscikit-hep:mainfrom
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2124 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 69 69
Lines 4531 4531
Branches 645 645
=======================================
Hits 4454 4454
Misses 45 45
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more.
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 in Codecov by Sentry. |
|
I've opened an issue about flake8-encodings in astral-sh/ruff#3278. |
3b445e9 to
d4ba877
Compare
|
Thanks for this PR @henryiii and sorry that I'm so slow in getting to it.
Which checks are these? It looks like everything is passing. Or am I missing something that you are now skipping in the PR? |
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
ac44d4d to
1d2d271
Compare
| [tool.nbqa.mutate] | ||
| pyupgrade = 1 |
There was a problem hiding this comment.
A note to self, the reason this is safe to remove is that the option was deprecated in v1.0.0. c.f. https://github.com/nbQA-dev/nbQA/blob/26f3ce04cd29bdfcda487fefdbae78925e80a5ff/nbqa/cmdline.py#L37
Description
This moves the flake8 & pyupgrade checks into a single Ruff check, and moves the config to pyproject.toml. There are a lot of checks that could be added (see https://scikit-hep.org/developer/style#ruff), I've just stuck to replicating the current config. The one loss is flake8-encodings, someone could request this added to Ruff.
I've skipped the failing checks for notebooks, might be worth checking to see if they are valid.
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: