Skip to content

Commit 3fb0972

Browse files
feat: add pre-commit as lint config (MoonshotAI#5)
1 parent 0be3ff1 commit 3fb0972

File tree

6 files changed

+375
-112
lines changed

6 files changed

+375
-112
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-symlinks
6+
- id: destroyed-symlinks
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-toml
11+
- id: check-ast
12+
- id: check-added-large-files
13+
- id: check-merge-conflict
14+
- id: check-executables-have-shebangs
15+
- id: check-shebang-scripts-are-executable
16+
- id: detect-private-key
17+
- id: debug-statements
18+
- id: check-added-large-files
19+
args: [--maxkb=10240]
20+
- repo: https://github.com/charliermarsh/ruff-pre-commit
21+
rev: v0.12.2
22+
hooks:
23+
- id: ruff
24+
args: [--fix, --exit-non-zero-on-fix]
25+
- id: ruff-format
26+
- repo: https://github.com/codespell-project/codespell
27+
rev: v2.4.1
28+
hooks:
29+
- id: codespell
30+
additional_dependencies: [".[toml]"]
31+
32+
exclude: ^patches

0 commit comments

Comments
 (0)