xml-fmt Using xml-fmt with pre-commit Add it to your .pre-commit-config.yaml: - repo: https://github.com/tox-dev/xml-fmt rev: "" # Use the sha / tag you want to point at hooks: - id: xml-fmt