Skip to content

chore: pin pre-commit hooks to commit shas - #4

Open
maxg0811 wants to merge 1 commit into
mainfrom
chore/pin-pre-commit-hooks
Open

maxg0811 wants to merge 1 commit into
mainfrom
chore/pin-pre-commit-hooks

Conversation

@maxg0811

Copy link
Copy Markdown

Merge after #3.

What

  • Pin black, flake8 and isort to the commit SHA of their current tag, with the version as a # frozen: comment. The versions do not change.
  • Pin the toml hook dependency of isort to toml==0.10.2.

Why

Supply chain rule Pin every dependency. The format is in Pin formats. A tag can move to other content, a commit SHA cannot.

Testing

pre-commit validate-config .pre-commit-config.yaml passes. The SHAs come from git ls-remote of each tag (the peeled commit for the annotated flake8 tag).

🤖 Generated with Claude Code

Pin black, flake8 and isort to the commit of their current tag, with the
version as a frozen comment. Pin the toml hook dependency to an exact version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ox-security

ox-security Bot commented Nov 10, 2026

Copy link
Copy Markdown

OX Security Logo

OX Security reviewed this pull request — nothing to fix.

✔ No issues found

Branch chore/pin-pre-commit-hooks → main

View scan in OX Security →

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.

1 participant