Skip to content

Commit

Permalink
fix(settings): fixed pyproject loader
Browse files Browse the repository at this point in the history
closes #469
  • Loading branch information
christopherpickering committed Dec 15, 2022
1 parent dff02dc commit 5890161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/djlint/settings.py
Expand Up @@ -116,7 +116,7 @@ def load_project_settings(src: Path, config: Optional[str]) -> Dict:
pyproject_file = find_pyproject(src)

if pyproject_file:
content = tomllib.load(pyproject_file.open("rb"))
content = tomllib.loads(pyproject_file.read_text(encoding="utf8"))
try:
return {**djlint_content, **content["tool"]["djlint"]} # type: ignore
except KeyError:
Expand Down

0 comments on commit 5890161

Please sign in to comment.