Skip to content

Commit 6dd85c7

Browse files
committed
Add pre-commit configuration
1 parent 6a31d44 commit 6dd85c7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
exclude: ".*/data/.*"
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.4.0
5+
hooks:
6+
- id: trailing-whitespace
7+
exclude: 'examples'
8+
- id: end-of-file-fixer
9+
exclude: 'examples|docs/_static/.*\.(css|js)'
10+
- id: check-yaml
11+
- id: check-json
12+
- id: check-toml
13+
- id: check-added-large-files
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.7.4
16+
hooks:
17+
- id: ruff
18+
args: [ --fix ]
19+
- id: ruff-format
20+
- id: ruff
21+
args: [ --select, ISC001, --fix ]

0 commit comments

Comments
 (0)