Skip to content

auto-update failed with git checkout exit code 255 #614

@sanzoghenzo

Description

@sanzoghenzo

Hi! thanks for this tool, it is the missing piece of my "post-modern python" toolset 😉

I'm trying it out, and i incurred in this error when checking for hooks updates.

> prek auto-update   
[https://github.com/pre-commit/pre-commit-hooks] update failed: command `git checkout` exited with an error:
                                                                                                                                                                                                                                      [status]                                                                                                                                                                                                                              
exit code: 255                                                                                                                                                                                                                        

[https://github.com/executablebooks/mdformat] update failed: command `git checkout` exited with an error:

[status]
exit code: 255

[https://github.com/astral-sh/ruff-pre-commit] update failed: command `git checkout` exited with an error:

[status]
exit code: 255

[https://github.com/jendrikseipp/vulture] update failed: command `git checkout` exited with an error:

[status]
exit code: 255

[https://github.com/jsh9/pydoclint] update failed: command `git checkout` exited with an error:

[status]
exit code: 255

I'm running this on windows 11, prek 0.1.5 installed through pypi (uv tool install prek).

using prek -v doesn't show any more messages.

For context, this is my .pre-commit-config.yaml

default_language_version:
  python: python3

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: check-toml
      - id: check-yaml
      - id: end-of-file-fixer
      - id: trailing-whitespace
      - id: check-added-large-files

  - repo: https://github.com/executablebooks/mdformat
    rev: 0.7.22
    hooks:
      - id: mdformat
        exclude: CHANGELOG.md
        additional_dependencies:
          - mdformat-mkdocs[recommended]
          - mdformat-myst

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.11.6
    hooks:
      - id: ruff
        args: [--fix, --exit-non-zero-on-fix]
      - id: ruff-format

  - repo: https://github.com/jendrikseipp/vulture
    rev: v2.14
    hooks:
      - id: vulture

  - repo: https://github.com/jsh9/pydoclint
    rev: 0.6.6
    hooks:
      - id: pydoclint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions