forked from inseq-team/inseq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (44 loc) · 1.04 KB
/
.pre-commit-config.yaml
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
default_language_version:
python: python3
default_stages: [commit, push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=2500']
- id: check-toml
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=lf']
- id: end-of-file-fixer
exclude: LICENSE
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff-format
- id: ruff
- repo: local
hooks:
- id: fast-test
name: fast-test
entry: make
args: ["fast-test"]
language: system
pass_filenames: false
- id: clean
name: clean
entry: make
args: ["clean"]
language: system
pass_filenames: false
- repo: local
hooks:
- id: docs
name: build docs
entry: make
args: ["build-docs"]
language: system
pass_filenames: false