apply a consistent format to `setup.cfg` files
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/mxr/sync-pre-commit-deps
rev: v0.0.1
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
and black
as additional dependencies will have those versions synced with the flake8
and black
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
Close
Hashes for sync_pre_commit_deps-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9c3315000c7f4e3256e42a0a6eb0105c16db6a83248d8fbcd450107ff25e0d0 |
|
MD5 | fe280d1da3063a0f02e03d4abfbcef76 |
|
BLAKE2b-256 | 9ce4caddfbb634679074a761c75c7371e8a511918ba4e139a8aa93acc14e2abd |
Close
Hashes for sync_pre_commit_deps-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47dcf4506d9438ec9e7be318f0280b7f42f8bc5f9d598e182f86adf9c4e6f32 |
|
MD5 | c6de1915e77eb247704ddfb901a47258 |
|
BLAKE2b-256 | 135bf86a7a9e9e2b0fc570cbb9b8dc35177d2baa070be6d4a2a239e9831ff752 |