Skip to content
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

Testing: sort imports and add isort-only Ruff to pre-commit and autotests #6578

Merged
merged 2 commits into from Mar 20, 2024

Conversation

rdimaio
Copy link
Contributor

@rdimaio rdimaio commented Mar 18, 2024

Part of #6538

  • b1debb9: sorting all imports in the repository
  • 4982042: ruff configuration (only performs isort checking for now), and added ruff to pre-commit script and GH autotest

@rdimaio
Copy link
Contributor Author

rdimaio commented Mar 19, 2024

latest force-push is just a rebase from master and a fix to the merge conflict (correctly ordered the out-of-order imports from #6579)

@rdimaio rdimaio force-pushed the patch-6538-sorting branch 2 times, most recently from 0f0aef3 to 79bd1fa Compare March 19, 2024 16:01
@rdimaio
Copy link
Contributor Author

rdimaio commented Mar 19, 2024

latest force-push is just a rebase from master and a fix to the merge conflict (correctly ordered the out-of-order imports from the last commits merged)

Adding Ruff to both the pre-commit script
(with --fix passed, thus sorting imports automatically)
and to GH autotest (checking only).
Ruff is currently only configured to check for import sorting.
Other linting functions (flake8, pyupgrade) will be added progressively.
@bari12 bari12 merged commit 1ab4bfc into rucio:master Mar 20, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants