forked from ChelseaKR/qfer-preflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (30 loc) · 1.02 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
32 lines (30 loc) · 1.02 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
# Fast local checks. `make verify` remains the authoritative gate.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: ^tests/fixtures/
- id: mixed-line-ending
args: [--fix=no]
exclude: ^tests/fixtures/
- id: trailing-whitespace
exclude: ^tests/fixtures/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: local
hooks:
- id: no-dashes
name: reject em dashes and en dashes
entry: python3 -c "import sys; bad=[f for f in sys.argv[1:] if any(d in open(f,encoding='utf-8',errors='ignore').read() for d in ('–','—'))]; sys.exit('em/en dash in: '+', '.join(bad)) if bad else None"
language: system
types: [text]
exclude: ^(uv\.lock|LICENSE)$