test: integrate pylint into bazel - #325
Draft
furtib wants to merge 3 commits into
Draft
Conversation
nettle
reviewed
Aug 31, 2026
Comment on lines
+2
to
+3
| --hash=sha256:52f39653876c7dec3e3afd4c2696920e05c83832b9737afc21928f2d2eb7a753 \ | ||
| --hash=sha256:986fed8bcf79fb82c78b18a53352a0b287a73817d6dbcfba3162da36667c49a0 |
Collaborator
There was a problem hiding this comment.
I'm wondering... do we need these?
| paths = [ | ||
| "src", | ||
| "test", | ||
| "__init__.py", |
| name = "pylint", | ||
| exclude = [ | ||
| "**/__pycache__/**", | ||
| ], |
Collaborator
There was a problem hiding this comment.
Basically by default we should analyze only *.py files everywhere, but maybe exclude some particular files and locations.
Comment on lines
+63
to
+64
| if "external" not in tags: | ||
| pylint_tags.append("external") |
Collaborator
There was a problem hiding this comment.
What is this for may I ask?
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.
Why:
We want to run pylint just as easily as Buildifier.
What:
__init__.pyfiles fromsrc/andtest/foss. (Others are necessary for pytest.)Addresses:
none
Note:
CI will fail due to lint issues in the caching tests see #324.