sync-pre-commit-deps
Sync pre-commit hook dependencies based on other installed hooks
install (standalone)
pip install sync-pre-commit-deps
install as a pre-commit hook (recommended)
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/pre-commit/sync-pre-commit-deps
rev: v0.0.5
hooks:
- id: sync-pre-commit-deps
cli
$ sync-pre-commit-deps path/to/.pre-commit-config.yaml
what it does
Hooks like black, yesqa, and eslint reference additional dependencies which are also pre-commit hooks. This tool syncs the version in additional_dependencies with the version in rev.
For example, flake8 under yesqa is updated from 5.0.0 to 6.0.0 because the flake8 hook uses 6.0.0:
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
Another example, the eslint version in additional_dependencies is updated to match the version in rev:
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v4.15.0
hooks:
- id: eslint
additional_dependencies:
- - eslint@4.14.0
+ - eslint@4.15.0
- eslint-config-google@0.7.1
- eslint-loader@1.6.1
- eslint-plugin-react@6.10.3
- babel-eslint@6.1.2
what it doesn't do
- Does not add new additional dependencies. Only updates versions for dependencies that are already specified.
- Does not sync versions from
package.json,requirements.txt,pyproject.toml, etc.
Metadata
Release files for sync-pre-commit-deps 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sync_pre_commit_deps-0.0.5.tar.gz | 4.2 kB | Without provenance | Details for sync_pre_commit_deps-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sync_pre_commit_deps-0.0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sync_pre_commit_deps-0.0.5-py2.py3-none-any.whl |
Total release size: 8.9 kB
Release files / sync_pre_commit_deps-0.0.5.tar.gz
| Download URL | sync_pre_commit_deps-0.0.5.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffa94f7f185b6f70bf5104d1dcd13a54c3c0fb2a655a743fadc32633703abf82
|
|
BLAKE2b-256 checksum How to use checksums |
dcd7c0bb71db2fb2b760903f1361dff72ebc4ae168650913a363eb12f476339c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / sync_pre_commit_deps-0.0.5-py2.py3-none-any.whl
| Download URL | sync_pre_commit_deps-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8f33e2bdda9d197aacad546bb3788fa0de76f8c7cc4babbf4d38485a8bdca36b
|
|
BLAKE2b-256 checksum How to use checksums |
8be8b2f79112567468ce6cf6a04fe6c491a39107b1e39c54ab53b7ee3ce08cb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for sync-pre-commit-deps 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.