Merge pull request #192 from yedpodtrzitko/yed/better-mypy-pr

use reviewdog for mypy job
This commit is contained in:
Travis Abendshien 2024-05-17 21:02:02 -07:00 committed by GitHub
commit cdf2581f84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,10 +12,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: reviewdog/action-setup@v1
with:
python-version: '3.12'
reviewdog_version: latest
- name: Install dependencies
run: |
@ -24,10 +23,13 @@ jobs:
pip install PySide6==6.6.2
pip install -r requirements.txt
pip install mypy==1.10.0
mkdir tagstudio/.mypy_cache
- name: Run MyPy
run: |
cd tagstudio
mkdir -p .mypy_cache
mypy --install-types --non-interactive
mypy --config-file ../pyproject.toml .
- uses: tsuyoshicho/action-mypy@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
fail_on_error: true
workdir: tagstudio
level: error
mypy_flags: --config-file ../pyproject.toml