-
Notifications
You must be signed in to change notification settings - Fork 851
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (42 loc) · 1.46 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
minimum_pre_commit_version: "4.5.0"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.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/oxc-project/mirrors-oxfmt
rev: "v0.45.0"
hooks:
- id: oxfmt
types_or: [markdown, yaml, toml, json]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
# Want to use pyproject instead of toml, but pre-commit.ci doesn't yet support it.
types_or: [python, toml]
args: [--fix]
- id: ruff-format
- repo: https://github.com/cursorless-dev/talon-tools
rev: v0.11.0
hooks:
- id: talon-fmt
- id: snippet-fmt