mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
parent
dff02dcdc3
commit
5890161d2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue