agritheory / test_utils

Common Test Utilities and Fixtures for AgriTheory Projects
4 stars 4 forks source link

feat: auto update pre-commit config #59

Closed MyuddinKhatri closed 4 months ago

MyuddinKhatri commented 5 months ago

closes #19 To use this as pre-commit hook -

  - repo: https://github.com/agritheory/test_utils/
    rev: {rev} // The revision or tag to clone. Example: rev: v0.11.0
    hooks:
      - id: update_pre_commit_config

Result - image

MyuddinKhatri commented 5 months ago

@agritheory This automatically updates the config, If we want to check for newer version is available and ask user to update then I think we can use this, https://pypi.org/project/pre-commit-update