Skip to content

Pytype Python Checker

Actions
Run pytype to static-type-check your code
v1.6
Latest
Star (3)

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.

Pytype Python Checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run pytype to static-type-check your code
v1.6
Latest

Pytype Python Checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.