mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-19 02:21:06 +00:00
Merge branch 'dev' of github.com:Riverside-Healthcare/djLint into dev
This commit is contained in:
commit
6c653093fe
2 changed files with 5 additions and 1 deletions
|
|
@ -191,7 +191,7 @@
|
|||
flags: re.I
|
||||
patterns:
|
||||
- <\w+\b[^(?:{(?:%|{|#))>]*?\b(class|id)\b=(\"\"|'')
|
||||
- <\w+\b[^(?:{(?:%|{|#))>]*?\b(class|id)\b[^=\"]
|
||||
- <\w+\b[^(?:{(?:%|{|#))>-]*?\b(class|id)\b[^=\"-]
|
||||
- rule:
|
||||
name: T027
|
||||
message: Unclosed string found in template syntax.
|
||||
|
|
|
|||
|
|
@ -549,6 +549,10 @@ def test_H026(runner: CliRunner, tmp_file: TextIO) -> None:
|
|||
assert result.exit_code == 0
|
||||
assert "H026" not in result.output
|
||||
|
||||
write_to_file(tmp_file.name, b"<div x-id-y><div id-y><div x-id>")
|
||||
result = runner.invoke(djlint, [tmp_file.name])
|
||||
assert "H026" not in result.output
|
||||
|
||||
|
||||
def test_T027(runner: CliRunner, tmp_file: TextIO) -> None:
|
||||
write_to_file(tmp_file.name, b"{% blah 'asdf %}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue