Skip to content

A collection of pre-commit hooks designed for the LINCC Frameworks Python Project Template

License

Notifications You must be signed in to change notification settings

lincc-frameworks/pre-commit-hooks

Repository files navigation

LINCC Frameworks Pre-Commit Hooks for Python Project Template

Template

Add the following to your .pre-commit-config.yaml file to check for newer versions of the template:

repos:

...

  - repo: https://github.com/lincc-frameworks/pre-commit-hooks
    rev: v0.1
    hooks:
      - id: check-lincc-frameworks-template-version
        name: Check template version
        description: Compare current template version against latest
        verbose: true

...

If the template version in the .copier-answers.yml file matches the most recent version available, you'll see this:

Check template version...................................................Passed
- hook id: check-lincc-frameworks-template-version
- duration: 0.59s

If your version is behind the most recent, you'll see this:

Check template version...................................................Passed
- hook id: check-lincc-frameworks-template-version
- duration: 0.59s

A new version of your project template is available!
Your version (1.3.0) is older than the latest (1.3.1)
Run the following command to update your template: copier
For more information see the documentation: https://lincc-ppt.readthedocs.io/en/latest/source/update_project.html

Attribution

This project was automatically generated using the LINCC-Frameworks python-project-template.

A repository badge was added to show that this project uses the python-project-template, however it's up to you whether or not you'd like to display it!

For more information about the project template see the For more information about the project template see the documentation.

About

A collection of pre-commit hooks designed for the LINCC Frameworks Python Project Template

Resources

License

Stars

Watchers

Forks

Packages

No packages published