[FSSDK-12276] update: replace flake8 with ruff#492
Merged
FarhanAnjum-opti merged 9 commits intomasterfrom Feb 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Replaces Flake8 with Ruff as the project’s Python linter by adding Ruff configuration, updating developer docs, and switching CI to run ruff check.
Changes:
- Add
ruff.tomlwith Flake8-equivalent rule selection (E/W/F) and project excludes. - Swap Flake8 for Ruff in test requirements and GitHub Actions lint job.
- Update contributor documentation to reference Ruff; remove legacy
.flake8.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
ruff.toml |
Introduces Ruff config (line length, excludes, selected rule families, per-file ignores). |
requirements/test.txt |
Replaces flake8 dependency with ruff. |
CONTRIBUTING.md |
Updates contributor workflow and style notes to use Ruff. |
.github/workflows/python.yml |
Updates CI lint job to install/run Ruff instead of Flake8. |
.flake8 |
Removes obsolete Flake8 configuration file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Mat001
approved these changes
Feb 9, 2026
Contributor
Mat001
left a comment
There was a problem hiding this comment.
LGTM. Make sure that no errors in PR checks.
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
The change simplifies the linting setup, improves performance, and reduces dependency overhead while maintaining equivalent linting coverage. Linting errors that do not break code logic can be auto fixed using
ruff check . --fixTest plan
ruff check .locallyIssues
FSSDK-12276