FEATURE: Add pyright support #53
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: 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 types-requests | |
- name: Lint the code with mypy | |
uses: sasanquaneuf/mypy-github-action@releases/v1.3 | |
with: | |
checkName: 'mypy' # NOTE: this needs to be the same as the job name | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |