Skip to content

yasarutkuu/pytype-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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.

About

Run pytypes in a Github Workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 83.8%
  • Shell 16.2%