Skip to content

Run mypy on type stubs as well#59

Closed
Skylion007 wants to merge 1 commit intopre-commit:masterfrom
Skylion007:patch-1
Closed

Run mypy on type stubs as well#59
Skylion007 wants to merge 1 commit intopre-commit:masterfrom
Skylion007:patch-1

Conversation

@Skylion007
Copy link
Copy Markdown
Contributor

@Skylion007 Skylion007 commented Oct 1, 2021

Currently, the mypy pre-commit hook will ignore changes of stubs (.pyi) files since they are not part of the python type. This update the hook to use the types_or config value to ensure that mypy is run if corresponding stub files change. Black which supports formatting python files and pyi stub files was also updated to fix a similar bug where pyi files were not considered.

@asottile
Copy link
Copy Markdown
Member

asottile commented Oct 1, 2021

this file is generated

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants