From 4078351cabf771e3b050b74523b6ee5cb7ece5fc Mon Sep 17 00:00:00 2001 From: Martin Schmitt Date: Fri, 22 Sep 2023 10:37:08 +0200 Subject: [PATCH] Mypy lints only one directory --- action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index c6bf33e..888cc4a 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,10 @@ inputs: description: "Should the action fail if errors are found? [default: true]" required: false default: "true" + mypy_target: + description: "Source directory for mypy linting" + required: false + default: "src" runs: using: "composite" steps: @@ -38,8 +42,7 @@ runs: if: steps.changes.outputs.addedOrModifiedPython == 'true' uses: tsuyoshicho/action-mypy@v3.11.0 with: - target: "" - mypy_flags: ${{ steps.changes.outputs.addedOrModifiedPython_files }} + target: ${{ inputs.mypy_target }} reporter: ${{ steps.reporter-check.outputs.reporter }} - name: pylint