Skip to content

Commit 11e811d

Browse files
Add pre-commit
1 parent 1100589 commit 11e811d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: check-toml
7+
- id: check-ast
8+
- id: check-merge-conflict
9+
- id: check-added-large-files
10+
- id: mixed-line-ending
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
- repo: https://github.com/kynan/nbstripout
14+
rev: 0.8.1
15+
hooks:
16+
- id: nbstripout
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
# Ruff version.
19+
rev: v0.9.9
20+
hooks:
21+
# Run the linter.
22+
- id: ruff
23+
args: [--fix]
24+
# Run the formatter.
25+
- id: ruff-format
26+
- repo: https://gitlab.com/bmares/check-json5
27+
rev: v1.0.0
28+
hooks:
29+
- id: check-json5

0 commit comments

Comments
 (0)