-
Notifications
You must be signed in to change notification settings - Fork 49
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
style: Remove stale references to isort #1631
Conversation
isort has been replaced by ruff with PR GridTools#1466. Removing isort means rebuilding the requirements, which updates a couple of unrelated (to the isort removal) dependencies.
/cc @egparedes I found more leftovers from the |
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
@@ -12,7 +12,7 @@ | |||
import pytest | |||
|
|||
|
|||
pytest.importorskip("atlas4py") # isort: skip | |||
pytest.importorskip("atlas4py") |
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'm a bit surprised this is not longer needed, but it's good to know. Also note that the #isort: skip
comments are actually respected by ruff (https://docs.astral.sh/ruff/linter/#action-comments) although it would have been better to add the # ruff:
prefix as it is mentioned in the docs.
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 was also surprised that nothing breaks, but since it works at is, I think it's better to remove them. Good to know (for the future) that ruff
respects these.
cscs-ci run |
Do I read the logs correctly and the two tests just failed because there weren't any nodes responding (to slurm) in the 8h time window? Or do you think it is stuck somewhere in setup (given that I changed dependencies)? |
No, I think you're right and failure is unrelated to the changes in this PR. Let's try again. |
cscs-ci run |
Description
isort
has been replaced byruff
in PR #1466.Note Removing
isort
means rebuilding the requirements, which updates a couple of unrelated (to theisort
removal) dependencies.Note 2 I also checked for
black
(formatter) and there are lingering references too. However,black
is actively used as formatter in code generationgt4py/src/gt4py/eve/codegen.py
Line 106 in 70dd7c3
Requirements
If this PR contains code authored by new contributors please make sure:
AUTHORS.md
file adding the names of all the new contributors.