Skip to content

Commit 50be55d

Browse files
committed
Add pre-commit configuration
1 parent 8f0c245 commit 50be55d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.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-added-large-files
6+
# Prevent giant files from being committed.
7+
- id: check-toml
8+
# Attempts to load all TOML files to verify syntax.
9+
- id: check-yaml
10+
# Attempts to load all yaml files to verify syntax.
11+
- id: check-ast
12+
# Simply check whether files parse as valid python.
13+
- id: check-case-conflict
14+
# Check for files with names that would conflict on a case-insensitive
15+
# filesystem like MacOS HFS+ or Windows FAT.
16+
- id: check-json
17+
# Attempts to load all json files to verify syntax.
18+
- id: end-of-file-fixer
19+
# Makes sure files end in a newline and only a newline.
20+
exclude_types: [image]
21+
- id: trailing-whitespace
22+
# Trims trailing whitespace.
23+
- id: mixed-line-ending
24+
# Makes all line endings unix-style
25+
args: [--fix=lf]
26+
- repo: https://github.com/psf/black
27+
rev: 25.1.0
28+
hooks:
29+
- id: black

0 commit comments

Comments
 (0)