Skip to content
check-square

GitHub Action

Mypy Check

0.991 Latest version

Mypy Check

check-square

Mypy Check

GitHub action to run mypy on your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mypy Check

uses: jpetrucciani/mypy-check@0.991

Learn more about this action in jpetrucciani/mypy-check

Choose a version

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'