updated version. closes #82

This commit is contained in:
Christopher Pickering 2021-10-07 11:42:05 +02:00
parent 9313dae827
commit eb8571b0b4
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
3 changed files with 10 additions and 3 deletions

View file

@ -12,7 +12,7 @@
project = "djlint"
copyright = "2021, Riverside Healthcare"
author = "Christopher Pickering"
release = "0.5.4"
release = "0.5.5"
version = release
# -- General configuration ---------------------------------------------------

View file

@ -7,7 +7,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name="djlint"
version="0.5.4"
version="0.5.5"
description="HTML Template Linter and Formatter"
license="GPL-3.0-or-later"
authors=["Christopher Pickering <cpickering@rhc.net>"]

View file

@ -7,7 +7,7 @@ run::
# for a single test
pytest tests/test_linter.py::test_H024 --cov=src/djlint --cov-branch \
pytest tests/test_linter.py::test_H025 --cov=src/djlint --cov-branch \
--cov-report xml:coverage.xml --cov-report term-missing
"""
@ -355,6 +355,13 @@ def test_H025(runner: CliRunner, tmp_file: TextIO) -> None:
result = runner.invoke(djlint, [tmp_file.name])
assert "H025" not in result.output
write_to_file(
tmp_file.name,
b'<script src="{% static \'notifications/notify.js\' %}" type="text/javascript"></script>',
)
result = runner.invoke(djlint, [tmp_file.name])
assert "H025" not in result.output
def test_rules_not_matched_in_ignored_block(
runner: CliRunner, tmp_file: TextIO