forked from eval-hub/eval-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (52 loc) · 1.47 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (52 loc) · 1.47 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
# Pre-commit configuration for eval-hub
repos:
# Ruff linting and formatting (replaces black)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^examples/api_examples\.ipynb$
- id: ruff-format
exclude: ^examples/api_examples\.ipynb$
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
exclude: ^examples/api_examples\.ipynb$
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=1000]
- id: debug-statements
# Local checks
- repo: local
hooks:
- id: mypy-check
name: mypy type checking
# run with uv
entry: uv
args: [run, mypy, src/]
language: system
types: [python]
pass_filenames: false
- id: pytest-unit
name: unit tests
# run with uv
entry: uv
args: [run, pytest, tests/, -m, "unit", --tb=short, -q]
language: system
types: [python]
pass_filenames: false
- id: go-test
name: go unit and FVT tests
entry: make
args: [clean, build, test-all]
language: system
types: [go]
pass_filenames: false