From 2b9768bb6c301d70d0eba4ad30d19d0d2356e0c9 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Sun, 17 Nov 2024 23:21:51 +0100 Subject: [PATCH] IMPROVEMENT: use sasanquaneuf/mypy-github-action in mypy --- .github/workflows/mypy.yml | 10 +++++----- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 557742a..92621d7 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -23,9 +23,9 @@ jobs: run: | python -m pip install -U mypy - - name: lint the code with mypy - uses: tsuyoshicho/action-mypy@v4 + - name: Lint the code with mypy + uses: sasanquaneuf/mypy-github-action@releases/v1.3 with: - github_token: ${{ secrets.github_token }} - # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. - reporter: github-pr-review + checkName: 'mypy' # NOTE: this needs to be the same as the job name + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 0f9ed33..f8a9894 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -162,3 +162,4 @@ strict_equality = true warn_unused_configs = true files = ["MethodicConfigurator/*.py"] +exclude = ["unittests"] \ No newline at end of file