Migrate CI to Ruff for Code Formatting and Linting#170
Merged
slashmili merged 17 commits intoslashmili:mainfrom Oct 13, 2025
Merged
Migrate CI to Ruff for Code Formatting and Linting#170slashmili merged 17 commits intoslashmili:mainfrom
slashmili merged 17 commits intoslashmili:mainfrom
Conversation
fix some formatting issues. add ruff settings to pyproject.toml use setuptools.setup instead disutils setup in setup.py. replace isort with ruff in test.yml workflow. use f-strings instead of %-strings.
ruff already does almost every thing that flake8 does.
I'll probably migrate setup.py to pyproject.toml completely later
It recommended to add it but I'm not sure if others agree yet. I can add it back later.
setup.cfg line length was set to 110.
remove flake8 and isort references add py314 to gh-actions and envlist.
New pyproject.toml uses dynamic versioning, meaning it will detect the version in ``__init__.py`` automatically and use that for publishing.
Owner
|
Thanks @5j9 for you work and initiative! @hramezani could you kindly review the changes? |
hramezani
approved these changes
Oct 13, 2025
Collaborator
|
ُThanks @5j9 LGTM 👍 |
Owner
|
Thanks! @5j9 let me know when it's final and I can merge it. |
Contributor
Author
|
I think this pull request is ready to be merged. Migrating |
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a migration from flake8 and isort
to Ruff, a fast Python linter and formatter.
The goal is to streamline the code quality tooling and improve
CI performance, code readability and consistency.
Changes:
(I chose single quotes, but it can easily be changed to double)
Possible future steps:
uv buildinstead ofpipandbuildinpublish-to-pypi.ymlworkflow.