{"id":33907205,"url":"https://github.com/bitflight-devops/pre-commit-ensure-uv","last_synced_at":"2026-03-09T20:02:05.329Z","repository":{"id":328183890,"uuid":"1112371490","full_name":"bitflight-devops/pre-commit-ensure-uv","owner":"bitflight-devops","description":"Install Astral's uv if its not installed as a pre-commit/prek hook","archived":false,"fork":false,"pushed_at":"2025-12-11T19:59:15.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-12T18:11:17.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitflight-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-08T14:32:37.000Z","updated_at":"2025-12-11T19:58:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bitflight-devops/pre-commit-ensure-uv","commit_stats":null,"previous_names":["bitflight-devops/pre-commit-ensure-uv"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/bitflight-devops/pre-commit-ensure-uv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fpre-commit-ensure-uv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fpre-commit-ensure-uv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fpre-commit-ensure-uv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fpre-commit-ensure-uv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitflight-devops","download_url":"https://codeload.github.com/bitflight-devops/pre-commit-ensure-uv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitflight-devops%2Fpre-commit-ensure-uv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30309999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-12T02:32:17.015Z","updated_at":"2026-03-09T20:02:05.319Z","avatar_url":"https://github.com/bitflight-devops.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-ensure-uv\n\nA [pre-commit](https://pre-commit.com/) hook that ensures [uv](https://github.com/astral-sh/uv) is installed and available.\n\nWorks with both [pre-commit](https://pre-commit.com/) and [prek](https://github.com/j178/prek).\n\n## Usage\n\nAdd this to your `.pre-commit-config.yaml`:\n\n```yaml\nrepos:\n  - repo: https://github.com/bitflight-devops/pre-commit-ensure-uv\n    rev: v0.1.0\n    hooks:\n      - id: ensure-uv\n```\n\nPlace it **first** in your repos list so uv is available for subsequent hooks.\n\n## Behavior\n\n| Condition                 | Action                                      |\n| ------------------------- | ------------------------------------------- |\n| uv in PATH                | Pass silently                               |\n| uv installed, not in PATH | Re-run hooks with corrected PATH            |\n| uv not installed          | Install uv, then re-run with corrected PATH |\n\nWhen uv needs to be added to PATH, the hook automatically re-runs all hooks with the corrected environment. No shell restart required.\n\n## Platform Support\n\n- Linux\n- macOS\n- Windows\n\n## Installation Method\n\nUses the official uv installer:\n\n- **Unix**: `curl -LsSf https://astral.sh/uv/install.sh | sh`\n- **Windows**: `powershell irm https://astral.sh/uv/install.ps1 | iex`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitflight-devops%2Fpre-commit-ensure-uv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitflight-devops%2Fpre-commit-ensure-uv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitflight-devops%2Fpre-commit-ensure-uv/lists"}