Skip to content

[BUG] pre-commit on Windows modifying main branch files #1143

@ana-sher

Description

@ana-sher

Is this issue already tracked somewhere, or is this a new report?

  • I've reviewed existing issues and couldn't find a duplicate for this problem.

Current Behavior

When pre-commit run -a on a main branch on a Windows platform the yml files are getting modified.
On Linux fies are staying unchanged.

Similar to: google/yamlfmt#263

Changed files:

  • .pre-commit-config.yaml
  • mkdocs.yml
  • publish.yml
  • LICENSE.txt

pre-commit version: 4.4.0
latest main commit was run at: 589e79e

Expected Behavior

Files from main remain unchanged on Windows.

Steps To Reproduce

Fetch main on Windows.
Setup conda environment.
Install pre-commit
Run pre-commit run -a

Environment

- OS: Windows 11 Home, OS build 26200.6899
- Python: 3.14.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions