dotfiles/.pre-commit-config.yaml

26 lines
621 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
exclude: ^config\/nvim\/lazy-lock\.json$
- id: trailing-whitespace
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: |
(?x)^(
config\/zsh\/.*|
home/\.zshenv
)$
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
- id: stylua
args: [-f, config/nvim/stylua.toml]
files: ^config\/nvim\/.*lua$