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

Use mypy to statically check sources #357

Closed
jku opened this issue May 18, 2021 · 0 comments · Fixed by #361
Closed

Use mypy to statically check sources #357

jku opened this issue May 18, 2021 · 0 comments · Fixed by #361
Assignees

Comments

@jku
Copy link
Collaborator

jku commented May 18, 2021

We should start using mypy to check our sources statically. This implies also adding type annotations to functions. Doing this is useful for securesystemslib but doing this for public api is also useful for TUF (as TUF can then statically check the calls it makes to this API).

Configuring mypy and setting tox lint to run it (see theupdateframework/python-tuf#1395 for examples) should be easy, but it requires at least some parts of securesystemslib to be type annotated (#358)

See also Using mypy with an existing codebase

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 a pull request may close this issue.

2 participants