Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sync_pre_commit_deps-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

sync_pre_commit_deps-0.0.1-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sync_pre_commit_deps-0.0.1.tar.gz.

File metadata

  • Download URL: sync_pre_commit_deps-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for sync_pre_commit_deps-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c9c3315000c7f4e3256e42a0a6eb0105c16db6a83248d8fbcd450107ff25e0d0
MD5 fe280d1da3063a0f02e03d4abfbcef76
BLAKE2b-256 9ce4caddfbb634679074a761c75c7371e8a511918ba4e139a8aa93acc14e2abd

See more details on using hashes here.

File details

Details for the file sync_pre_commit_deps-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sync_pre_commit_deps-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d47dcf4506d9438ec9e7be318f0280b7f42f8bc5f9d598e182f86adf9c4e6f32
MD5 c6de1915e77eb247704ddfb901a47258
BLAKE2b-256 135bf86a7a9e9e2b0fc570cbb9b8dc35177d2baa070be6d4a2a239e9831ff752

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page