{"id":28407632,"url":"https://github.com/level12/pre-commit-hooks","last_synced_at":"2026-07-20T19:31:59.705Z","repository":{"id":240149064,"uuid":"801805899","full_name":"level12/pre-commit-hooks","owner":"level12","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T21:44:09.000Z","size":295,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-09T23:38:18.424Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/level12.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2024-05-17T00:30:10.000Z","updated_at":"2026-05-09T21:44:13.000Z","dependencies_parsed_at":"2024-05-17T01:40:26.084Z","dependency_job_id":"90c148c7-1ff3-4898-8cb7-ba6fce928ac4","html_url":"https://github.com/level12/pre-commit-hooks","commit_stats":null,"previous_names":["level12/pre-commit-hooks"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/level12/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/level12","download_url":"https://codeload.github.com/level12/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35698118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: 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-06-02T01:30:35.196Z","updated_at":"2026-07-20T19:31:59.700Z","avatar_url":"https://github.com/level12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\n[![nox](https://github.com/level12/pre-commit-hooks/actions/workflows/nox.yaml/badge.svg)](https://github.com/level12/pre-commit-hooks/actions/workflows/nox.yaml)\n\n\n## Usage\n\nRuff needs to be specified as a dependency in a Python package's `uv.lock` or\n`requirements/dev.txt`.\n\n### With pre-commit\n\nIf you're using pre-commit, in `.pre-commit-config.yaml`:\n\n```yaml\n\n---\nrepos:\n  - repo: https://github.com/astral-sh/ruff-pre-commit\n    rev: v0.9.7\n    hooks:\n      - id: ruff\n      - id: ruff-format\n        args: [ --check ]\n  - repo: https://github.com/level12/pre-commit-hooks\n    rev: v0.20250226.1\n    hooks:\n      - id: check-ruff-versions\n      # OPTIONAL: if you have a non-typical repo where the python packages are not in the root\n      # and/or you have more than one package.  Most projects will not add these args.\n      - args: [--package, foo-pkg, --package, bar-pkg]\n```\n\n### prek\n\nIf you're using prek, in `prek.toml`:\n\n```toml\n[[repos]]\nrepo = 'https://github.com/astral-sh/ruff-pre-commit'\nrev = 'v0.9.7'\nhooks = [\n  { id = 'ruff' },\n  { id = 'ruff-format', args = ['--check'] },\n]\n\n[[repos]]\nrepo = 'https://github.com/level12/pre-commit-hooks'\nrev = 'v0.20250226.1'\nhooks = [\n  { id = 'check-ruff-versions' },\n]\n```\n\n\n## Dev\n\n\n### Copier Template\n\nProject structure and tooling mostly derives from the [Coppy](https://github.com/level12/coppy),\nsee its documentation for context and additional instructions.\n\nThis project can be updated from the upstream repo, see\n[Updating a Project](https://github.com/level12/coppy?tab=readme-ov-file#template-updates).\n\n\n### Project Setup\n\nFrom zero to hero (passing tests that is):\n\n1. Ensure [host dependencies](https://github.com/level12/coppy/wiki/Mise) are installed\n\n2. Start docker service dependencies (if applicable):\n\n   `docker compose up -d`\n\n3. Sync [project](https://docs.astral.sh/uv/concepts/projects/) virtualenv w/ lock file:\n\n   `uv sync`\n\n4. Configure prek:\n\n   `prek install`\n\n5. Run tests:\n\n   `nox`\n\n\n### Versions\n\nVersions are date based.  A `bump` action exists to help manage versions:\n\n```shell\n\n  # Show current version\n  mise bump --show\n\n  # Bump version based on date, tag, and push:\n  mise bump\n\n  # See other options\n  mise bump -- --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel12%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevel12%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel12%2Fpre-commit-hooks/lists"}