Skip to content

Commit 3f997c3

Browse files
authored
Added new pre-commit hook to check local template version against latest remote version. (#138)
1 parent d02dccc commit 3f997c3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

python-project-template/.pre-commit-config.yaml.jinja

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
repos:
22

3+
# Compare the local template version to the latest remote template version
4+
# This hook should always pass. It will print a message if the local version
5+
# is out of date.
6+
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
7+
rev: v0.1
8+
hooks:
9+
- id: check-lincc-frameworks-template-version
10+
name: Check template version
11+
description: Compare current template version against latest
12+
verbose: true
13+
314
# Clear output from jupyter notebooks so that only the input cells are committed.
415
- repo: local
516
hooks:

0 commit comments

Comments
 (0)