-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
esavary
commented
Mar 21, 2024
- Replace flake8 CI job with a ruff CI job.
Except for And maybe we should look into that C901 and try to pacify ruff by improving the code, as opposed to adding one exception. |
More explicitly, are you suggesting adding B028 and C408 to the list of errors to ignore and modifying estimator.py to address C901? |
I think we should not have exceptions. We may add C901 temporarily so that this PR passes but open an issue to remind us of looking into it at a later time. |
Can you provide more details? If I leave out B028 and C408 from the exceptions, the PR won't pass. Right now, I've used error codes from the old Flake8 configuration for the extend and ignore lists in [tool.ruff.lint] in the pyproject.toml, but I'm not sure if this is the most effective approach. |
Co-authored-by: Oscar Esteban <[email protected]>
Co-authored-by: Oscar Esteban <[email protected]>
Okay, we have this at the moment:
These are trivial changes we can (and should) address. |
Should this be addressed in this PR, or would it be more appropriate for a separate PR? (Considering the PR subject is transitioning from flake8 to ruff) |
It's only four little changes -- I would stuff it in this one and reduce the noise overall |
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.
LGTM