Skip to main content

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


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.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2Python 3

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

Hashes for sync_pre_commit_deps-0.0.3.tar.gz
Algorithm Hash digest
SHA256 21b5e890cff867cffe7b2bb2ab5f4b220e7183b45cf9ba0c4a9f1338258cb270
MD5 534291bafe0b7cf16ec4ef7367cc23fa
BLAKE2b-256 5b5230b42afcf899de35829017d16842d352809c06581e80edebb3da9c59e4af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sync_pre_commit_deps-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e0214c508b9a44d3f3b144a73d2bd65cc01a6ede121950a3a1008ac57db1c3b
MD5 f848af8d62ff429603128511b1328427
BLAKE2b-256 83dfc5516b323ad669e8b020e420b57b23de503b79d401bea4c378d4217ba27b

See more details on using hashes here.

Supported by

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