This package provides utilities for ensuring that your code is nicely formatted by using pre-commit
hooks
pretty-format-golang
pretty-format-ini
pretty-format-java
pretty-format-kotlin
pretty-format-rust
pretty-format-toml
pretty-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
.