Skip to content

theahura/pytype-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.