-
Notifications
You must be signed in to change notification settings - Fork 552
chore: use ruff formatter #1351
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
base: develop
Are you sure you want to change the base?
Conversation
Replace isort and black with ruff and ruff-format in pre-commit config. Update hooks to use ruff for both linting and formatting, specifying versions v0.9.6 and v0.11.2. Remove isort and black hooks, and keep other hooks unchanged.
Introduced a new `imports.py` module providing utilities to handle optional dependencies. This includes functions for importing optional modules with customizable error handling, checking for their presence, and version validation. Also added a mapping for commonly used optional dependencies and a helper to retrieve them with predefined settings.
Documentation preview |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #1351 +/- ##
===========================================
- Coverage 71.59% 71.55% -0.04%
===========================================
Files 168 169 +1
Lines 16862 16887 +25
===========================================
+ Hits 12072 12084 +12
- Misses 4790 4803 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
We already have Black in our pre-commits, but this would add a linter which would be really valuable. Can we merge this after the functional and type-check MRs? |
yes, let's merge it at the end. It is not urgent we can even include it for 0.18 |
|
Should we enable this as a formatter first ( Just out of curiousity I ran And on the tests/ directory: |
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.
Looks good, let's turn on the formatter for 0.17. If we have time we can do the linting (P1)
No description provided.