-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-xml
- id: check-toml
- id: check-docstring-first
- id: check-json
exclude: (examples/offline_examples/IPC_augmentation/dump/samples\.json|meta_icl/algorithm/data/AQuA-data/AQuA\.json)
- id: detect-private-key
- id: trailing-whitespace
exclude: (README\.md|README_ZH\.md)$
- id: end-of-file-fixer
files: \.py$
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
# - repo: https://github.com/PyCQA/flake8
# rev: 6.1.0
# hooks:
# - id: flake8
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
exclude: ".*poetry.lock|.*_static|examples/*|meta_icl/algorithm/*"
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/srstevenson/nb-clean
rev: 3.1.0
hooks:
- id: nb-clean
args: [ --preserve-cell-outputs, --remove-empty-cells ]