diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d4c45d80a13..c46dec563b30 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -124,3 +124,14 @@ repos: stages: - commit - manual + - id: xmlformat + name: xmlformat + description: Reformat XML files. + entry: xmlformat --preserve SetVariable,Style,Text,Transform --blanks --selfclose --overwrite + language: python + additional_dependencies: + - git+https://github.com/Holzhaus/xmlformatter.git + types: [text] + files: ^.*\.xml$ + stages: + - manual