-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.03 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.2
hooks:
# Run the linter.
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.13.0"
hooks:
- id: mypy
additional_dependencies: [numpy, types-tabulate, pandas-stubs]
exclude: "pyrealm_build_data/splash/splash_py_version/.*\\.py"
# https://stackoverflow.com/a/75447331/3401916
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
- repo: https://github.com/mwouts/jupytext
rev: v1.16.4b
hooks:
- id: jupytext
args: [--pipe, black]
files: docs/source
exclude: docs/source/conf.py
additional_dependencies:
- black==24.4.2 # Matches hook