diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml new file mode 100644 index 00000000..6a36bc25 --- /dev/null +++ b/.github/workflows/mypy.yml @@ -0,0 +1,20 @@ +name: reviewdog +on: [pull_request] +jobs: + mypy: + name: runner / mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: tsuyoshicho/action-mypy@v5 + with: + github_token: ${{ secrets.github_token }} + # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. + reporter: github-pr-review + # Change reporter level if you need. + # GitHub Status Check won't become failure with warning. + level: warning + # Change the current directory to run mypy command. + # mypy command reads setup.cfg or other settings file in this path. + workdir: pytrinamic + mypy_flags: --disable-error-code=import-untyped