Add ruff section to pyproject.toml #1390
Merged
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.
Fixes #1361
I've already changed the linter from flake8 to ruff, but ruff is causing build warnings. I've fixed the ruff errors locally through migrating the ignored errors and path exclusions from the old .flake8 file, and I changed the ruff step to now fail the build if the step fails.
edit:
Looks like some checks failed, but the Lint step is the only one I care about, and that step is passing:
https://dev.azure.com/debugpy/debugpy/_build/results?buildId=4084&view=logs&jobId=3a559e2a-952e-58d2-b8db-2e604a9266d7&j=3a559e2a-952e-58d2-b8db-2e604a9266d7&t=6f845a59-a86d-5907-2b45-02c2fb4984eb
My changes could not have caused any other failures, so I'm not worried about those other checks.