Skip to content

Fix pre-commit by removing the mypy hook - #47

Merged
lackhove merged 3 commits into
lackhove:mainfrom
cdleonard:feature/fix-pre-commit
Apr 1, 2026
Merged

lackhove merged 3 commits into
lackhove:mainfrom
cdleonard:feature/fix-pre-commit

Conversation

@cdleonard

Copy link
Copy Markdown
Contributor

This does not currently work because pre-commit executes hooks in a private venv and mypy requires the projects own dependencies.

It's possible to make this pass by duplicating dependencies into the pre-commit config file but it is not worth it.

Also run pre-commit inside github to ensure config is always appropriate.

cdleonard and others added 3 commits April 1, 2026 12:55
This does not currently work because pre-commit executes hooks in a
private venv and mypy requires the projects own dependencies.

It's possible to make this pass by duplicating dependencies into the
pre-commit config file but it is not worth it.
By executing pre-commit inside CI we ensure that the config works.
@lackhove

lackhove commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Thanks for the hint! This reminds me of why i never liked pre-commit. Id like to keep the dotfile around for those who use but rather not have to deal with it in CI. I will revert that commit and merge.

@lackhove
lackhove merged commit adfba73 into lackhove:main Apr 1, 2026
7 checks passed
@cdleonard

Copy link
Copy Markdown
Contributor Author

I generally always add pre-commit into CI scripts and it works fine.

@cdleonard
cdleonard deleted the feature/fix-pre-commit branch April 20, 2026 21:42
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