Skip to content
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

Mypy: Adds static type checking to CI/pre-commit #828

Merged
merged 7 commits into from
May 16, 2023
Merged

Mypy: Adds static type checking to CI/pre-commit #828

merged 7 commits into from
May 16, 2023

Conversation

Daverball
Copy link
Member

@Daverball Daverball commented May 16, 2023

Commit message

Mypy: Adds static type checking to CI/pre-commit

This pulls in all the type stubs and fixes mypy errors in global scope i.e. the minimum
to start gradually adding type hints to the code base. The rules are very lax right now
and can be gradually made more strict for certain modules as we finish adding type
stubs to them.

Checklist

  • I have performed a self-review of my code

This is a very lax base config and does not add any annotations beyond
the bare minimum to make mypy happy. But this allows us to get started
on adding type annotations to our code and gradually make the config
more strict for the parts of the code that is annotated.
Although this should be disabled by default...
Maybe it's because we use ignore instead of extend-ignore?
@Daverball Daverball merged commit f12698b into master May 16, 2023
@Daverball Daverball deleted the mypy branch May 16, 2023 08:53
Tschuppi81 pushed a commit that referenced this pull request Jun 19, 2023
mypy: Enables static type checking

This is a very lax base config and does not add any annotations beyond
the bare minimum to make mypy happy. But this allows us to get started
on adding type annotations to our code and gradually make the config
more strict for the parts of the code that is annotated.
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