Pre commit hook by sbrunner
Project description
Pre commit hooks
pre-commit hook used to...
Check if the copyright is up to date (using the Git history).
Adding to your .pre-commit-config.yaml
ci:
skip:
# Skip the copyright check on pre-commit.ci because we don't have the Git history
- copyright
- copyright-required
# Poetry didn't works with Python 3.11
- poetry-lock
- poetry-check
repos:
- repo: https://github.com/sbrunner/hooks
rev: <version> # Use the ref you want to point at
hooks:
# Check that the copyright is up to date
- id: copyright
# Check that the copyright is present and up to date
- id: copyright-required
# Require a timeout in GitHub workflow files
- id: workflows-require-timeout
# Check Poetry config
- id: poetry-check
additional_dependencies:
- poetry==<version>
# Do Poetry lock
- id: poetry-lock
additional_dependencies:
- poetry==<version>
# Do Pipfile lock
- id: pipenv-lock
additional_dependencies:
- pipenv==<version>
# Do Helm lock (helm should be installed)
- id: helm-lock
- id: npm-lock
Copyright configuration
The default values used in the .github/copyright.yaml
file.
Default values:
one_date_re: ' Copyright \\(c\\) (?P<year>[0-9]{4})"))'
two_date_re: ' Copyright \\(c\\) (?P<from>[0-9]{4})-(?P<to>[0-9]{4})")'
one_date_format: ' Copyright (c) {year}")'
two_date_format: ' Copyright (c) {from}-{to}")'
license_file: LICENSE
one_date_re: ' Copyright \(c\) (?P<year>[0-9]{4})'
two_date_re: ' Copyright \(c\) (?P<from>[0-9]{4})-(?P<to>[0-9]{4})'
one_date_format: ' Copyright (c) {year}'
two_date_format: ' Copyright (c) {from}-{to}'
license_file: LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sbrunner_hooks-1.1.2.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file sbrunner_hooks-1.1.2.tar.gz
.
File metadata
- Download URL: sbrunner_hooks-1.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6c5196279aea76bc6fa73a54627d8c7cc2f83b967da4a58037f3126fa9de74 |
|
MD5 | 8e3e5184a8559fb37986ab97782e4d15 |
|
BLAKE2b-256 | ffeaab7861a2b2a538795550b84dc049e0a43e487625eee3386981053ce48bc8 |
File details
Details for the file sbrunner_hooks-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: sbrunner_hooks-1.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d7deeb15b27d02ba7a984c63e0cef7efc5943b65f27b7492534857f1473cc5 |
|
MD5 | 24cc0bcee00e1b83c03143733fcb8ea0 |
|
BLAKE2b-256 | bdd4561603fa76baa0025f40ecad3bc546667d23698360d02be7e307e37d9bac |