Sync pre-commit hook dependencies based on other installed hooks
Project description
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.3
hooks:
- id: sync-pre-commit-deps
cli
$ 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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sync_pre_commit_deps-0.0.3.tar.gz.
File metadata
- Download URL: sync_pre_commit_deps-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21b5e890cff867cffe7b2bb2ab5f4b220e7183b45cf9ba0c4a9f1338258cb270
|
|
| MD5 |
534291bafe0b7cf16ec4ef7367cc23fa
|
|
| BLAKE2b-256 |
5b5230b42afcf899de35829017d16842d352809c06581e80edebb3da9c59e4af
|
File details
Details for the file sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0214c508b9a44d3f3b144a73d2bd65cc01a6ede121950a3a1008ac57db1c3b
|
|
| MD5 |
f848af8d62ff429603128511b1328427
|
|
| BLAKE2b-256 |
83dfc5516b323ad669e8b020e420b57b23de503b79d401bea4c378d4217ba27b
|