forked from embeddings-benchmark/mteb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (50 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (50 loc) · 1.51 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
fail_fast: true
repos:
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-json
- id: pretty-format-json
args:
- "--autofix"
- "--indent=4"
- "--no-sort-keys"
- id: end-of-file-fixer # generated a lot of changes
- id: trailing-whitespace
- id: check-toml
- repo: https://github.com/crate-ci/typos
rev: v1.38.1
hooks:
- id: typos
- repo: local
hooks:
- id: lint
name: lint
description: "Run 'make lint'"
entry: make lint
language: python
types_or: [python]
minimum_pre_commit_version: "2.9.2"
- id: format-benchmarks-citations
name: format-benchmarks-citations
description: "Format benchmarks citations"
entry: python scripts/format_citations.py benchmarks --error-on-change
language: system
files: 'mteb/benchmarks/'
pass_filenames: false
types_or: [ python ]
minimum_pre_commit_version: "2.9.2"
- id: format-tasks-citations
name: format-tasks-citations
description: "Format tasks citations"
entry: python scripts/format_citations.py tasks --error-on-change
language: system
files: 'mteb/tasks/'
pass_filenames: false
types_or: [ python ]
minimum_pre_commit_version: "2.9.2"