-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.17 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.17 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
default_stages: [pre-commit, pre-push, manual]
exclude: ^(MultiBD|\.venv|sample/lmdeploy)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-toml
- id: check-ast
- id: check-added-large-files
args: [--maxkb=2000]
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: debug-statements
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff
args:
- --select=F401,F821
- --fix
files: ^(models/|reward/|train/|sample/|configs/|accelerate_configs/|data/|eval\.py|generate\.py|rl\.py)
exclude: |
(?x)^(
.*/__init__\.py$|
.*\.ipynb$|
sample/lmdeploy/.*
)$
- repo: https://github.com/psf/black
rev: 26.1.0
hooks:
- id: black