Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precommit qmlformat crash fixes #11078

Merged
merged 2 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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