Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 704 Bytes

File metadata and controls

37 lines (27 loc) · 704 Bytes

Mypy PR Annotator

demo

Usage

Annotate pull requests with mypy errors detected during CI.

Note: This doesn't install or run mypy, it just sets up the PR annotations.

Example workflow

name: My Workflow
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master

      - name: Set up Python 3.8
        uses: actions/setup-python@v2
        with:
          python-version: "3.8"
        
      - name: Install mypy
        run: |
          pip install mypy

      - name: Add mypy annotator
        uses: pr-annotators/mypy-pr-annotator@v1.0.0

      - name: Run mypy
        run: |
          mypy src/