-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (63 loc) · 1.81 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (63 loc) · 1.81 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-yaml
exclude: "\\.clang\\-format$"
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
exclude: docs/make.bat
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: "v3.21.2"
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.22
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
args : [--line-length=79]
# - repo: https://github.com/myint/docformatter
# rev: "v1.7.5"
# hooks:
# - id: docformatter
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: "v0.6.13"
hooks:
- id: cmake-lint
- id: cmake-format
additional_dependencies: [pyyaml]
types: [file]
files: CMakeLists.txt
- repo: https://github.com/codespell-project/codespell
rev: "v2.4.3"
hooks:
- id: codespell
exclude: "(cf.py|pyinterp/.*json)$"
args: [--ignore-words-list, "degreee"] # degreeE is a valid axis unit
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.8
hooks:
- id: clang-format
# *.hpp.in templates hold @VAR@ placeholders that clang-format, which
# parses its input as C++, cannot handle.
exclude: "(dataset.*json|\\.in)$"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0
hooks:
- id: mypy
exclude: (examples|docs)/
additional_dependencies:
# Type stubs
- types-requests
- types-setuptools
# Typed libraries
- dask
- numpy