SG-44418 Replace flake8 with ruff for tk-core linting - #1125
Open
stevelittlefish wants to merge 3 commits into
Open
SG-44418 Replace flake8 with ruff for tk-core linting#1125stevelittlefish wants to merge 3 commits into
stevelittlefish wants to merge 3 commits into
Conversation
Migrate pre-commit and CI linting from flake8 to ruff, preserving the existing rule set and fixing a handful of violations ruff catches that flake8 did not. Co-authored-by: Cursor <cursoragent@cursor.com>
Consolidate import sorting and formatting into ruff-check and ruff-format, and apply the new tooling across the repository. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1125 +/- ##
==========================================
- Coverage 80.11% 80.08% -0.03%
==========================================
Files 203 203
Lines 19541 19525 -16
==========================================
- Hits 15655 15637 -18
- Misses 3886 3888 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
carlos-villavicencio-adsk
approved these changes
Jul 27, 2026
carlos-villavicencio-adsk
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me. I like the ruff style.
julien-lang
reviewed
Jul 29, 2026
Now that Python linting is fully handled by ruff via pre-commit and Azure CI, .hound.yml served no remaining purpose (it only existed to disable checks Hound no longer needs to run), so remove it entirely per review feedback. Also fixes the pyproject.toml copyright header year (2025 -> 2026). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
ruff-checkv0.16.0) for linting and code analysis.flake8topyproject.toml, preserving the existing rule set and exclusionsAzure CI requires no pipeline changes —
tk-ci-toolsalready runspre-commit run --all, which will pick up ruff automatically.Jira: https://autodesk.atlassian.net/browse/SG-44418
Test plan
pre-commit run --all-filespasses locallyMade with Cursor