Skip to content

The only standalone, multiplatform pre-commit hook for formatting QML files using the qmlformat tool with no Qt prerequisites required.

License

Notifications You must be signed in to change notification settings

tomas-krupa/qmlformat-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qmlformat-hook

The only standalone, multiplatform pre-commit hook for formatting QML files using the qmlformat tool with no Qt prerequisites required.

Installation

  1. Add this repository to your .pre-commit-config.yaml:

    - repo: https://github.com/tomas-krupa/qmlformat-hook.git
      rev: 1.0.0
      hooks:
        - id: qmlformat
          files: '.*\.qml$'
          #args: ["--check"]
  2. Install the pre-commit hooks:

    pre-commit install
  3. Make a commit with QML files to see the hook in action.

About

The only standalone, multiplatform pre-commit hook for formatting QML files using the qmlformat tool with no Qt prerequisites required.

Topics

Resources

License

Stars

Watchers

Forks

Languages