52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
minimum_pre_commit_version: "3.2.0"
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-symlinks
|
|
- id: destroyed-symlinks
|
|
- id: detect-private-key
|
|
- id: fix-byte-order-marker
|
|
# NB. To avoid sometimes needing multiple runs, we need:
|
|
# - trailing-whitespace BEFORE end-of-file-fixer,
|
|
# otherwise trailing newline followed by whitespace, "\n ",
|
|
# will need multiple runs.
|
|
# - end-of-file-fixer BEFORE mixed-line-ending,
|
|
# otherwise a file with CRLF line endings but missing a trailing
|
|
# newline will need multiple runs.
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: "v4.0.0-alpha.8"
|
|
hooks:
|
|
- id: prettier
|
|
- repo: https://github.com/ikamensh/flynt/
|
|
rev: "1.0.1"
|
|
hooks:
|
|
- id: flynt
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 24.10.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.5.5
|
|
hooks:
|
|
- id: remove-tabs
|
|
types: [file]
|
|
files: \.talon$
|
|
args: ["--whitespaces-count=4"]
|
|
- repo: https://github.com/wenkokke/talonfmt
|
|
rev: 1.10.2
|
|
hooks:
|
|
- id: talonfmt
|
|
args: ["--in-place"]
|