mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-23 14:34:45 +00:00
Allow max_line_length config
This commit is contained in:
parent
1c40bf81dc
commit
afc5e6cfb0
1 changed files with 9 additions and 0 deletions
|
|
@ -435,6 +435,15 @@ class Config:
|
|||
|
||||
# if lines are longer than x
|
||||
self.max_line_length = 120
|
||||
try:
|
||||
self.max_line_length = int(
|
||||
djlint_settings.get("max_line_length", self.max_line_length)
|
||||
)
|
||||
except ValueError:
|
||||
echo(
|
||||
Fore.RED
|
||||
+ f"Error: Invalid pyproject.toml max_line_length value {djlint_settings['max_line_length']}"
|
||||
)
|
||||
|
||||
self.format_long_attributes = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue