Skip to content

PEP 765: What's New warnings filter suggestions - #139658

Merged
AA-Turner merged 3 commits into
python:mainfrom
ncoghlan:whats-new-syntax-warning-control
Oct 6, 2025
Merged

PEP 765: What's New warnings filter suggestions#139658
AA-Turner merged 3 commits into
python:mainfrom
ncoghlan:whats-new-syntax-warning-control

Conversation

@ncoghlan

@ncoghlanncoghlan commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

For CI use cases where static code analysis is in use, emitting syntax warnings is essentially redundant.

Accordingly, there's no harm in suggesting that folks turn them off to avoid poor interactions between PEP 765 and treating warnings as errors.


📚 Documentation preview 📚: https://cpython-previews--139658.org.readthedocs.build/

For CI use cases where static code analysis is in use,
emitting SyntaxWarnings is essentially redundant.
Accordingly, there's no harm in suggesting that folks
turn them off to avoid poor interactions between PEP 765
and treating warnings as errors.
@ncoghlanncoghlan added docs Documentation in the Doc dir skip issue skip news labels Oct 6, 2025
@ncoghlanncoghlan added 3.14 bugs and security fixes needs backport to 3.14 bugs and security fixes 3.15 pre-release feature fixes, bugs and security fixes labels Oct 6, 2025
Comment threadDoc/whatsnew/3.14.rst Outdated
Comment threadDoc/whatsnew/3.14.rst Outdated
Comment threadDoc/whatsnew/3.14.rst Outdated
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Comment threadDoc/whatsnew/3.14.rst
@AA-TurnerAA-Turner removed 3.14 bugs and security fixes 3.15 pre-release feature fixes, bugs and security fixes labels Oct 6, 2025
@AA-Turner
AA-Turner merged commit 3311580 into python:mainOct 6, 2025
31 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsOct 6, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @ncoghlan for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 6, 2025
…nGH-139658)
(cherry picked from commit 3311580)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-139676 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Oct 6, 2025
hugovk pushed a commit that referenced this pull request Oct 6, 2025
…GH-139658) (#139676)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
danigm pushed a commit to openSUSE-Python/cpython that referenced this pull request Oct 7, 2025
…n#139658)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip issueskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@ncoghlan@iritkatriel@AA-Turner