diff --git a/README.md b/README.md index 5d04e38db..9af1a796d 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,17 @@ Fix my format! djlint . --extension=html.j2 --reformat ``` +Or use ``pre-commit`` to reformat, then check ! + +```yaml + - repo: https://github.com/djlint/djLint + rev: v1.36.4 # use latest version instead + hooks: + - id: djlint # For an exhaustive list check 'id' in the project's '.pre-commit-hooks.yaml' + args: ["--reformat"] + - id: djlint +``` + ## 💙 Like it? Add a badge to your projects `readme.md`: