agritheory / test_utils

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

feat: auto update pre-commit config #59

Open MyuddinKhatri opened 3 days ago

MyuddinKhatri commented 3 days 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 3 days 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