-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (57 loc) · 1.68 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (57 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
58
exclude: |
(?x)^(
.mypy_cache/
| .pytest_cache/
| .venv/
| __pycache__/
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: pretty-format-json
args: ["--autofix"]
exclude: manifest.json
- id: check-merge-conflict
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint
- repo: local
hooks:
- id: generate-docs
name: Generate documentation from registered tools
entry: uv run python scripts/generate_docs.py
language: system
files: ^(src/dbt_mcp/tools/(tool_names|toolsets|human_descriptions)\.py|README\.md|docs/diagram\.d2)$
pass_filenames: false
- id: uv lock check
name: uv lock check
entry: uv lock --check
language: system
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
pass_filenames: false
- id: ruff-check
name: ruff check
entry: uv run ruff check --force-exclude --fix
language: system
types_or: [python, pyi, jupyter]
require_serial: true
exclude: examples/
- id: ruff-format
name: ruff format
entry: uv run ruff format --force-exclude
language: system
types_or: [python, pyi, jupyter]
require_serial: true
exclude: examples/
- id: mypy
name: mypy
entry: uv run mypy --show-error-codes --namespace-packages . --exclude examples/
language: system
types_or: [python, pyi]
pass_filenames: false
require_serial: true
exclude: examples/