Repository navigation
style: use built-in askama profile in djlint - #620
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s HTML/template linting and formatting setup to use djLint’s built-in Askama profile (instead of the Jinja profile), and applies the resulting reformatting to a few Askama templates.
Changes:
- Switch djLint configuration from
profile = "jinja"toprofile = "askama". - Bump the pre-commit djLint hook version to
v1.42.0. - Reformat several templates to match the updated djLint/Askama formatting output (primarily whitespace/line wrapping changes).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
cot/templates/fail.html |
Reflows a paragraph into a single line per the updated formatter/profile. |
cot/templates/error.html |
Condenses {% match %} blocks to align with Askama profile formatting. |
cot/templates/admin/model_edit.html |
Aligns block ending / indentation with formatter output for Askama templates. |
.pre-commit-config.yaml |
Updates the djLint pre-commit hook to v1.42.0. |
.config/djlint.toml |
Switches djLint profile to askama while keeping existing ignores. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
| Project | cot |
| Branch | djlint-askama |
| Testbed | github-ubuntu-latest |
🚨 1 Alert
| Benchmark | Measure Units | View | Benchmark Result (Result Δ%) | Upper Boundary (Limit %) |
|---|---|---|---|---|
| empty_router/empty_router | Latency milliseconds (ms) | 📈 plot 🚷 threshold 🚨 alert (🔔) | 12.99 ms(+80.53%)Baseline: 7.20 ms | 12.44 ms (104.42%) |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| empty_router/empty_router | 📈 view plot 🚷 view threshold 🚨 view alert (🔔) | 12,994.00 µs(+80.53%)Baseline: 7,197.60 µs | 12,444.13 µs (104.42%) |
| json_api/json_api | 📈 view plot 🚷 view threshold | 1,093.70 µs(+0.77%)Baseline: 1,085.34 µs | 1,356.58 µs (80.62%) |
| nested_routers/nested_routers | 📈 view plot 🚷 view threshold | 1,027.40 µs(+1.71%)Baseline: 1,010.17 µs | 1,234.37 µs (83.23%) |
| single_root_route/single_root_route | 📈 view plot 🚷 view threshold | 981.72 µs(+0.86%)Baseline: 973.36 µs | 1,197.97 µs (81.95%) |
| single_root_route_burst/single_root_route_burst | 📈 view plot 🚷 view threshold | 17,238.00 µs(-1.13%)Baseline: 17,435.47 µs | 21,528.99 µs (80.07%) |
seqre
approved these changes
Jul 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change