Skip to content

Conversation

@hickeyma
Copy link
Collaborator

Description of the change

Python is a dynamic language and does not use static type checking. It instead prevents typing errors at runtime . It

mypy is a standard open source static typing tool for Python which is widely used. This PR adds mypy as tox target mypy.

Note: The suggestions from mypy will be applied to the files in a follow PR and static checking enabled in CI/CD by default.

Related issue number

Partial #33

How to verify the PR

Running it: tox -e mypy

Was the PR tested

  • I have ensured all unit tests pass

Added to tox as `mypy` target

Signed-off-by: Martin Hickey <[email protected]>
@chichun-charlie-liu chichun-charlie-liu merged commit 4335a9d into foundation-model-stack:main Jan 21, 2025
11 checks passed
@hickeyma hickeyma deleted the ci/add-mypy branch January 22, 2025 09:52
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