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
Copyright configuration
The default values used in the .github/copyright.yaml
file.
Default values:
one_date_re: ' Copyright \\(c\\) (?P<year>[0-9]{4})"))'
tow_date_re: ' Copyright \\(c\\) (?P<from>[0-9]{4})-(?P<to>[0-9]{4})")'
one_date_format: ' Copyright (c) {year}")'
tow_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-0.4.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file sbrunner_hooks-0.4.0.tar.gz
.
File metadata
- Download URL: sbrunner_hooks-0.4.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf60beffb352cf724b38ba50255e45c28ed7cf403bc69a638bbf1bb234b36c1c |
|
MD5 | bcf4b43d1d009ebb84e28d669dbf8a29 |
|
BLAKE2b-256 | 2f5ae7f2ae6d4e941647f2e3b2baade7f7122fb6a1f7daaea0f6b7b023641512 |
Provenance
File details
Details for the file sbrunner_hooks-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: sbrunner_hooks-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e53461200c6bd705e78f54a9927b38abe4ceed7f506986b69b91f3079127e741 |
|
MD5 | 22beb87c814cdcd56b593bc264bbd0cb |
|
BLAKE2b-256 | 4996288a2c2443bfd216ed520746a33e1b472389e04d0171f2b2e3f2bf406628 |