Skip to content

security: run pre-commit autoupdate --freeze; Pin to sha all hooks - #13855

Open
jbampton wants to merge 1 commit into
apache:mainfrom
jbampton:pre-commit-autoupdate
Open

security: run pre-commit autoupdate --freeze; Pin to sha all hooks#13855
jbampton wants to merge 1 commit into
apache:mainfrom
jbampton:pre-commit-autoupdate

Conversation

@jbampton

Copy link
Copy Markdown
Member

Format Python code to fix the new Flake8 linters errors

Description

This PR updates updates the hooks and pins them to SHA for security. Ran pre-commit and oxipng also optimized some images

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Tested on my local machine with pre-commit run --all-files

thlorenz/doctoc@59dcae9

oxipng/oxipng@340cd98

gitleaks/gitleaks@83d9cd6

Lucas-C/pre-commit-hooks@ad1b27d

pre-commit/pre-commit-hooks@3e8a870

codespell-project/codespell@57b2140

PyCQA/flake8@c48217e

igorshubovych/markdownlint-cli@5b5dddc

adrienverge/yamllint@cba56bc

How did you try to break this feature and the system with this change?

Format Python code to fix the new Flake8 linters errors
Copilot AI lite review requested due to automatic review settings August 12, 2026 06:49
@boring-cyborg boring-cyborg Bot added component:XenServer Python Warning... Python code Ahead! labels Aug 12, 2026

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 pull request updates the repository’s pre-commit configuration to pin hook revisions to immutable SHAs (for supply-chain/security hardening) and applies formatting/style fixes that address selected Flake8 checks and whitespace issues in existing Python scripts.

Changes:

  • Updated .pre-commit-config.yaml to freeze hook revisions to specific commit SHAs.
  • Cleaned up whitespace/trailing-space issues in XenServer plugin scripts.
  • Adjusted a few Python membership tests to the Flake8-preferred not in form.

Reviewed changes

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

Show a summary per file
File Description
scripts/vm/hypervisor/xenserver/vmopsSnapshot Whitespace cleanup (blank-line/trailing-space normalization) in XenServer snapshot plugin script.
scripts/vm/hypervisor/xenserver/vmops Minor whitespace/style tweaks in XenServer vmops script.
scripts/vm/hypervisor/xenserver/cloudstack_pluginlib.py Updated membership checks to not in in tunnel verification logic.
plugins/hypervisors/ovm/src/main/scripts/vm/hypervisor/ovm/OvmOCFS2Module.py Updated membership checks to not in in OCFS2 cluster status parsing.
.pre-commit-config.yaml Pinned pre-commit hooks to commit SHAs (“frozen”) and updated hook formatting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pre-commit-config.yaml
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.64%. Comparing base (1ceb1d0) to head (a9cefb9).

Additional details and impacted files
@@             Coverage Diff              @@
##              main   #13855       +/-   ##
============================================
+ Coverage     3.41%   19.64%   +16.23%     
- Complexity       0    19790    +19790     
============================================
  Files          487     6368     +5881     
  Lines        41867   574889   +533022     
  Branches      7912    70353    +62441     
============================================
+ Hits          1429   112963   +111534     
- Misses       40238   449655   +409417     
- Partials       200    12271    +12071     
Flag Coverage Δ
uitests 3.41% <ø> (ø)
unittests 20.92% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:XenServer Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants