You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we're loosely enforcing the PEP8 recommendation for import sorting - unsorted imports are noticed manually by PR reviewers, and manual reordering is requested to match the standard.
isort is a Python utility that automatically sorts imports, and also provides a GH action to perform a style check for import sorts.
Imports should be grouped in the following order:
standard library imports
related third party imports
local application/library specific imports
You should put a blank line between each group of imports.
Change
No response
The text was updated successfully, but these errors were encountered:
Description
Follow-up item from the Rucio Retreat 2024.
At the moment, we're loosely enforcing the PEP8 recommendation for import sorting - unsorted imports are noticed manually by PR reviewers, and manual reordering is requested to match the standard.
isort
is a Python utility that automatically sorts imports, and also provides a GH action to perform a style check for import sorts.isort
to pre-commit hookisort GH action: https://pycqa.github.io/isort/docs/configuration/github_action.html (seems like it can also be done via pylint https://stackoverflow.com/questions/22722976/import-order-coding-standard)
Motivation
From PEP8:
Change
No response
The text was updated successfully, but these errors were encountered: