diff --git a/docs/conf.py b/docs/conf.py index ede2ceb..e6e54a2 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.4" +release = "0.5.5" version = release # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 5769a04..55e03c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] diff --git a/tests/test_linter.py b/tests/test_linter.py index 9f59d75..7e06e25 100644 --- a/tests/test_linter.py +++ b/tests/test_linter.py @@ -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'', + ) + 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