Title: pre-commit autoupdate (Windows), reports: `.pre-commit-hooks.yaml is not a file` · Issue #2865 · pre-commit/pre-commit · GitHub
Open Graph Title: pre-commit autoupdate (Windows), reports: `.pre-commit-hooks.yaml is not a file` · Issue #2865 · pre-commit/pre-commit
X Title: pre-commit autoupdate (Windows), reports: `.pre-commit-hooks.yaml is not a file` · Issue #2865 · pre-commit/pre-commit
Description: 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 and pre-commit 3.2.2, installed using Python 3.11.3 Additional debugging tried I tried manually speci...
Open Graph Description: 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 and pre-commit 3.2.2, installed using Python 3.11.3 Additiona...
X Description: 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 and pre-commit 3.2.2, installed using Python 3.11.3...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/2865
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pre-commit autoupdate (Windows), reports: `.pre-commit-hooks.yaml is not a file`","articleBody":"### search you tried in the issue tracker\n\nis:issue \"not a file\"\n\n### describe your issue\n\n#### Summary\r\nThe last version I used successfully was `2.17.0` and `pre-commit 3.2.2, installed using Python 3.11.3`\r\n \r\n#### Additional debugging tried\r\nI tried manually specifying the `pre-commit-config.yaml` file, but I realise now that the error is related to the `pre-commit-`**hooks**`.yaml` file. ~~As this works outside of the tox env I suspect it is a bug.~~\r\n\r\nI have the following tox file:\r\n\r\n```ini\r\n[tox]\r\nminversion = 4.4.4\r\n# We rely on the build agent configuration for setting the right Py version\r\nenvlist =\r\n py\r\nskip_missing_interpreters = True\r\nskipdist = True\r\n\r\n[testenv]\r\nusedevelop = True\r\nextras =\r\n test\r\ncommands=\r\n git clean -xdf src tests\r\n pytest {posargs}\r\nsetenv =\r\n # Has problems with spaces in the path in Windows when using: {toxinidir}/constraints.txt\r\n PIP_CONSTRAINT=constraints.txt\r\n PIP_LOG={envdir}/pip.log\r\n PIP_DISABLE_PIP_VERSION_CHECK=1\r\npassenv =\r\n PIP_*\r\n TWINE_*\r\nallowlist_externals =\r\n git\r\n\r\n[testenv:deps]\r\ndescription = Update dependency lock files\r\ndeps =\r\n pip-tools \u003e= 6.4.0\r\n pre-commit \u003e= 2.13.0\r\ncommands =\r\n # pip-compile --upgrade -o constraints.txt pyproject.toml --extra docs --extra test --extra exe --strip-extras\r\n {envpython} -m pre_commit autoupdate --config=\"{toxinidir}{/}.pre-commit-config.yaml\"\r\n```\r\n\r\nand this is the full output.\r\n(For completeness I should mentioned that `MY_PROJECT` is actually a longer path)\r\n\r\n```shell\r\n\u003e tox run -e deps \r\nROOT: provision\u003e D:\\dev\\MY_PROJECT\\.tox\\.tox\\Scripts\\python.exe -m tox run -e deps\r\n.pkg: _optional_hooks D:\\dev\\MY_PROJECT\u003e python D:\\dev\\MY_PROJECT\\.tox\\.tox\\Lib\\site-packages\\pyproject_api\\_backend.py True hatchling.build\r\n.pkg: get_requires_for_build_editable D:\\dev\\MY_PROJECT\u003e python D:\\dev\\MY_PROJECT\\.tox\\.tox\\Lib\\site-packages\\pyproject_api\\_backend.py True hatchling.build\r\n.pkg: build_editable D:\\dev\\MY_PROJECT\u003e python D:\\dev\\MY_PROJECT\\.tox\\.tox\\Lib\\site-packages\\pyproject_api\\_backend.py True hatchling.build\r\ndeps: install_package D:\\dev\\MY_PROJECT\u003e python -I -m pip install --force-reinstall --no-deps D:\\dev\\MY_PROJECT\\.tox\\.tmp\\package\\8\\MY_PROJECT-1.0.1.dev49+ge471ddf.d20230502-py3-none-any.whl\r\ndeps: commands[0] D:\\dev\\MY_PROJECT\u003e .tox\\deps\\Scripts\\python.exe -m pre_commit autoupdate --config=D:\\dev\\MY_PROJECT\\.pre-commit-config.yaml\r\n[https://github.com/psf/black] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmp55jx9hj6\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/pre-commit/pre-commit-hooks] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmpkqy_t829\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/codespell-project/codespell.git] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmprw3q8l3b\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/charliermarsh/ruff-pre-commit] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmp27qxr3kd\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/adrienverge/yamllint.git] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmpssemasfd\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/pre-commit/mirrors-mypy.git] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmpasg5xk_r\\.pre-commit-hooks.yaml is not a file\r\n[https://github.com/asottile/pyupgrade] \r\n=====\u003e C:\\Users\\ADEHA~1\\AppData\\Local\\Temp\\tmpo5pgj08h\\.pre-commit-hooks.yaml is not a file\r\ndeps: exit 1 (26.53 seconds) D:\\dev\\MY_PROJECT\u003e .tox\\deps\\Scripts\\python.exe -m pre_commit autoupdate --config=D:\\dev\\MY_PROJECT\\.pre-commit-config.yaml pid=40900\r\n```\n\n### pre-commit --version\n\n3.3.0\n\n### .pre-commit-config.yaml\n\n```yaml\n---\r\nrepos:\r\n - repo: https://github.com/psf/black\r\n rev: 23.3.0\r\n hooks:\r\n - id: black\r\n language_version: python3\r\n - repo: https://github.com/pre-commit/pre-commit-hooks\r\n rev: v4.4.0\r\n hooks:\r\n - id: end-of-file-fixer\r\n - id: trailing-whitespace\r\n - id: mixed-line-ending\r\n - id: check-byte-order-marker\r\n - id: check-executables-have-shebangs\r\n - id: check-merge-conflict\r\n - id: check-symlinks\r\n - id: check-vcs-permalinks\r\n - id: debug-statements\r\n - id: check-yaml\r\n files: .*\\.(yaml|yml)$\r\n - repo: https://github.com/codespell-project/codespell\r\n rev: v2.2.4\r\n hooks:\r\n - id: codespell\r\n name: codespell\r\n description: Checks for common misspellings in text files.\r\n entry: codespell\r\n language: python\r\n types: [text]\r\n args: []\r\n require_serial: false\r\n additional_dependencies: []\r\n - repo: https://github.com/charliermarsh/ruff-pre-commit\r\n rev: 'v0.0.264'\r\n hooks:\r\n - id: ruff\r\n args: [--fix]\r\n - repo: https://github.com/adrienverge/yamllint\r\n rev: v1.31.0\r\n hooks:\r\n - id: yamllint\r\n files: \\.(yaml|yml)$\r\n - repo: https://github.com/pre-commit/mirrors-mypy\r\n rev: v1.2.0\r\n hooks:\r\n - id: mypy\r\n additional_dependencies:\r\n - .[docs,test]\r\n - repo: https://github.com/asottile/pyupgrade\r\n rev: v3.3.2\r\n hooks:\r\n - id: pyupgrade\r\n args: [--py38-plus]\n```\n\n\n### ~/.cache/pre-commit/pre-commit.log (if present)\n\n_No response_","author":{"url":"https://github.com/adehad","@type":"Person","name":"adehad"},"datePublished":"2023-05-02T09:13:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2865/pre-commit/issues/2865"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e9e17999-2ae0-0683-8381-fdd8f01742a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D314:31738E:11002F6:18456FA:6A58C020 |
| html-safe-nonce | 8d8c79fba90c33e198b49e60b1569e58875a2079d44ab44a7036d679358a2ed2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzE0OjMxNzM4RToxMTAwMkY2OjE4NDU2RkE6NkE1OEMwMjAiLCJ2aXNpdG9yX2lkIjoiNTc3ODg4ODY1MDczMjgzMTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5768aa19a07c9a02c964bf28753d95eaed5c1b9dfef62e76502434cc2cb6207 |
| hovercard-subject-tag | issue:1692063440 |
| github-keyboard-shortcuts | repository,issues,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/2865/issue_layout |
| twitter:image | https://opengraph.githubassets.com/079dfa26fec2550b0f505fcfb3ad958c6eabcfff438efebdda4bfbf93bace0e9/pre-commit/pre-commit/issues/2865 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/079dfa26fec2550b0f505fcfb3ad958c6eabcfff438efebdda4bfbf93bace0e9/pre-commit/pre-commit/issues/2865 |
| og:image:alt | 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 and pre-commit 3.2.2, installed using Python 3.11.3 Additiona... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adehad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width