-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (42 loc) · 1.21 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (42 loc) · 1.21 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
exclude: >
(?x)^(
py/src/braintrust/_generated_types\.py
|py/src/braintrust/generated_types\.py
)$
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.4.0
hooks:
- id: end-of-file-fixer
exclude: (queryscript/tests/.*\.(expected|test)|.*cassette.*\.ya?ml)$
- id: trailing-whitespace
exclude: (queryscript/tests/.*\.(expected|test)|.*cassette.*\.ya?ml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.7
hooks:
- id: ruff-format
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- repo: local
hooks:
- id: check-stale-cassettes
name: check stale cassettes
entry: python py/scripts/check-stale-cassettes.py
language: python
pass_filenames: false
files: (pyproject\.toml|cassettes/)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
exclude: >
(?x)^(
.*\.(json|prisma|svg)
|.*.yaml
|.*/cassettes/.*
|.*uv\.lock
)$
args:
- "-L"
- "rouge,coo,couldn,unsecure,ontext,afterall,als"