forked from cli99/llm-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.5 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict
- id: debug-statements
- id: requirements-txt-fixer
- id: check-ast
- id: debug-statements
- id: check-toml
- id: check-json
- id: check-xml
- id: check-added-large-files
args: [— maxkb=100]
- id: fix-encoding-pragma
args: [--remove]
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
args: ["--config=.flake8"]
- repo: https://github.com/google/yapf
rev: v0.32.0
hooks:
- id: yapf
additional_dependencies: [toml]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: [
# Do not check files that are automatically generated
"--skip=docs/Gemfile.lock,tests/unit/gpt2-merges.txt,tests/unit/gpt2-vocab.json",
'--ignore-regex=\\n', # Do not count the 'n' in an escaped newline as part of a word
"--ignore-words-list=unsupport", # Word used in error messages that need rewording
--check-filenames,
--check-hidden,
]
- repo: https://gitlab.com/daverona/pre-commit-cpp
rev: 0.8.0
hooks:
- id: clang-format # formatter of C/C++ code based on a style guide: LLVM, Google, Chromium, Mozilla, and WebKit available
args: []