Skip to content

chore: fix mypy pre-commit hook #1562

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

Merged
merged 3 commits into from
Aug 23, 2021
Merged

Conversation

nejch
Copy link
Member

@nejch nejch commented Aug 1, 2021

Closes #1539.

Additionally, since mypy 0.910 doesn't bundle stubs anymore we need to track them for pre-commit's own virtualenv :/ See pre-commit/pre-commit#730

@nejch nejch marked this pull request as draft August 1, 2021 12:29
@nejch nejch force-pushed the chore/fix-mypy-pre-commit branch from 7db1482 to 430c332 Compare August 1, 2021 12:31
@nejch nejch marked this pull request as ready for review August 1, 2021 19:00
@nejch nejch requested a review from JohnVillalovos August 1, 2021 19:00
@javatarz
Copy link
Contributor

Can we please get this merged? The pre-commit hooks are broken and the mypy stage blocks commits every time.

The workaround I've been using is to disable mypy locally (via a commit) and then remove the commit before pushing. This is painful.

@nejch
Copy link
Member Author

nejch commented Aug 22, 2021

Can we please get this merged? The pre-commit hooks are broken and the mypy stage blocks commits every time.

The workaround I've been using is to disable mypy locally (via a commit) and then remove the commit before pushing. This is painful.

Sorry, I know this was really annoying!

@JohnVillalovos I'm back from the dead 😆 would you be able to take a quick look/merge?

@nejch nejch requested a review from JohnVillalovos August 22, 2021 16:05
@JohnVillalovos JohnVillalovos merged commit 7a64e67 into master Aug 23, 2021
@JohnVillalovos JohnVillalovos deleted the chore/fix-mypy-pre-commit branch August 23, 2021 05:25
@JohnVillalovos
Copy link
Member

Thanks @nejch !

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.

pre-commit hook for mypy fails
4 participants