-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (71 loc) · 1.98 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
73 lines (71 loc) · 1.98 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
64
65
66
67
68
69
70
71
72
73
# Copyright (C) 2023 Roberto Rossini <roberros@uio.no>
#
# SPDX-License-Identifier: MIT
default_language_version:
python: python3 # Defaults to python2, so override it.
exclude: ^test/data
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: forbid-submodules
- id: mixed-line-ending
args:
- --fix=lf
- id: trailing-whitespace
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
hooks:
- id: actionlint
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.19.1
hooks:
- id: markdownlint-cli2
# Formatters should be run late so that they can re-format any prior changes.
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
hooks:
- id: black
args: ["--line-length", "120", "--target-version", "py310"]
- repo: https://github.com/pycqa/isort
rev: 7.0.0
hooks:
- id: isort
args: ["--profile", "black", "--py", "310"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.6
hooks:
- id: clang-format
types_or: [c, c++]
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.23.2
hooks:
- id: gersemi
exclude: |
(?x)(
^cmake/modules|
^cmake/conan_provider.cmake
)
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier
language: node
additional_dependencies: [prettier@3.6.2]
types_or: [json, markdown, yaml]
args: ["--write", "--ignore-unknown"]