Skip to main content

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/pre-commit-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})")'
tow_date_format: ' Copyright (c) {from}-{to}")'

Metadata

Release files for sbrunner-pre-commit-hooks 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sbrunner-pre-commit-hooks 0.2.3
File Size Uploaded
sbrunner_pre_commit_hooks-0.2.3.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sbrunner-pre-commit-hooks 0.2.3
File Interpreter ABI Platform
sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / sbrunner_pre_commit_hooks-0.2.3.tar.gz

Download URL sbrunner_pre_commit_hooks-0.2.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
428e608b8070e2893c22cf5f811f7487281b5dfcc5f53a54c35c242f512a3287
BLAKE2b-256 checksum
How to use checksums
24bc4475662123377a91cc8955148682008046634273e1e82c4c73d39dd5f927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl

Download URL sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0fbb9cb7df75196a8d2a64d471c27a080f6738d540022b7ee97458426f9fcda
BLAKE2b-256 checksum
How to use checksums
ba8a0adf086e1f8e77fb12646cdf0142895b503c6a5d7e07ffb9d336b8b63ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page