-
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: replace black+isort+flake8 tooling with ruff #1466
Conversation
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.
Here is the first round of feedback. Didn't have time to review all the changes yet but I'll do in the second pass, once this comments and the merge conflicts are fixed.
src/gt4py/next/program_processors/runners/dace_iterator/__init__.py
Outdated
Show resolved
Hide resolved
…tion (breaks QA checks).
…er migrating to ruff
f00a5b2
to
acb1fef
Compare
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.
It looks great. Thanks for all the work!
In PR #1466, `flake8`, `black`, and `isort` were replaced with the [ruff](https://astral.sh/ruff) linter and formatter. It seems there are a few leftovers of this transition. In this PR, I did a quick search for flake8 and deleted / replaced all instances found. Removing `flake8` means rebuilding the requirements (to propagate the changes to the frozen `requirements-*` files), which updates a couple of dependencies. We also decided to remove the `linter-*` tasks of `tox` since they have been replaced by `pre-commit`.
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.
`isort` has been replaced by `ruff` in PR #1466. _Note_ Removing `isort` means rebuilding the requirements, which updates a couple of unrelated (to the `isort` 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 generation https://github.com/GridTools/gt4py/blob/70dd7c34036e48c37f5047bf32573916836a4a35/src/gt4py/eve/codegen.py#L106 Co-authored-by: Roman Cattaneo <>
Code style and format changes moving from black+isort+flake8 to ruff.