sync-pre-commit-deps
====================
Sync pre-commit hook dependencies based on other installed hooks
## install (standalone)
```bash
pip install sync-pre-commit-deps
```
## install as a pre-commit hook (recommended)
See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/pre-commit/sync-pre-commit-deps
rev: v0.0.3
hooks:
- id: sync-pre-commit-deps
```
## cli
```console
$ sync-pre-commit-deps path/to/.pre-commit-config.yaml
```
## what it does
Ensures tools which declare `flake8`, `black`, or `mypy` as additional dependencies will have those versions synced with the `flake8`, `black`, or `mypy` versions in the rest of the config. For example, `flake8` under `yesqa` is updated from `5.0.0` to `6.0.0`.
```diff
repos:
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
additional_dependencies:
- - flake8==5.0.0
+ - flake8==6.0.0
```
Raw data
{
"_id": null,
"home_page": "https://github.com/pre-commit/sync-pre-commit-deps",
"name": "sync-pre-commit-deps",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Max R",
"author_email": "maxr@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/5b/52/30b42afcf899de35829017d16842d352809c06581e80edebb3da9c59e4af/sync_pre_commit_deps-0.0.3.tar.gz",
"platform": null,
"description": "sync-pre-commit-deps\n====================\n\nSync pre-commit hook dependencies based on other installed hooks\n\n## install (standalone)\n\n```bash\npip install sync-pre-commit-deps\n```\n\n## install as a pre-commit hook (recommended)\n\nSee [pre-commit](https://github.com/pre-commit/pre-commit) for instructions\n\nSample `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/pre-commit/sync-pre-commit-deps\n rev: v0.0.3\n hooks:\n - id: sync-pre-commit-deps\n```\n\n## cli\n\n```console\n$ sync-pre-commit-deps path/to/.pre-commit-config.yaml\n```\n\n## what it does\n\nEnsures tools which declare `flake8`, `black`, or `mypy` as additional dependencies will have those versions synced with the `flake8`, `black`, or `mypy` versions in the rest of the config. For example, `flake8` under `yesqa` is updated from `5.0.0` to `6.0.0`.\n\n```diff\n repos:\n - repo: https://github.com/PyCQA/flake8\n rev: 6.0.0\n hooks:\n - id: flake8\n - repo: https://github.com/asottile/yesqa\n rev: v1.5.0\n hooks:\n - id: yesqa\n additional_dependencies:\n- - flake8==5.0.0\n+ - flake8==6.0.0\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Sync pre-commit hook dependencies based on other installed hooks",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/pre-commit/sync-pre-commit-deps"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "83dfc5516b323ad669e8b020e420b57b23de503b79d401bea4c378d4217ba27b",
"md5": "f848af8d62ff429603128511b1328427",
"sha256": "1e0214c508b9a44d3f3b144a73d2bd65cc01a6ede121950a3a1008ac57db1c3b"
},
"downloads": -1,
"filename": "sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "f848af8d62ff429603128511b1328427",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.9",
"size": 4132,
"upload_time": "2025-01-20T21:18:46",
"upload_time_iso_8601": "2025-01-20T21:18:46.837108Z",
"url": "https://files.pythonhosted.org/packages/83/df/c5516b323ad669e8b020e420b57b23de503b79d401bea4c378d4217ba27b/sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5b5230b42afcf899de35829017d16842d352809c06581e80edebb3da9c59e4af",
"md5": "534291bafe0b7cf16ec4ef7367cc23fa",
"sha256": "21b5e890cff867cffe7b2bb2ab5f4b220e7183b45cf9ba0c4a9f1338258cb270"
},
"downloads": -1,
"filename": "sync_pre_commit_deps-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "534291bafe0b7cf16ec4ef7367cc23fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 3689,
"upload_time": "2025-01-20T21:18:47",
"upload_time_iso_8601": "2025-01-20T21:18:47.736825Z",
"url": "https://files.pythonhosted.org/packages/5b/52/30b42afcf899de35829017d16842d352809c06581e80edebb3da9c59e4af/sync_pre_commit_deps-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-20 21:18:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pre-commit",
"github_project": "sync-pre-commit-deps",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "sync-pre-commit-deps"
}