Skip to content

Commit ab775a9

Browse files
authored
Add pre-commit configuration file
1 parent ae2c372 commit ab775a9

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.pre-commit-config.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
exclude: ".*/(data|docs/experimental)/.*"
2+
repos:
3+
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
4+
rev: v0.7.0
5+
hooks:
6+
- id: pre-commit-update
7+
args: [--keep, pre-commit-update]
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v6.0.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
- id: check-yaml
15+
- id: check-json
16+
- id: check-toml
17+
- id: check-added-large-files
18+
- id: check-case-conflict
19+
- id: check-merge-conflict
20+
- id: check-vcs-permalinks
21+
- id: detect-aws-credentials
22+
args: [--allow-missing-credentials]
23+
- id: detect-private-key
24+
- repo: https://github.com/codespell-project/codespell
25+
rev: v2.4.1
26+
hooks:
27+
- id: codespell
28+
additional_dependencies:
29+
- tomli
30+
exclude: 'data/emojis\.json'
31+
# Mypy disabled - project does not use type annotations
32+
# - repo: https://github.com/pre-commit/mirrors-mypy
33+
# rev: v1.18.2
34+
# hooks:
35+
# - id: mypy
36+
# additional_dependencies:
37+
# - fastapi
38+
# - uvicorn
39+
# args: ["--ignore-missing-imports"]
40+
- repo: https://github.com/astral-sh/ruff-pre-commit
41+
rev: v0.14.5
42+
hooks:
43+
# Run the linter
44+
- id: ruff
45+
args: [--fix]
46+
# Run the formatter
47+
- id: ruff-format
48+
- repo: https://github.com/numpy/numpydoc
49+
rev: v1.9.0
50+
hooks:
51+
- id: numpydoc-validation
52+
exclude: |
53+
(?x)(
54+
/tests/|
55+
docs/
56+
)

0 commit comments

Comments
 (0)