Files
firezone/.github/pre-commit-config.yaml
Jamil 6a896af638 chore(repo): Move other dotfiles to reduce directory size of root (#3780)
Brings README content further up for our repo visitors.
2024-02-27 17:23:17 +00:00

47 lines
1.4 KiB
YAML

repos:
- repo: local
hooks:
- id: codespell
name: "python: codespell"
args: [--config=.github/codespellrc]
entry: codespell
language: system
pass_filenames: false
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces to replace line ending by the UNIX 'lf' character.
exclude: "(^website/public/images/|^kotlin/android/gradlew.bat|^rust/windows-client/wintun/|^elixir/apps/web/priv/static/)"
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: (^website/public/images/|^elixir/apps/web/priv/static/)
- id: trailing-whitespace
exclude: ^website/public/images/
- id: check-merge-conflict
- id: no-commit-to-branch
args:
- -b
- master
- --pattern
- '^(?!((chore|feat|feature|bug|fix|build|ci|docs|style|refactor|perf|test|revert)\/[@a-zA-Z0-9\-\.\/]+)$).*'
# Third party pre-commit hooks
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
args: ["--severity=warning"]
exclude: ^.*/gradlew$
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.1.0
hooks:
- id: shell-fmt
args:
- -i
- "4"