Pre-commit hooks to use with https://pre-commit.com/
---
fail_fast: false
repos:
- repo: https://github.com/toddnguyen47/pre-commit-hooks
rev: TODO: insert_latest_version
hooks:
- id: convert-beginning-tabs
args: ["--tab-size", "2"] # defaults to 4 with no args
- id: convert-beginning-spaces
# --tab-size defaults to 4 with no args
# --comment-char is empty string ("") by default
args: ["--tab-size", "2", "--comment-char", "*"]
- id: convert-text-to-html
args: [
"--textfiles",
"file1.txt, file2.txt", # comma-separated list of text files
"--margin",
"10" # OPTIONAL: float value to use as margin ems. Defaults to 10.
]
- id: minify-json
types: ["json"]
- id: prettify-json
args: ["--indent", "2"] # defaults to indenting with 2 spaces
types: ["json"]
Change these files:
.pre-commit-hooks.yaml
setup.cfg
README.md