-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (43 loc) · 1.42 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (43 loc) · 1.42 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
# SPDX-FileCopyrightText: 2026 Google LLC
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: local
hooks:
- id: license-headers
name: license headers
entry: uv run python tools/license_headers.py --fix
language: system
pass_filenames: true
files: ^(\.pre-commit-config\.yaml|Makefile|manage\.py|vite\.config\.ts|src/(app|tests|resources)/|tools/)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
hooks:
# Run the linter.
- id: ruff-check
args:
- --fix
# Run the formatter (also formats Python in Markdown fences via preview mode).
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: ^(\.agents/|docs/_static/|docs/_build/|node_modules/|tools/oracle/downloads/|src/app/db/fixtures/)
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.23.0
hooks:
- id: markdownlint-cli2
exclude: ^(\.agents/|docs/_build/|node_modules/|tools/oracle/downloads/)