-
-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
git clone https://github.com/python/cpython --depth 1000 # depth is optionalWorks with prek==0.2.25, panics with prek==0.2.27.
❯ prek run --all-files
Run Ruff (lint) on Apple/................................................
⠙ Running hooks...
thread 'main' (1674430) panicked at crates/prek/src/run.rs:168:13:
Filename `Apple/test..._main__.py` (26 bytes) is too long to fit in command line
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace❯ RUST_BACKTRACE=full prek run --all-files ruff-format -vvv
2026-01-12T12:20:26.808843Z DEBUG prek: 0.2.27
2026-01-12T12:20:26.808957Z DEBUG Args: ["prek", "run", "--all-files", "ruff-format", "-vvv"]
2026-01-12T12:20:26.820706Z TRACE get_root: close time.busy=10.8ms time.idle=2.96µs
2026-01-12T12:20:26.821042Z DEBUG Git root: /private/tmp/cpython
2026-01-12T12:20:26.821095Z DEBUG Found workspace root at `/private/tmp/cpython`
2026-01-12T12:20:26.821511Z TRACE Include selectors: `ruff-format`
2026-01-12T12:20:26.821540Z TRACE Skip selectors: ``
2026-01-12T12:20:26.823860Z DEBUG discover{root="/private/tmp/cpython" config=None refresh=false}: Loaded workspace from cache
2026-01-12T12:20:26.824119Z DEBUG discover{root="/private/tmp/cpython" config=None refresh=false}: Loading project configuration path=.pre-commit-config.yaml
2026-01-12T12:20:26.830410Z TRACE discover{root="/private/tmp/cpython" config=None refresh=false}:read_config{path="/private/tmp/cpython/.pre-commit-config.yaml"}: close time.busy=5.64ms time.idle=917ns
2026-01-12T12:20:26.830483Z TRACE discover{root="/private/tmp/cpython" config=None refresh=false}: close time.busy=8.86ms time.idle=1.29µs
2026-01-12T12:20:26.831729Z TRACE Checking lock resource="store" path=/Users/hugo/.cache/prek/.lock
2026-01-12T12:20:26.831752Z DEBUG Acquired lock resource="store"
2026-01-12T12:20:26.838963Z DEBUG Hooks going to run: ["ruff-format", "ruff-format", "ruff-format", "ruff-format"]
2026-01-12T12:20:26.840833Z TRACE Executing `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv/bin/python -I -c import sys, json
info = {
"version": ".".join(map(str, sys.version_info[:3])),
"base_exec_prefix": sys.base_exec_prefix,
}
print(json.dumps(info))
[...]`
2026-01-12T12:20:26.891214Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:20:26.891254Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:20:26.891270Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:20:26.891284Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:20:26.891304Z TRACE Released lock path=/Users/hugo/.cache/prek/.lock
2026-01-12T12:20:26.893069Z TRACE collect_files:ls_files{cwd="/private/tmp/cpython" path="/private/tmp/cpython"}: Executing `cd /private/tmp/cpython && /opt/homebrew/bin/git ls-files -z -- /private/tmp/cpython`
2026-01-12T12:20:26.900113Z TRACE collect_files:ls_files{cwd="/private/tmp/cpython" path="/private/tmp/cpython"}: close time.busy=2.66ms time.idle=6.10ms
2026-01-12T12:20:26.900159Z DEBUG collect_files: All files in the workspace: 5519
2026-01-12T12:20:26.900538Z TRACE collect_files: close time.busy=3.10ms time.idle=6.09ms
2026-01-12T12:20:26.900772Z TRACE for_project{project=.}: close time.busy=174µs time.idle=626ns
2026-01-12T12:20:26.900797Z TRACE Files for project `.` after filtered: 5519
2026-01-12T12:20:26.901364Z TRACE get_diff{path="/private/tmp/cpython"}: Executing `/opt/homebrew/bin/git diff -- /private/tmp/cpython`
2026-01-12T12:20:26.911126Z TRACE get_diff{path="/private/tmp/cpython"}: close time.busy=428µs time.idle=9.33ms
2026-01-12T12:20:26.911172Z DEBUG Running priority group with priority 8 with concurrency 8: ["ruff-format"]
2026-01-12T12:20:26.914949Z TRACE for_hook{hook="ruff-format"}: close time.busy=3.74ms time.idle=875ns
2026-01-12T12:20:26.914980Z TRACE Files for hook `ruff-format` after filtered: 2
2026-01-12T12:20:26.916093Z TRACE run{hook_id=ruff-format language=python}: Resolved command: /Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv/bin/ruff
2026-01-12T12:20:26.916834Z TRACE run{hook_id=ruff-format language=python}: Running ruff-format total_files=2 concurrency=1
thread 'main' (1673727) panicked at crates/prek/src/run.rs:168:13:
Filename `Apple/test..._main__.py` (26 bytes) is too long to fit in command line
stack backtrace:
0: 0x1026f9724 - __mh_execute_header
1: 0x1024934a4 - __mh_execute_header
2: 0x1026f8ffc - __mh_execute_header
3: 0x1026f95e4 - __mh_execute_header
4: 0x1026f8ca4 - __mh_execute_header
5: 0x1027181c8 - __mh_execute_header
6: 0x102718138 - __mh_execute_header
7: 0x10271812c - __mh_execute_header
8: 0x1027d4eac - __mh_execute_header
9: 0x1023dbc38 - __mh_execute_header
10: 0x1022eab54 - __mh_execute_header
11: 0x10226c840 - __mh_execute_header
12: 0x102268210 - __mh_execute_header
13: 0x1022930fc - __mh_execute_header
14: 0x10229eb94 - __mh_execute_header
15: 0x1021d0684 - __mh_execute_header
16: 0x1023fa098 - __mh_execute_header
2026-01-12T12:20:26.919811Z TRACE run{hook_id=ruff-format language=python}: close time.busy=4.81ms time.idle=2.54µsPlatform
Darwin 24.6.0 arm64
Version
prek 0.2.27
.pre-commit-config.yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
name: Run Ruff (lint) on Apple/
args: [--exit-non-zero-on-fix, --config=Apple/.ruff.toml]
files: ^Apple/
- id: ruff-check
name: Run Ruff (lint) on Doc/
args: [--exit-non-zero-on-fix]
files: ^Doc/
- id: ruff-check
name: Run Ruff (lint) on Lib/test/
args: [--exit-non-zero-on-fix]
files: ^Lib/test/
- id: ruff-check
name: Run Ruff (lint) on Tools/build/
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
files: ^Tools/build/
- id: ruff-check
name: Run Ruff (lint) on Tools/i18n/
args: [--exit-non-zero-on-fix, --config=Tools/i18n/.ruff.toml]
files: ^Tools/i18n/
- id: ruff-check
name: Run Ruff (lint) on Argument Clinic
args: [--exit-non-zero-on-fix, --config=Tools/clinic/.ruff.toml]
files: ^Tools/clinic/|Lib/test/test_clinic.py
- id: ruff-check
name: Run Ruff (lint) on Tools/peg_generator/
args: [--exit-non-zero-on-fix, --config=Tools/peg_generator/.ruff.toml]
files: ^Tools/peg_generator/
- id: ruff-check
name: Run Ruff (lint) on Tools/wasm/
args: [--exit-non-zero-on-fix, --config=Tools/wasm/.ruff.toml]
files: ^Tools/wasm/
- id: ruff-format
name: Run Ruff (format) on Apple/
args: [--exit-non-zero-on-fix, --config=Apple/.ruff.toml]
files: ^Apple
- id: ruff-format
name: Run Ruff (format) on Doc/
args: [--exit-non-zero-on-fix]
files: ^Doc/
- id: ruff-format
name: Run Ruff (format) on Tools/build/check_warnings.py
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
files: ^Tools/build/check_warnings.py
- id: ruff-format
name: Run Ruff (format) on Tools/wasm/
args: [--exit-non-zero-on-fix, --config=Tools/wasm/.ruff.toml]
files: ^Tools/wasm/
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
hooks:
- id: black
name: Run Black on Tools/jit/
files: ^Tools/jit/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
exclude: ^Lib/test/test_tomllib/
- id: check-yaml
- id: end-of-file-fixer
types_or: [python, yaml]
exclude: Lib/test/tokenizedata/coding20731.py
- id: end-of-file-fixer
files: '^\.github/CODEOWNERS$'
- id: trailing-whitespace
types_or: [c, inc, python, rst, yaml]
- id: trailing-whitespace
files: '^\.github/CODEOWNERS|\.(gram)$'
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
hooks:
- id: actionlint
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.19.0
hooks:
- id: zizmor
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.2
hooks:
- id: sphinx-lint
args: [--enable=default-role]
files: ^Doc/|^Misc/NEWS.d/
- repo: local
hooks:
- id: blurb-no-space-c-api
name: Check C API news entries
language: fail
entry: Space found in path, move to Misc/NEWS.d/next/C_API/
files: Misc/NEWS.d/next/C API/20.*.rst
- repo: local
hooks:
- id: blurb-no-space-core-and-builtins
name: Check Core and Builtins news entries
language: fail
entry: Space found in path, move to Misc/NEWS.d/next/Core_and_Builtins/
files: Misc/NEWS.d/next/Core and Builtins/20.*.rst
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
Log file
2026-01-12T12:23:40.409166Z DEBUG prek: 0.2.27
2026-01-12T12:23:40.412300Z DEBUG Args: ["prek", "run", "--all-files", "ruff-format", "-vvv"]
2026-01-12T12:23:40.428107Z TRACE get_root: close time.busy=15.5ms time.idle=142µs
2026-01-12T12:23:40.428161Z DEBUG Git root: /private/tmp/cpython
2026-01-12T12:23:40.428260Z DEBUG Found workspace root at `/private/tmp/cpython`
2026-01-12T12:23:40.428380Z TRACE Include selectors: `ruff-format`
2026-01-12T12:23:40.428421Z TRACE Skip selectors: ``
2026-01-12T12:23:40.428900Z DEBUG discover{root="/private/tmp/cpython" config=None refresh=false}: Loaded workspace from cache
2026-01-12T12:23:40.428948Z DEBUG discover{root="/private/tmp/cpython" config=None refresh=false}: Loading project configuration path=.pre-commit-config.yaml
2026-01-12T12:23:40.431005Z TRACE discover{root="/private/tmp/cpython" config=None refresh=false}:read_config{path="/private/tmp/cpython/.pre-commit-config.yaml"}: close time.busy=2.00ms time.idle=21.3µs
2026-01-12T12:23:40.431067Z TRACE discover{root="/private/tmp/cpython" config=None refresh=false}: close time.busy=2.53ms time.idle=15.4µs
2026-01-12T12:23:40.431348Z TRACE Checking lock resource="store" path=/Users/hugo/.cache/prek/.lock
2026-01-12T12:23:40.431386Z DEBUG Acquired lock resource="store"
2026-01-12T12:23:40.438596Z DEBUG Hooks going to run: ["ruff-format", "ruff-format", "ruff-format", "ruff-format"]
2026-01-12T12:23:40.439883Z TRACE Executing `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv/bin/python -I -c import sys, json
info = {
"version": ".".join(map(str, sys.version_info[:3])),
"base_exec_prefix": sys.base_exec_prefix,
}
print(json.dumps(info))
[...]`
2026-01-12T12:23:40.503474Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:23:40.503501Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:23:40.503518Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:23:40.503532Z DEBUG Found installed environment for hook `ruff-format` at `/Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv`
2026-01-12T12:23:40.503557Z TRACE Released lock path=/Users/hugo/.cache/prek/.lock
2026-01-12T12:23:40.503619Z TRACE collect_files:ls_files{cwd="/private/tmp/cpython" path="/private/tmp/cpython"}: Executing `cd /private/tmp/cpython && /opt/homebrew/bin/git ls-files -z -- /private/tmp/cpython`
2026-01-12T12:23:40.510937Z TRACE collect_files:ls_files{cwd="/private/tmp/cpython" path="/private/tmp/cpython"}: close time.busy=884µs time.idle=6.46ms
2026-01-12T12:23:40.510973Z DEBUG collect_files: All files in the workspace: 5519
2026-01-12T12:23:40.511345Z TRACE collect_files: close time.busy=1.32ms time.idle=6.44ms
2026-01-12T12:23:40.511578Z TRACE for_project{project=.}: close time.busy=174µs time.idle=14.0µs
2026-01-12T12:23:40.511600Z TRACE Files for project `.` after filtered: 5519
2026-01-12T12:23:40.511628Z TRACE get_diff{path="/private/tmp/cpython"}: Executing `/opt/homebrew/bin/git diff -- /private/tmp/cpython`
2026-01-12T12:23:40.521141Z TRACE get_diff{path="/private/tmp/cpython"}: close time.busy=424µs time.idle=9.10ms
2026-01-12T12:23:40.521170Z DEBUG Running priority group with priority 8 with concurrency 8: ["ruff-format"]
2026-01-12T12:23:40.524600Z TRACE for_hook{hook="ruff-format"}: close time.busy=3.39ms time.idle=18.0µs
2026-01-12T12:23:40.524624Z TRACE Files for hook `ruff-format` after filtered: 2
2026-01-12T12:23:40.524728Z TRACE run{hook_id=ruff-format language=python}: Resolved command: /Users/hugo/.cache/prek/hooks/python-U9oFBRCvO1rVrbLWKHmv/bin/ruff
2026-01-12T12:23:40.525501Z TRACE run{hook_id=ruff-format language=python}: Running ruff-format total_files=2 concurrency=1
2026-01-12T12:23:40.526187Z TRACE run{hook_id=ruff-format language=python}: close time.busy=1.54ms time.idle=15.0µs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working