Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-141376: make smelly: Add colours, adjust messages.#141394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
encukou wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromencukou:make-smelly-colour

Conversation

@encukou
Copy link
Member

@encukouencukou commentedNov 11, 2025
edited
Loading

Without colours, the script's output hard to scan for my spoiled eyes.

The messages are adjusted to no longer imply a lack of exceptions to the rules.

(This PR is not tightly related to#141376 but I think it's best to attach it to that issue.)

@encukouencukou changed the titlegh-141391: make smelly: Add colours, adjust messages.gh-141376: make smelly: Add colours, adjust messages.Nov 11, 2025
@encukou
Copy link
MemberAuthor

@AA-Turner@hugovk How can I inform precommit that_colorize is part of the stdandard library?

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

Instead of colors, I would prefer to not print each tested binary unless if has "smelly" symbols.

@hugovk
Copy link
Member

@AA-Turner@hugovk How can I inform precommit that_colorize is part of the stdandard library?

Add this toTools/build/.ruff.toml:

diff --git a/Tools/build/.ruff.toml b/Tools/build/.ruff.tomlindex 996f725fdcb..e7852abe131 100644--- a/Tools/build/.ruff.toml+++ b/Tools/build/.ruff.toml@@ -31,6 +31,9 @@ ignore = [     "PYI025",  # Use `from collections.abc import Set as AbstractSet` ]+[lint.isort]+extra-standard-library = ["_colorize"]+ [lint.per-file-ignores] "{check_extension_modules,freeze_modules}.py" = [     "UP031",  # Use format specifiers instead of percent format

Docs:https://docs.astral.sh/ruff/settings/#lint_isort_extra-standard-library

And note it'll stick it first in the stdlib import list.

encukou reacted with thumbs up emoji

@encukou
Copy link
MemberAuthor

@hugovk, thanks! Maybe I'll not need it here but hopefully I'll remember next time.

@vstinner, would you be OK with something likehttps://github.com/encukou/cpython/blob/make-smelly-refactor/Tools/build/smelly.py ?

hugovk reacted with thumbs up emoji

@vstinner
Copy link
Member

would you be OK with something likehttps://github.com/encukou/cpython/blob/make-smelly-refactor/Tools/build/smelly.py ?

Yes, something like that 👍

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@encukou@hugovk@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp