Skip to content

Commit 7821ce2

Browse files
committed
Let Pylint discover Python files and modules to lint.
Refs: pylint-dev/pylint#352 pylint-dev/pylint#5682 Reverts: 2f5de90 4424ea1
1 parent 004b155 commit 7821ce2

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/lint.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,7 @@ jobs:
3131
run: >
3232
python -m pip install --requirement
3333
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
4434
- name: Run Pylint
45-
if: steps.glob.outputs.paths
4635
# Docs:
4736
# http://pylint.pycqa.org/en/latest/technical_reference/features.html
4837
# --output-format=colorized
@@ -57,18 +46,16 @@ jobs:
5746
# --logging-format-style=new
5847
# The type of string formatting that logging methods do. `old` means
5948
# 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.
6451
run: >
6552
pylint
6653
--output-format=colorized
6754
--jobs=0
6855
--max-line-length=88
6956
--fail-under=8
7057
--logging-format-style=new
71-
$(git ls-files '*.py')
58+
--recursive=y .
7259
7360
lint-yaml:
7461
# Skip linting on prepare-release branch as it points to a tagged URL that does not exist yet.

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This version is not released yet and is under active development.
1111
- Update `🔄 duplicate` label to `🧑‍🤝‍🧑 duplicate`.
1212
- Update `🆕 feature request` label to `🎁 feature request`.
1313
- Update `❓ question` label to `❔ question`.
14+
- Let Pylint discover Python files and modules to lint.
1415

1516
## [0.9.1 (2022-03-09)](https://github.com/kdeldycke/workflows/compare/v0.9.0...v0.9.1)
1617

0 commit comments

Comments
 (0)