This package provides utilities for ensuring that your code is nicely formatted by using pre-commit hooks
pretty-format-golangpretty-format-inipretty-format-javapretty-format-kotlinpretty-format-rustpretty-format-tomlpretty-format-yaml
⚠: the list above could be out-of-sync respect the exposed pre-commit hooks.
Please refer to .pre-commit-hooks.yaml for a more updated list.
Add a similar snippet into your .pre-commit-config.yaml file
- repo: [email protected]:macisamuele/language-formatters-pre-commit-hooks
rev: ${LATEST_SHA_OR_VERSION}
hooks:
- id: pretty-format-java
args: [--autofix]
- id: pretty-format-kotlin
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix, --indent, '2']This tool uses tox as main tool to build virtual environments.
To get started will be enough to run make development.
If you have aactivator installed this step will happen automatically.
Contributions are always welcome.
- Fork the project ( http://github.com/macisamuele/language-formatters-pre-commit-hooks/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Add your modifications
- Push to the branch (
git push origin my-new-feature) - Create new Pull Request
language-formatters-pre-commit-hooks is licensed with Apache License version 2.0.