We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 791ece7 commit 3e09413Copy full SHA for 3e09413
.github/workflows/pylint.yml
@@ -1,5 +1,12 @@
1
on:
2
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: ''
10
11
jobs:
12
pylint:
@@ -32,4 +39,8 @@ jobs:
32
39
33
40
- name: Analysing the code with pylint
34
41
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