mypy #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mypy | |
on: | |
push: | |
paths: | |
- '**/*.py' # Watch for changes in any Python files | |
- 'pyproject.yml' # Watch for changes in the pyproject.yml file | |
- 'workflows/mypy.yml' | |
workflow_dispatch: | |
jobs: | |
mypy: | |
name: runner / mypy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
python -m pip install -U mypy | |
- name: lint the code with mypy | |
uses: tsuyoshicho/action-mypy@v4 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. | |
reporter: github-pr-review |