Repository navigation
lint: use shared subtree exclusions in shell linters - #36749
Closed
aaron-leeb wants to merge 1 commit into
Closed
aaron-leeb wants to merge 1 commit into
aaron-leeb wants to merge 1 commit into
Conversation
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. |
aaron-leeb
force-pushed
the
ci-subtree-lint-scope
branch
from
November 4, 2026 04:22
4f42447 to
c198dc8
Compare
Contributor
Author
Member
|
thx, but I think it is unclear if this is the right fix. My recommendation would be #34928 (comment), but let's wait a week or two for further input before implementing this. Closing this for now in the meantime. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR partially addresses the subtree lint scope inconsistencies discussed in #34928.
The Python shell linters,
lint-shell.pyandlint-shell-locale.py, now useSHARED_EXCLUDED_SUBTREESinstead of maintaining hardcoded subtree exclusions.This also removes the overly broad regex in
lint-shell.pywhile preserving the current set of excluded shell scripts.The explicit per-linter subtree opt-ins discussed in #34928 are not implemented in this PR. This change focuses on consolidating the existing exclusions without modifying the current lint scope.
Compared the original exclusion logic against the shared subtree list for all 61 tracked
.shfiles:lint-shell.pylint-shell-locale.pyBoth linters preserve their existing
.shfile exclusion scope.The following checks also passed:
./ci/lint.py./ci/lint.py --lint=all_python_linters./ci/lint.py --lint=py_lintRelated to #34928.