Skip to content

james9001/pre-commit-hook-xmlformat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A (very) minimalist wrapper to run xmlformatter with pre-commit

This is a very minimalist wrapper to run xmlformatter as part of a pre-commit configuration.

This hook runs xmlformatter with default arguments against all files with an .xml extension in the present working directory and all subdirectories.

How to use

  • Ensure you have pip3 on your $PATH (usually installed with Python 3)
  • Install the Pip3 package xmlformatter with the following: pip3 install xmlformatter
  • Add the required configuration to your .pre-commit-config.yaml file (see below for example)
  • For first-time use you may want to run your pre-commit hooks against all files: pre-commit run --all-files

Example .pre-commit-config.yaml configuration

repos:
    - repo: https://github.com/james9001/pre-commit-hook-xmlformat
      rev: v1.0.0
      hooks:
          - id: xml-format

License

The code in this repo is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages