Visitar URL original
Add `ty` type checking linter into pre-commit hooks - failure allowed by spaceone · Pull Request #682 · python-ldap/python-ldap · GitHub
Skip to content

Add ty type checking linter into pre-commit hooks - failure allowed - #682

Open
spaceone wants to merge 3 commits into
mainfrom
ci/ty-linting
Open

spaceone wants to merge 3 commits into
mainfrom
ci/ty-linting

Conversation

@spaceone

Copy link
Copy Markdown
Contributor

ty is an extremely fast Python type checker and language server, written in Rust.

It currently finds 57 additional diagnostics compared to mypy - most of them being false-positives.

If python-ldap passes linting via ty, it can be be used more reliable.

This pre-commit hook make the violations visible without failing.

There might be a baseline-feature in ty soonish: astral-sh/ty#1074
But I think it's just a one-time effort to get all the violations pass.

@spaceone spaceone added this to the 3.5.0 milestone Oct 25, 2026
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.

1 participant