jpetrucciani / mypy-check

github action for python's mypy type checker tool
MIT License
33 stars 14 forks source link

pydantic requirement error #4

Closed flaviojdz closed 2 years ago

flaviojdz commented 3 years ago

How do I approach solving this error? is there a way to trigger a pip install for extra mypy requirements?

mypy 0.910

jpetrucciani commented 3 years ago

Do you have your requirements listed in a requirements.txt or something like that? Would an option to pip install -r a file before running mypy be useful?

virtuald commented 2 years ago

Yes, that would be useful, otherwise mypy fails for anything that has dependencies on non-stdlib packages.

jpetrucciani commented 2 years ago

The latest release (or @master) should now support requirements and requirements_file as options!

- uses: jpetrucciani/mypy-check@master
  with:
    requirements_file: requirements.dev.txt