Skip to content

Commit

Permalink
Merge pull request #11078 from JoergAtGithub/qmlformat
Browse files Browse the repository at this point in the history
Precommit qmlformat crash fixes
  • Loading branch information
daschuer committed Nov 19, 2022
2 parents 28e8b3f + 1f5d7fa commit e231c56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ repos:
files: ^CHANGELOG.md$
- id: qmlformat
name: qmlformat
entry: tools/qmlformat.py
entry: python tools/qmlformat.py
pass_filenames: true
language: system
language: python
types: [text]
files: ^.*\.qml$
- id: qmllint
Expand Down
1 change: 1 addition & 0 deletions tools/qmlformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def find_qt_version():


def main(argv=None):
qmlformat_executable = None
# First look up at the most common location for QT6 which is
# usually not in PATH
if sys.platform != "win32":
Expand Down

0 comments on commit e231c56

Please sign in to comment.