Skip to content

Commit 3e09413

Browse files
authored
refactor(pylint): add path input (#58)
1 parent 791ece7 commit 3e09413

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: .github/workflows/pylint.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
on:
22
workflow_call:
3+
inputs:
4+
path:
5+
description: >-
6+
This can be a module, package, directory or a file.
7+
required: false
8+
type: string
9+
default: ''
310

411
jobs:
512
pylint:
@@ -32,4 +39,8 @@ jobs:
3239
3340
- name: Analysing the code with pylint
3441
run: |
35-
pylint $(git ls-files '*.py')
42+
if [ -z "${{ inputs.path }}" ]; then
43+
pylint $(git ls-files '*.py')
44+
else
45+
pylint ${{ inputs.path }}
46+
fi

0 commit comments

Comments
 (0)