From 6bfeba9a6354233b4b82ff46a81f6e3a1ec251b4 Mon Sep 17 00:00:00 2001 From: Martin Schroeder Date: Fri, 23 May 2025 14:40:43 +0200 Subject: [PATCH] Add a new workflow to ensure that new contributions are correctly typed --- .github/workflows/mypy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/mypy.yml 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