Skip to content

Commit

Permalink
Mypy lints only one directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mnschmit authored Sep 22, 2023
1 parent bf06777 commit 4078351
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4078351

Please sign in to comment.