Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup.py to selfcheck #18609

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add setup.py to selfcheck #18609

wants to merge 2 commits into from

Conversation

mr-c
Copy link
Contributor

@mr-c mr-c commented Feb 5, 2025

Enhance the setup.py types.

mypy's setup.py is used as inspiration for other Setuptools-using projects that want to produce mypyc compiled binary wheels. Therefore it should also be typechecked and held to a higher standard.

mr-c and others added 2 commits February 5, 2025 09:52
Enhance the setup.py types.

mypy's setup.py is used as inspiration for other setuptools using Python
projects that want to produce mypyc compiled binary wheels. Therefore it
should also be typechecked and held to a higher standard.
Copy link
Contributor

github-actions bot commented Feb 5, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

"-c",
"from mypy.main import main as mypy; "
"mypy(args=['--config-file', 'mypy_self_check.ini', '-p', 'mypy', '-p', 'mypyc']); "
"mypy(args=['--config-file', 'mypy_self_check.ini', 'setup.py'])",
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we should have two different type checks, self (which checks mypy) and self-packaging (which checks setup.py)?

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