-
-
Notifications
You must be signed in to change notification settings - Fork 869
pre-commit autoupdate (Windows), reports: .pre-commit-hooks.yaml is not a file
#2865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am getting the same error when running 'pre-commit autoupdate'. i am able to do 'pre-commit run ...' I worked around the issue by running the autoupdate from an admin command prompt or PS. was working fine yesterday with 3.2.2 but not with 3.3.0 this morning. windows 11 python 3.10.11 |
Looks like I was mistaken on my workaround. It was pre-commit clean, followed by pre-commit run. elevated didn't matter. |
if it works outside if tox then it's probably an issue with your tox configuration perhaps try playing with passenv ? |
Sorry, corrected my original post. That was a mistake from when I was first writing the issue. (I thought it worked outside of tox, but that was because I hadn't updated my version outside of tox. I confirm it now doesn't work neither in tox, nor outside) |
oddly enough I can sort of reproduce this -- but not with the test suite. it appears to be a bug in git for windows so I'm reporting a bug there -- https://marc.info/?l=git&m=168303544023036&w=2 for now I'll add a small workaround in the source and remove it in ~6 months or so after git releases a fix for their bug |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pre-commit](https://github.com/pre-commit/pre-commit) | dev-dependencies | minor | `3.2.2` -> `3.3.1` | --- ### Release Notes <details> <summary>pre-commit/pre-commit</summary> ### [`v3.3.1`](https://github.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#​331---2023-05-02) [Compare Source](pre-commit/pre-commit@v3.3.0...v3.3.1) \================== ##### Fixes - Work around `git` partial clone bug for `autoupdate` on windows. - [#​2866](pre-commit/pre-commit#2866) PR by [@​asottile](https://github.com/asottile). - [#​2865](pre-commit/pre-commit#2865) issue by [@​adehad](https://github.com/adehad). ### [`v3.3.0`](https://github.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#​330---2023-05-01) [Compare Source](pre-commit/pre-commit@v3.2.2...v3.3.0) \================== ##### Features - Upgrade ruby-build. - [#​2846](pre-commit/pre-commit#2846) PR by [@​jalessio](https://github.com/jalessio). - Use blobless clone for faster autoupdate. - [#​2859](pre-commit/pre-commit#2859) PR by [@​asottile](https://github.com/asottile). - Add `-j` / `--jobs` argument to `autoupdate` for parallel execution. - [#​2863](pre-commit/pre-commit#2863) PR by [@​asottile](https://github.com/asottile). - issue by [@​gaborbernat](https://github.com/gaborbernat). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS42MS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNjEuMCJ9--> Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: JayPiKay <[email protected]> Reviewed-on: https://git.goatpr0n.de/public/doxy/pulls/8 Co-authored-by: renovate <[email protected]> Co-committed-by: renovate <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
search you tried in the issue tracker
is:issue "not a file"
describe your issue
Summary
The last version I used successfully was
2.17.0
andpre-commit 3.2.2, installed using Python 3.11.3
Additional debugging tried
I tried manually specifying the
pre-commit-config.yaml
file, but I realise now that the error is related to thepre-commit-
hooks.yaml
file.As this works outside of the tox env I suspect it is a bug.I have the following tox file:
and this is the full output.
(For completeness I should mentioned that
MY_PROJECT
is actually a longer path)pre-commit --version
3.3.0
.pre-commit-config.yaml
~/.cache/pre-commit/pre-commit.log (if present)
No response
The text was updated successfully, but these errors were encountered: