Skip to content

Commit 13250ff

Browse files
Add optional base_directory to run mypy
1 parent 7e08867 commit 13250ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/reusable_python_checks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
required: false
2424
default: ''
2525
type: string
26+
base_directory:
27+
description: "The base directory to go before runing mypy"
28+
required: false
29+
default: ''
30+
type: string
2631
setup_directory:
2732
description: "The directory containing the setup.cfg (if any)"
2833
required: false
@@ -96,4 +101,8 @@ jobs:
96101
fi
97102
98103
- name: Mypy type checking
99-
run: mypy ${{ inputs.src_directory }}
104+
run: |
105+
if [ -n "${{ inputs.base_directory }}" ]; then
106+
cd ${{ inputs.base_directory }}
107+
fi
108+
mypy ${{ inputs.src_directory }}

0 commit comments

Comments
 (0)