Skip to content

Lint: Use Ruff to format Tools/build/check_warnings.py - #133317

Merged
AA-Turner merged 1 commit into
python:mainfrom
AA-Turner:ruff-format-check-warnings
May 2, 2025
Merged

AA-Turner merged 1 commit into
python:mainfrom
AA-Turner:ruff-format-check-warnings

Conversation

@AA-Turner

Copy link
Copy Markdown
Member

Split out from #133123.

A

@AA-Turner AA-Turner changed the title Lint: Use Ruff to format Tools/build/check_warnings.py May 2, 2025
Comment thread Tools/build/.ruff.toml
Comment on lines -27 to -29
[per-file-target-version]
"deepfreeze.py" = "py310"
"stable_abi.py" = "py311" # requires 'tomllib'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to the top of the file as currently this is in-between the lint table and a lint subtable

@AA-Turner

AA-Turner commented May 2, 2025 •

Copy link
Copy Markdown
Member Author

cc @nohlson as the main author of check_warnings.py. I think the formatting changes here help readability & reduce indendation.

A

@AA-Turner
AA-Turner merged commit 49ea8a0 into python:main May 2, 2025
@AA-Turner
AA-Turner deleted the ruff-format-check-warnings branch May 2, 2025 20:26
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants