Skip to content

Commit

Permalink
passed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherpickering committed Apr 25, 2023
1 parent 16bd8fd commit b5c7bcf
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 38 deletions.
66 changes: 33 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/djlint/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def __init__(
)

self.per_file_ignores = (
(dict((x, y) for x, y in per_file_ignores))
({x: y for x, y in per_file_ignores})
if per_file_ignores
else djlint_settings.get("per-file-ignores", {})
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config/test_djlintrc/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def test_default() -> None:
config = Config(Path(__file__).parent / "blank.html")
config = Config(str(Path(__file__).parent / "blank.html"))

assert config.exclude == ".venv,venv,.tox,.eggs,... | .custom"
assert config.blank_line_after_tag == "load,extends,include"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_config/test_djlintrc_custom/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

def test_custom() -> None:
config = Config(
Path(__file__).parent / "blank.html",
configuration=Path(__file__).parent / ".djlint-cust",
str(Path(__file__).parent / "blank.html"),
configuration=str(Path(__file__).parent / ".djlint-cust"),
)

print(config.exclude)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config/test_pyproject/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def test_profile() -> None:
config = Config(Path(__file__) / "blank.html")
config = Config(str(Path(__file__) / "blank.html"))

assert config.exclude == "foo/excluded.html | excluded.html"
assert config.blank_line_after_tag == "load,extends,include"
Expand Down

0 comments on commit b5c7bcf

Please sign in to comment.