PyPI / pre-commit / 4.7.0
pre-commit 4.7.0
- Source
- https://github.com/pre-commit/pre-commit
- Tag scanned
v4.7.0- Compared with
v4.6.2(0 signals introduced since)- Files
- 162 scanned, 19 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 5 info
- Scan time
- 4.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 3 of 3 warn and critical signals; 3 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 06:24
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
if [ -x "$INSTALL_PYTHON" ]; then exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" elif command -v pre-commit > /dev/null; then exec pre-commit "${ARGS[@]}"likely benign Shell hook template that execs the pre-commit tool from a located interpreter or PATH.Reasoning
This is the standard pre-commit hook launcher template. It execs a Python interpreter path it located itself, or falls back to a pre-commit binary found on PATH via command -v. The dynamic path is an ordinary interpreter-selection pattern, not a dropper or obfuscated payload, and the arguments are passed through as an array.
-
= -
# 5 dots: 15 - 6 - 3 - 1 assert == -
= # noqa: E501dismissed Go module checksum lines (go.sum content) used as test data.Reasoning
The flagged text is a go.sum excerpt embedded as a test fixture. The base64 strings are the h1: module checksums that Go writes in go.sum files. They are expected data, not an encoded payload, and the raw-pass base64 signal is a known false positive for hash strings.
-
// :/+= // := ''' # noqa: E501 hello_world_go = '''\dismissed Go module checksum lines (go.sum content) used as test data.Reasoning
This is the same go.sum fixture block, offset by one line. The base64 blobs are standard Go module hashes inside a Python multiline string in a test file, so the finding is a false positive.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&