-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor/replace black flake8 with ruff #359
base: main
Are you sure you want to change the base?
Conversation
Ruff thought that the imports in context were unused.
Not sure if this solves the error, I have renamed the file locally, but for some reason it doesn't propagate to GH
@@ -255,16 +255,16 @@ the ``has`` filter to find cases that have ``4d-seismic`` data: | |||
|
|||
.. code-block:: python | |||
|
|||
from fmu.sumo.explorer import Explorer, Filters | |||
from fmu.sumo.explorer import Explorer, filters |
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.
Why is Filters
changed to filters
here?
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.
I guess the convention is lowercase filenames? Which Filters.py
is breaking.
Should Filters.py
be renamed to filters.py
as well?
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.
Oops. I thought I had renamed the file to filters.py.
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, but the change from Filters
to filters
in docs/explorer.rst
are wrong, and should be reverted.
pep-8 recommends the use of Since the naming of all the other files in the same folder is using snake_case I'll maintain that convention by renaming the file to filters.py |
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.
👍
Issue
#358
Short description
Pre-review checklist
print()
statements, commented-out code, or other remnants from the development. 👀Pre-merge checklist