Skip to content

Use py_binary for script execution#199

Open
furtib wants to merge 3 commits intoEricsson:mainfrom
furtib:py-binary
Open

Use py_binary for script execution#199
furtib wants to merge 3 commits intoEricsson:mainfrom
furtib:py-binary

Conversation

@furtib
Copy link
Contributor

@furtib furtib commented Feb 27, 2026

Why:
We should rely on Bazel to run Python scripts and not hack them together ourselves.

What:

  • Created a py_binary target for codechecker_script.py
  • Created a py_binary target for per_file_script.py
  • Replaced expand_template with environment variables in codechecker rule
  • Replaced expand_template with arguments in per_file rule (use_default_shell_env = True, does not allow us to define env variables)

Addresses:
none

@furtib furtib requested review from Szelethus and nettle February 27, 2026 12:28
@furtib furtib self-assigned this Feb 27, 2026
@furtib furtib added the enhancement New feature or request label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant