Skip to content

ci: use only pre-commit for type checks#306

Merged
flying-sheep merged 3 commits intomainfrom
pa/only-pre-commit
Nov 19, 2025
Merged

ci: use only pre-commit for type checks#306
flying-sheep merged 3 commits intomainfrom
pa/only-pre-commit

Conversation

@flying-sheep
Copy link
Copy Markdown
Member

@flying-sheep flying-sheep commented Nov 19, 2025

I didn’t realize that this probably works!

@flying-sheep flying-sheep changed the title Use only pre-commit for type checks ci: use only pre-commit for type checks Nov 19, 2025
@flying-sheep flying-sheep requested a review from grst November 19, 2025 10:57
Comment on lines +73 to +79
additional_dependencies:
- httpx
- types-jsonschema
- pillow
- pygithub
- types-PyYAML
- rich
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there's no way to get this from pyproject.toml I guess?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nope! Either you have mypy in pre-commit (with this) or you don’t have mypy in pre-commit.

It might be possible that there is a typecheck hook that downloads the necessary dependencies, but I don’t know.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it be absurd to use lang: system together with hatch run? But probably that falls apart on pre-commit-ci

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

But probably that falls apart on pre-commit-ci

exactly!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I found this, which could be worth investigating: https://github.com/H4rryK4ne/update-mypy-hook

@flying-sheep flying-sheep merged commit 8e6f238 into main Nov 19, 2025
3 checks passed
@flying-sheep flying-sheep deleted the pa/only-pre-commit branch November 19, 2025 13:28
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