Skip to content

Commit

Permalink
pre-commit: Add hooks for qmlformat/qmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed May 26, 2021
1 parent 4c883d6 commit d1fea72
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,23 @@ repos:
stages:
- commit
- manual
- id: qmlformat
name: qmlformat
entry: qmlformat -i
pass_filenames: true
require_serial: true
language: system
types: [text]
files: ^.*\.qml$
# Not enabled in commit stage by default, because qmlformat requires Qt
# 5.15 to be installed
stages:
- manual
- id: qmllint
name: qmllint
entry: qmllint
pass_filenames: true
require_serial: true
language: system
types: [text]
files: ^.*\.qml$

0 comments on commit d1fea72

Please sign in to comment.