build: migrate linting from flake8, isort, and black to ruff - #706
Open
hasansezertasan wants to merge 4 commits into
Open
build: migrate linting from flake8, isort, and black to ruff#706hasansezertasan wants to merge 4 commits into
hasansezertasan wants to merge 4 commits into
Conversation
…e new style workflow using Ruff for code style checks and formatting.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #706 +/- ##
==========================================
- Coverage 79.07% 79.06% -0.02%
==========================================
Files 21 21
Lines 1754 1753 -1
Branches 243 243
==========================================
- Hits 1387 1386 -1
Misses 286 286
Partials 81 81
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…orts in Flask app and CLI module
hasansezertasan
marked this pull request as ready for review
July 27, 2026 15:19
Resolve conflicts from the 'Housekeeping 2026' refactor on master: - Drop black/isort config and the flake8 tox env from pyproject.toml; keep master's pyproject-based tox config and add a ruff 'style' env - Replace flake8 with ruff in setup.cfg; drop the [flake8] section - Remove black.yml (superseded by style.yml) and drop tox.ini (tox config now lives in pyproject.toml) - Keep tox-gh in CI workflows; drop the now-unneeded flake8 install - Take master's source changes and reapply ruff format/lint
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.
Summary
Migrate the project's linting and formatting toolchain from flake8, isort, and black to a single tool: ruff.
Changes
pyproject.toml: add[tool.ruff]config (line length 120,E/F/W/D/Ilint rules,pep257docstring convention, mccabe complexity, LF line endings); remove[tool.black]and[tool.isort].setup.cfg: replaceflake8withruffin test dependencies; drop the[flake8]section.tox: replace theflake8env with astyleenv that runsruff checkandruff format.style.yml(runs ruff viaastral-sh/ruff-action) and removeblack.yml; drop the now-unneededflake8install from the package workflows.ruff format/ruff check --fixacross the source tree.Notes
masterhave been resolved by keeping master'spyproject.toml-based tox configuration and reapplying the ruff migration on top of it.Related to #703