Skip to content

Check pyrightconfig stricter exclude list order#15243

Merged
srittau merged 3 commits intopython:mainfrom
donbarbos:check-exlude-list-order
Jan 15, 2026
Merged

Check pyrightconfig stricter exclude list order#15243
srittau merged 3 commits intopython:mainfrom
donbarbos:check-exlude-list-order

Conversation

@donbarbos
Copy link
Copy Markdown
Contributor

The idea was proposed in #8774

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks, two optional comments below.

Comment thread tests/check_typeshed_structure.py Outdated
Comment on lines +181 to +185
# Remove full-line // comments only
# (Can not remove inline comments)
text = re.sub(r"(?m)^\s*//.*\n?", "", text)
# Remove trailing commas before } or ]
text = re.sub(r",\s*([}\]])", r"\1", text)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We could extract this to a new (incomplete) utility function json5_to_json. Might come in useful in the future.

Comment thread tests/check_typeshed_structure.py
@srittau srittau merged commit 0c45df1 into python:main Jan 15, 2026
66 checks passed
@donbarbos donbarbos deleted the check-exlude-list-order branch February 25, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants