Skip to content

Commit 66f0aac

Browse files
authored
fix: resolve pylint config errors breaking super-linter (#408)
## What Removed the deprecated `suggestion-mode` option from the pylint config and added `too-many-nested-blocks` to the disable list. ## Why The `suggestion-mode` option was removed in newer versions of pylint, causing an `E0015: Unrecognized option` error that fails the super-linter CI job. The `too-many-nested-blocks` violation in `merge_contributors` is pre-existing and consistent with the other `too-many-*` rules already disabled. ## Notes - The nested blocks issue in `contributor_stats.py:112` would benefit from a refactor (dict-based merge instead of nested loops) in a follow-up PR - These errors were hidden until super-linter upgraded its bundled pylint version - Saw these errors [here](https://github.com/github-community-projects/contributors/actions/runs/22372943481/job/64756293990?pr=394#step:5:488) - `suggestion-mode` was [removed in 4.0 of pylin](https://pylint.readthedocs.io/en/latest/whatsnew/4/4.0/index.html) Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent cf2d41d commit 66f0aac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/linters/.python-lint

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ recursive=no
103103
# source root.
104104
source-roots=
105105

106-
# When enabled, pylint would attempt to guess common misconfiguration and emit
107-
# user-friendly hints instead of false-positive error messages.
108-
suggestion-mode=yes
109-
110106
# Allow loading of arbitrary C extensions. Extensions are imported into the
111107
# active Python interpreter and may run arbitrary code.
112108
unsafe-load-any-extension=no
@@ -437,6 +433,7 @@ disable=bad-inline-option,
437433
too-many-arguments,
438434
too-many-branches,
439435
too-many-locals,
436+
too-many-nested-blocks,
440437
too-many-positional-arguments,
441438
too-many-statements,
442439
useless-suppression,

0 commit comments

Comments
 (0)