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.6.1.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sbrunner_hooks-1.6.1.tar.gz.
File metadata
- Download URL: sbrunner_hooks-1.6.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b63250d9acaaa611bff486feb2aafdddfa953ccf2e995bb9f81cb06ab7404f
|
|
| MD5 |
2d8f626d9db19ba588e97ade65910a77
|
|
| BLAKE2b-256 |
5f826f5f0ec8adf181b99191ccc639f13cf907ecf0804a451d61286769248d2c
|
File details
Details for the file sbrunner_hooks-1.6.1-py3-none-any.whl.
File metadata
- Download URL: sbrunner_hooks-1.6.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99380c8708f9810b93713d9aaa5d55348b927f49c42bcb398d5233cba61e1baa
|
|
| MD5 |
3b10907673976c7e58bdbb361fbb12d4
|
|
| BLAKE2b-256 |
31740bfdca9a180ad71dd31a831c0daa87ecf4d173a86ad2b4a069f8bfab1a1b
|