forked from prusa3d/Prusa-Firmware-Buddy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
108 lines (108 loc) · 3.56 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
108 lines (108 loc) · 3.56 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
- repo: local
hooks:
- id: clang-format
name: clang-format
description: This hook automatically checks and reformats changed files using clang-format formatter.
entry: './.dependencies/clang-format-16-83817c2f/clang-format'
language: script
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
args: ['-i', '-style=file']
- id: generate-log-components-overview
name: log-components-doc-generate
description: This hook generate an overview of currently defined Log Components.
entry: python utils/logging/generate_overview.py
language: python
language_version: python3
- id: generate-cmake-presets
name: generate-cmake-presets
description: This hook generates CMakePresets.json file based on utils/presets/presets.json
entry: python utils/build.py --generate-cmake-presets
files: (^|/)(.*.json)$
pass_filenames: false
language: python
language_version: python3
- id: generate-log-components-overview
name: log-components-doc-generate
description: This hook generate an overview of currently defined Log Components.
entry: python utils/logging/generate_overview.py
language: python
language_version: python3
- id: python3-requirements
name: python3-requirements
description: Check if requirements.txt matches the buildsystem.
entry: 'utils/check-requirements.py'
language: script
files: requirements\.txt$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v2.4.0'
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
exclude: |
(?x)^(
lib/Catch2/|
lib/CrashCatcher/|
lib/Drivers/|
lib/Marlin/LICENSE|
lib/Marlin/Marlin/Version.h|
lib/Marlin/Marlin/src/(?!
# FILES TO BE FORMATTED
(gcode/)?feature/prusa/|
(gcode/)?feature/input_shaper/|
(gcode/)?feature/pressure_advance/|
(gcode/)?feature/precise_stepping/|
(gcode/)?feature/phase_stepping/|
(gcode/)?feature/motordriver_util\.|
gcode/calibrate/M958\.|
module/prusa/|
module/stepper/indirection\.cpp$|
module/stepper/trinamic\.|
module/stepper\.|
gcode/temperature/M106_M107\.cpp$|
bedlevel/ubl/G29\.cpp$|
$ # LAST LINE OF THE GROUP, DON'T FORGET TO ADD "OR" AT THE END OF YOURS
)|
lib/Middlewares/Third_Party/FatFs/|
lib/Middlewares/Third_Party/FreeRTOS/|
lib/Middlewares/Third_Party/LwIP/|
lib/Middlewares/Third_Party/littlefs/|
lib/Middlewares/Third_Party/mbedtls/|
lib/Prusa-Error-Codes/|
lib/Prusa-Firmware-MMU/|
lib/QR/|
lib/Segger|
lib/TMCStepper/|
lib/cpp-std-extensions/|
lib/esp-serial-flasher/|
lib/heatshrink/|
lib/inih/|
lib/jsmn/|
lib/libcanard/|
lib/libbgcode/|
lib/liblightmodbus/|
lib/libsysbase/|
lib/o1heap/|
lib/printf|
lib/sfl-library|
lib/tinyusb/|
lib/magic_enum/|
lib/SG14/|
src/can/data_types/public_regulated_data_types/|
tests/stubs/FreeRTOS|
tests/unit/common/gcode/.*\.gcode$|
tests/unit/lang/translator/(keys|cs|es|fr|de|pl|it)\.txt$|
$ # LAST LINE OF THE GROUP, DON'T FORGET TO ADD "OR" AT THE END OF YOURS
)