-
Notifications
You must be signed in to change notification settings - Fork 14
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
Replace flake8/isort/black with ruff #115
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #115 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 634 632 -2
=========================================
- Hits 634 632 -2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, this has been on my to do list for a long time. Thanks for taking this over @cbrnr.
Just a small comment why not do docs/ as well (but could be done in a follow up, so I am approving anyhow).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to go IMO, please feel free to merge when green.
@@ -39,7 +39,7 @@ you can run tests by making use of the `Makefile` and | |||
From the project root, call: | |||
|
|||
- `make test` to run tests and coverage | |||
- `make pep` to run style checks | |||
- `pre-commit run` to run style checks (Ruff and some additional hooks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this better be pre-commit run -a
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, otherwise it will only run against staged files.
This PR replaces flake8/isort/black with ruff. In addition, I've (mostly manually) re-formatted docstrings so that they now use the line length limit of 88 chars. I've also removed
make pep
, because this is now being taken care of via pre-commit.