forked from learning-process/parallel_programming_course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
61 lines (53 loc) · 1.58 KB
/
.pre-commit-config.yaml
File metadata and controls
61 lines (53 loc) · 1.58 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
# Pre-commit hooks for automated formatting and linting
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# C++ formatting with clang-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.7
hooks:
- id: clang-format
files: \.(cpp|hpp|c|h)$
exclude: ^(3rdparty/|build.*/|install/)
args: [--style=file]
# CMake formatting
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
files: \.(cmake|CMakeLists\.txt)$
exclude: ^(3rdparty/|build.*/|install/)
# Ruff Python linter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.14.9
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Flake8 Python style/lint checker (supplemental to Ruff)
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
# YAML linting
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
# Shell script linting with shellcheck (no docker dependency)
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
files: \.sh$
# Dockerfile linting with hadolint
- repo: https://github.com/hadolint/hadolint
rev: v2.14.0
hooks:
- id: hadolint-docker
types: [file]
files: (^|/)(Dockerfile|.*\.Dockerfile)$
args: [--config, .hadolint.yaml]
# Configuration
default_stages: [pre-commit]
fail_fast: false