Skip to content

Commit

Permalink
adjust djlint config to add custom tags used by django-cotton (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Jul 18, 2024
1 parent 9df8a97 commit 3b278a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Changed

- Added `custom_html = "c-\\w+"` to the `djlint` config, to support the HTML tags produced from our custom [Django Cotton](https://django-cotton.com) components.

## [2024.34]

### Changed
Expand Down
1 change: 1 addition & 0 deletions src/django_twc_project/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ django_settings_module = "{{ module_name }}.settings"
blank_line_after_tag = "endblock,endpartialdef,extends,load"
blank_line_before_tag = "block,partialdef"
custom_blocks = "partialdef"
custom_html = "c-\\w+"
ignore = "H031" # Don't require `meta` tag keywords
indent = 2
profile = "django"
Expand Down

0 comments on commit 3b278a6

Please sign in to comment.