mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-16 00:53:10 +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)
|
pyproject_file = find_pyproject(src)
|
||||||
|
|
||||||
if pyproject_file:
|
if pyproject_file:
|
||||||
content = tomllib.load(pyproject_file.open("rb"))
|
content = tomllib.loads(pyproject_file.read_text(encoding="utf8"))
|
||||||
try:
|
try:
|
||||||
return {**djlint_content, **content["tool"]["djlint"]} # type: ignore
|
return {**djlint_content, **content["tool"]["djlint"]} # type: ignore
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue