From 93dc01f8752b8c54d05251dc8269d4dd5659b04e Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Thu, 7 Oct 2021 16:15:47 +0200 Subject: [PATCH] updated version --- docs/conf.py | 2 +- docs/djlint/changelog.rst | 5 +++++ pyproject.toml | 2 +- src/djlint/rules.yaml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e6e54a2..d5fcce0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,7 @@ project = "djlint" copyright = "2021, Riverside Healthcare" author = "Christopher Pickering" -release = "0.5.5" +release = "0.5.6" version = release # -- General configuration --------------------------------------------------- diff --git a/docs/djlint/changelog.rst b/docs/djlint/changelog.rst index b4ac845..6bbd927 100644 --- a/docs/djlint/changelog.rst +++ b/docs/djlint/changelog.rst @@ -1,6 +1,11 @@ Changelog ========= +0.5.6 +----- +- Added rule H026 to find empty id and class tags +- Bug fixes + 0.5.5 ----- - Consolidated settings and slimmed code diff --git a/pyproject.toml b/pyproject.toml index 55e03c4..7b9cf5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name="djlint" -version="0.5.5" +version="0.5.6" description="HTML Template Linter and Formatter" license="GPL-3.0-or-later" authors=["Christopher Pickering "] diff --git a/src/djlint/rules.yaml b/src/djlint/rules.yaml index 1df0375..7bb1993 100644 --- a/src/djlint/rules.yaml +++ b/src/djlint/rules.yaml @@ -190,4 +190,4 @@ message: Emtpy id and class tags can be removed. flags: re.I patterns: - - <(?:\w+)(?:\s(?:(?:{%[^(?:%}]*?%})|(?:{{[^(?:}})]*?}})|[^<>])*)[(?:id)|(?:class)](?:(?:=(?:\"{2})|(?:'{2}))|\s) + - <(?:\w+)(?:\s(?:(?:{%[^(?:%}]*?%})|(?:{{[^(?:}})]*?}})|[^<>])*)(id|class)(?:(?:=(?:\"{2})|(?:'{2}))|\s)