File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 31
31
run : >
32
32
python -m pip install --requirement
33
33
https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt
34
- - name : ' *.py files found?'
35
- # XXX We couldn't use hashFiles() method as the later seems to be broken:
36
- # https://github.com/actions/runner/issues/449
37
- # https://github.com/actions/cache/issues/753
38
- # https://github.com/actions/toolkit/pull/1015
39
- uses :
tj-actions/[email protected]
40
- id : glob
41
- with :
42
- files : |
43
- **.py
44
34
- name : Run Pylint
45
- if : steps.glob.outputs.paths
46
35
# Docs:
47
36
# http://pylint.pycqa.org/en/latest/technical_reference/features.html
48
37
# --output-format=colorized
@@ -57,18 +46,16 @@ jobs:
57
46
# --logging-format-style=new
58
47
# The type of string formatting that logging methods do. `old` means
59
48
# using % formatting, `new` is for `{}` formatting.
60
- # $(git ls-files '*.py')
61
- # Use git to list all Python files as Pylint doesn't support globs
62
- # and non-module folders.
63
- # Source: https://stackoverflow.com/a/63044665
49
+ # --recursive=y
50
+ # Let Pylint discovered all Python files and modules.
64
51
run : >
65
52
pylint
66
53
--output-format=colorized
67
54
--jobs=0
68
55
--max-line-length=88
69
56
--fail-under=8
70
57
--logging-format-style=new
71
- $(git ls-files '*.py')
58
+ --recursive=y .
72
59
73
60
lint-yaml :
74
61
# Skip linting on prepare-release branch as it points to a tagged URL that does not exist yet.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ This version is not released yet and is under active development.
11
11
- Update ` 🔄 duplicate ` label to ` 🧑🤝🧑 duplicate ` .
12
12
- Update ` 🆕 feature request ` label to ` 🎁 feature request ` .
13
13
- Update ` ❓ question ` label to ` ❔ question ` .
14
+ - Let Pylint discover Python files and modules to lint.
14
15
15
16
## [ 0.9.1 (2022-03-09)] ( https://github.com/kdeldycke/workflows/compare/v0.9.0...v0.9.1 )
16
17
You can’t perform that action at this time.
0 commit comments