Skip to content

CBG-5480 make sure pre-commit run --all-files passes#8389

Merged
torcolvin merged 1 commit into
mainfrom
CBG-5480-exclude
Jun 25, 2026
Merged

CBG-5480 make sure pre-commit run --all-files passes#8389
torcolvin merged 1 commit into
mainfrom
CBG-5480-exclude

Conversation

@torcolvin

Copy link
Copy Markdown
Collaborator

CBG-5480 make sure pre-commit run --all-files passes

  • pre-commit identified manifest_helper as python and autoformatted it
  • exclude build/postinst.tmpl and buildpostrm.tmpl which have rpm macro expansion in them

@torcolvin torcolvin requested a review from bbrks June 25, 2026 14:50
Copilot AI review requested due to automatic review settings June 25, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to ensure pre-commit run --all-files succeeds by aligning a repo tool script with the configured Python formatting expectations and by excluding RPM-macro template files from ShellCheck scanning.

Changes:

  • Reformat tools/manifest-helper to satisfy pre-commit’s Python formatting.
  • Update ShellCheck exclusions in .pre-commit-config.yaml to skip build/postinst.tmpl and build/postrm.tmpl.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/manifest-helper Auto-formatting changes; needs a small fix to keep revision comparisons correct under Python 3.
.pre-commit-config.yaml Excludes RPM macro template files from the ShellCheck hook so pre-commit can run cleanly.

Comment thread tools/manifest-helper
Comment on lines +150 to 151
latest_commit = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=path)
return latest_commit.strip()
@torcolvin torcolvin enabled auto-merge (squash) June 25, 2026 14:56
@torcolvin torcolvin merged commit 1005e07 into main Jun 25, 2026
48 of 49 checks passed
@torcolvin torcolvin deleted the CBG-5480-exclude branch June 25, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants