forked from PowerGridModel/power-grid-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml.jinja
More file actions
57 lines (56 loc) · 1.52 KB
/
.pre-commit-config.yaml.jinja
File metadata and controls
57 lines (56 loc) · 1.52 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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# SPDX-License-Identifier: MPL-2.0
repos:
- repo: https://github.com/fsfe/reuse-tool # outside pypi
rev: v6.2.0
hooks:
- id: reuse
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v{{ ruff }}
hooks:
# Run the linter.
- id: ruff-check
name: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
name: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v{{ mypy }}
hooks:
- id: mypy
additional_dependencies:
- numpy
- repo: local
hooks:
- id: pytest
name: pytest
entry: uv run pytest
language: system
pass_filenames: false
always_run: true
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v{{ clang_format }}
hooks:
- id: clang-format
types_or: [ c++, c ]
- repo: https://github.com/BlankSpruce/gersemi
rev: {{ gersemi }}
hooks:
- id: gersemi
name: cmake-linter
alias: cmake-linter
- repo: https://github.com/igorshubovych/markdownlint-cli # outside pypi
rev: v{{ markdownlint_cli }}
hooks:
- id: markdownlint
args: ["--fix"]
# format .json and .jsonc files
- repo: https://github.com/biomejs/pre-commit # outside pypi
rev: v{{ biome }}
hooks:
# configuration is located in biome.jsonc
- id: biome-format
name: biome-format