create-caspian-app 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/settings/format.py +0 -17
- package/package.json +1 -1
package/dist/settings/format.py
CHANGED
|
@@ -49,7 +49,6 @@ from __future__ import annotations
|
|
|
49
49
|
import argparse
|
|
50
50
|
import ast
|
|
51
51
|
import re
|
|
52
|
-
import shutil
|
|
53
52
|
import subprocess
|
|
54
53
|
import sys
|
|
55
54
|
import tempfile
|
|
@@ -272,22 +271,6 @@ def find_blocks(path: Path) -> list[Block]:
|
|
|
272
271
|
# ---------------------------------------------------------------------------
|
|
273
272
|
|
|
274
273
|
|
|
275
|
-
def _djlint_available() -> bool:
|
|
276
|
-
return shutil.which("djlint") is not None or _djlint_module()
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
def _djlint_module() -> bool:
|
|
280
|
-
try:
|
|
281
|
-
subprocess.run(
|
|
282
|
-
[sys.executable, "-m", "djlint", "--version"],
|
|
283
|
-
capture_output=True,
|
|
284
|
-
timeout=60,
|
|
285
|
-
)
|
|
286
|
-
return True
|
|
287
|
-
except OSError, subprocess.SubprocessError:
|
|
288
|
-
return False
|
|
289
|
-
|
|
290
|
-
|
|
291
274
|
def djlint_batch(sources: list[str]) -> list[str | None]:
|
|
292
275
|
"""Format many markup fragments in a single djLint run.
|
|
293
276
|
|