Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 981 Bytes

README.md

File metadata and controls

58 lines (33 loc) · 981 Bytes

mypy-check

GitHub Action for mypy

Make sure you have a mypy.ini or setup.cfg file at the root of your repository!

Inputs

path

Optional The path to run mypy on

Default "."

mypy_flags

Optional Optional mypy flags (refer to mypy --help)

Default ""

requirements

Optional Optional, if not empty: parameters to pass to pip install before running mypy

Default ""

requirements_file

Optional Optional, if not empty: a file to pass to pip install -r before running mypy

Default ""

python_version

Optional Optional, Python version to use

Default "3.10"

Outputs

None

Example usage

uses: jpetrucciani/mypy-check@master

# or specify a path!
uses: jpetrucciani/mypy-check@master
with:
  path: '.'


# or specify additional mypy flags!
uses: jpetrucciani/mypy-check@master
with:
  mypy_flags: '--config-file .mypy.ini'