Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Preview

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second djlint hook is missing the args parameter. Since this hook is intended for checking (as mentioned in the description), it should include appropriate arguments or a comment explaining its purpose.

Suggested change
- id: djlint
- id: djlint
args: ["--check"]

Copilot uses AI. Check for mistakes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense to be explicit, it's the default value.

```

## 💙 Like it?

Add a badge to your projects `readme.md`:
Expand Down