Skip to content
check-circle

GitHub Action

Pytype Python Checker

v1.6 Latest version

Pytype Python Checker

check-circle

Pytype Python Checker

Run pytype to static-type-check your code

Installation

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

              

- name: Pytype Python Checker

uses: theahura/pytype-action@v1.6

Learn more about this action in theahura/pytype-action

Choose a version

pytypes-action

Run pytype in a Github Workflow.

Usage

To use, create a workflow file (e.g. .github/workflows/type_check.yml) with the following:

name: pytype check
on: [push]
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: pytypes checker
      uses: theahura/pytypes-action@main
      with:
        args: -d import-error

You can add other pytype args in the args section of the github workflow.

Note: pytype will fail in your github workflow for thirdparty imports unless you explicitly install them beforehand. Consider using -d import-error to disable import checking for all files.