Skip to content

test: Create pylint rule for py_binary/library targets - #330

Draft
furtib wants to merge 1 commit into
Ericsson:mainfrom
furtib:bazel-pylint-target
Draft

test: Create pylint rule for py_binary/library targets#330
furtib wants to merge 1 commit into
Ericsson:mainfrom
furtib:bazel-pylint-target

Conversation

@furtib

@furtib furtib commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Why:
We want to lint our Python files using pylint.
Bazel creates the running environment for these files inside its sandbox; therefore, we should lint these files in it.

What:

  • Created a pylint rule that lints py_binary and py_library targets.
  • Created test libraries for Python files that only had generated targets.

Addresses:
Fixes: #225

Limitations:
Code duplication is only detected in targets of a single pylint_test target.

Notes:
This patch requires all Python tests to be converted into Bazel tests.
So we depend on: #329 #298 #318 and a some where migration has not even started; see: #210

@furtib
furtib requested review from Szelethus and nettle September 8, 2026 12:46
@furtib furtib self-assigned this Sep 8, 2026
@furtib furtib added the test ☑️ Adding or refactoring tests label Sep 8, 2026
@furtib
furtib force-pushed the bazel-pylint-target branch from 45ceee8 to c3c23bd Compare September 8, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test ☑️ Adding or refactoring tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant