Set ruff line-length to 120 and enforce E501#4742
Open
Kludex wants to merge 2 commits into
Open
Conversation
Bump the project line-length from 79 to 120 and remove E501 from the ruff ignore list so long lines are now linted. Reformat the repo with ruff to reflow code under the new width, and manually rewrap the string literals, docstrings, and test fixtures that the formatter cannot wrap. Assisted-by: Claude Opus 4.8
lmolkova
approved these changes
Jun 25, 2026
herin049
approved these changes
Jun 25, 2026
- Regenerate bootstrap_gen.py so it matches the 120-char format - Realign the mysql and psycopg2 docstring grid tables broken during rewrapping - Restore the anthropic cast() target to a single string literal so pyright parses it as a type - Add the changelog fragment Assisted-by: Claude Opus 4.8
Member
Author
|
@xrmx wanna do the honors before a PR gets in and I have to rebase? 😢 |
emdneto
approved these changes
Jun 30, 2026
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.
Description
Bump the ruff
line-lengthfrom 79 to 120 and removeE501from the ignore list so long lines are now linted.ruff formatreflows code under the new width (the bulk of the diff).# noqaadded.# pylint:/# pyright:pragmas); ruff's E501 exempts these, and the lint gate is green.Type of change
How Has This Been Tested?
uv run pre-commit run ruff --all-filespasses (0 E501)..pyfiles byte-compile.Does This PR Require a Core Repo Change?
Checklist:
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.