Skip to content

Commit 4078351

Browse files
authored
Mypy lints only one directory
1 parent bf06777 commit 4078351

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: "Should the action fail if errors are found? [default: true]"
66
required: false
77
default: "true"
8+
mypy_target:
9+
description: "Source directory for mypy linting"
10+
required: false
11+
default: "src"
812
runs:
913
using: "composite"
1014
steps:
@@ -38,8 +42,7 @@ runs:
3842
if: steps.changes.outputs.addedOrModifiedPython == 'true'
3943
uses: tsuyoshicho/[email protected]
4044
with:
41-
target: ""
42-
mypy_flags: ${{ steps.changes.outputs.addedOrModifiedPython_files }}
45+
target: ${{ inputs.mypy_target }}
4346
reporter: ${{ steps.reporter-check.outputs.reporter }}
4447

4548
- name: pylint

0 commit comments

Comments
 (0)