{"id":41032872,"url":"https://github.com/worgarside/pre-commit-hooks-dependency-sync","last_synced_at":"2026-02-08T02:01:25.192Z","repository":{"id":198755935,"uuid":"701474947","full_name":"worgarside/pre-commit-hooks-dependency-sync","owner":"worgarside","description":"Pre-commit hook to sync your additional dependencies with your project's environment","archived":false,"fork":false,"pushed_at":"2026-01-12T19:24:05.000Z","size":116,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T00:43:47.126Z","etag":null,"topics":["poetry","pre-commit"],"latest_commit_sha":null,"homepage":"","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/worgarside.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":".github/CODEOWNERS","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":"2023-10-06T18:02:09.000Z","updated_at":"2025-06-19T17:02:39.000Z","dependencies_parsed_at":"2023-12-11T20:31:24.939Z","dependency_job_id":"55e00958-4d66-4c08-b3d7-8091f2944bbd","html_url":"https://github.com/worgarside/pre-commit-hooks-dependency-sync","commit_stats":null,"previous_names":["worgarside/pre-commit-hooks-dependency-sync"],"tags_count":9,"template":false,"template_full_name":"worgarside/python-template","purl":"pkg:github/worgarside/pre-commit-hooks-dependency-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worgarside%2Fpre-commit-hooks-dependency-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worgarside%2Fpre-commit-hooks-dependency-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worgarside%2Fpre-commit-hooks-dependency-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worgarside%2Fpre-commit-hooks-dependency-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worgarside","download_url":"https://codeload.github.com/worgarside/pre-commit-hooks-dependency-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worgarside%2Fpre-commit-hooks-dependency-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28661874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["poetry","pre-commit"],"created_at":"2026-01-22T10:28:29.567Z","updated_at":"2026-02-08T02:01:25.179Z","avatar_url":"https://github.com/worgarside.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-Commit Hook Additional Dependencies Synchronizer\n\nThis is a simple Pre-Commit Hook that will compare your `poetry.lock` or `uv.lock` file with the additional dependencies included in `.pre-commit-config.yaml`. Any additional dependencies which are found in the lockfile will be pinned to that version within the PCH config.\n\n## Usage\n\nAdd this pre-commit hook to your project by adding the following to your `.pre-commit-config.yaml`:\n\n```yaml\n  - repo: https://github.com/worgarside/pre-commit-hooks-dependency-sync\n    rev: 1.0.1\n    hooks:\n      - id: sync-additional-dependencies\n```\n\n## Configuration Options\n\nYou can customize the behavior of the hook by passing arguments:\n\n```yaml\n  - repo: https://github.com/worgarside/pre-commit-hooks-dependency-sync\n    rev: 1.0.1\n    hooks:\n      - id: sync-additional-dependencies\n        args:\n          - --exclude-packages\n          - package-name-1\n          - package-name-2\n```\n\n### Available Arguments\n\n- `--pch-config-path` / `-c`: Path to `.pre-commit-config.yaml` (default: `.pre-commit-config.yaml` in repo root)\n- `--hook-name` / `-n`: Optional hook name to limit dependency updates to a specific hook\n- `--package-manager` / `-p`: Package manager to use (`poetry` or `uv`, default: `poetry`)\n- `--lockfile-path` / `-l`: Path to lockfile (default: `\u003cpackage-manager\u003e.lock` in repo root)\n- `--exclude-packages` / `-e`: One or more package names to exclude from synchronization\n\n### Example: Exclude Specific Packages\n\nIf you want to prevent certain packages from being synchronized (e.g., to maintain a specific version):\n\n```yaml\n  - repo: https://github.com/worgarside/pre-commit-hooks-dependency-sync\n    rev: 1.0.1\n    hooks:\n      - id: sync-additional-dependencies\n        args:\n          - --exclude-packages\n          - mypy\n          - ruff\n```\n\n### Example: Using with uv\n\n```yaml\n  - repo: https://github.com/worgarside/pre-commit-hooks-dependency-sync\n    rev: 1.0.1\n    hooks:\n      - id: sync-additional-dependencies\n        args:\n          - --package-manager\n          - uv\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworgarside%2Fpre-commit-hooks-dependency-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworgarside%2Fpre-commit-hooks-dependency-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworgarside%2Fpre-commit-hooks-dependency-sync/lists"}