-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (34 loc) · 1.04 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (34 loc) · 1.04 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
repos:
# Built-in hooks for general file cleanup
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
description: Remove trailing whitespace
- id: end-of-file-fixer
description: Ensure files end with newline
- id: mixed-line-ending
description: Normalize line endings
- id: check-merge-conflict
description: Check for merge conflict markers
- id: check-yaml
description: Validate YAML files
- id: check-json
description: Validate JSON files
# Custom QML linting and formatting hooks
- repo: local
hooks:
- id: qml-format
name: QML Format
entry: make format
language: system
files: '\.qml$'
description: Format QML files using qmlformat
pass_filenames: false
- id: qml-lint
name: QML Lint
entry: make lint
language: system
files: '\.qml$'
description: Lint QML files using qmllint
pass_filenames: false