Created
March 20, 2025 05:51
-
-
Save anandmuthu-vnix/fad10e5f8c40f11f1a0ac9847bd11da3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Common commands: | |
# pre-commit install | |
# pre-commit autoupdate | |
# pre-commit run --all-files mdformat | |
# pre-commit run --all-files --hook-stage commit | |
# pre-commit run --all-files --hook-stage push | |
# uv run calcipy lint.pre-commit --no-update | |
# | |
# See https://pre-commit.com for more information | |
# and https://pre-commit.com/hooks.html for more hooks | |
# Only commit is installed by default: https://pre-commit.com/#pre-commit-install | |
# Pending rename of pre-push from: https://github.com/pre-commit/pre-commit/issues/2732 | |
default_install_hook_types: ["commit-msg", "pre-commit", "pre-push"] | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v5.0.0 | |
hooks: | |
- id: check-added-large-files | |
- id: check-executables-have-shebangs | |
- id: check-json | |
- id: check-merge-conflict | |
- id: check-symlinks | |
- id: check-toml | |
- id: check-vcs-permalinks | |
- id: check-yaml | |
args: [--unsafe] | |
- id: debug-statements | |
- id: destroyed-symlinks | |
- id: detect-private-key | |
- id: double-quote-string-fixer | |
- id: end-of-file-fixer | |
exclude: \.copier-answers\.yml|__snapshots__/.*\.ambr | |
- id: fix-byte-order-marker | |
- id: forbid-new-submodules | |
- id: mixed-line-ending | |
args: [--fix=auto] | |
- id: trailing-whitespace | |
exclude: __snapshots__/.*\.ambr | |
- repo: https://github.com/commitizen-tools/commitizen | |
rev: v4.1.0 | |
hooks: | |
- id: commitizen | |
- repo: https://github.com/executablebooks/mdformat | |
rev: 0.7.19 | |
hooks: | |
- id: mdformat | |
additional_dependencies: | |
- "mdformat-mkdocs[recommended]>=3.0.0" | |
- "mdformat-gfm-alerts>=1.0.1" | |
args: [--wrap=no] | |
exclude: _.+\.md|CHANGELOG\.md|CODE_TAG_SUMMARY\.md | |
stages: ["pre-commit"] | |
- repo: https://github.com/shellcheck-py/shellcheck-py | |
rev: v0.10.0.1 | |
hooks: | |
- id: shellcheck | |
args: [--severity=warning] | |
stages: ["pre-commit"] | |
- repo: https://github.com/pre-commit/mirrors-prettier | |
rev: "v4.0.0-alpha.8" | |
hooks: | |
- id: prettier | |
additional_dependencies: | |
# Note: this version must be the same as the hook revision | |
- "[email protected]" | |
- "prettier-plugin-sh" | |
exclude: \.copier-answers\.yml|tests/.*/cassettes/.*\.yaml|__snapshots__/.*\.json | |
types_or: [html, javascript, json, shell, yaml] | |
stages: ["pre-commit"] | |
- repo: https://github.com/pappasam/toml-sort | |
rev: v0.24.2 | |
hooks: | |
- id: toml-sort-fix | |
exclude: uv\.lock | |
stages: ["pre-commit"] | |
# - repo: https://github.com/KyleKing/calcipy | |
# rev: 5.0.0 | |
# hooks: | |
# - id: copier-forbidden-files | |
# - id: lint-fix | |
# stages: ["pre-commit"] | |
# - id: tags | |
# stages: ["pre-push"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment