@djlint/linux-s390x-gnu 0.0.0-stage → 1.54.0

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.
Files changed (1598) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +4 -2
  3. package/package.json +23 -4
  4. package/python/bin/python3 +0 -0
  5. package/python/lib/python3.14/LICENSE.txt +277 -0
  6. package/python/lib/python3.14/__future__.py +147 -0
  7. package/python/lib/python3.14/__hello__.py +16 -0
  8. package/python/lib/python3.14/__phello__/__init__.py +7 -0
  9. package/python/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  10. package/python/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  11. package/python/lib/python3.14/__phello__/spam.py +7 -0
  12. package/python/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  13. package/python/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  14. package/python/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  15. package/python/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  16. package/python/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  17. package/python/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  18. package/python/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  19. package/python/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  20. package/python/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  21. package/python/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  22. package/python/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  23. package/python/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  24. package/python/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  25. package/python/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  26. package/python/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  27. package/python/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  28. package/python/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  29. package/python/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  30. package/python/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  31. package/python/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  32. package/python/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  33. package/python/lib/python3.14/__pycache__/_sysconfigdata__linux_s390x-linux-gnu.cpython-314.pyc +0 -0
  34. package/python/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  35. package/python/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  36. package/python/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  37. package/python/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  38. package/python/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  39. package/python/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  40. package/python/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  41. package/python/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  42. package/python/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  43. package/python/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  44. package/python/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  45. package/python/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  46. package/python/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  47. package/python/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  48. package/python/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  49. package/python/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  50. package/python/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  51. package/python/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  52. package/python/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  53. package/python/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  54. package/python/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  55. package/python/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  56. package/python/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  57. package/python/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  58. package/python/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  59. package/python/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  60. package/python/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  61. package/python/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  62. package/python/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  63. package/python/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  64. package/python/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  65. package/python/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  66. package/python/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  67. package/python/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  68. package/python/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  69. package/python/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  70. package/python/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  71. package/python/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  72. package/python/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  73. package/python/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  74. package/python/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  75. package/python/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  76. package/python/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  77. package/python/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  78. package/python/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  79. package/python/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  80. package/python/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  81. package/python/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  82. package/python/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  83. package/python/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  84. package/python/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  85. package/python/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  86. package/python/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  87. package/python/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  88. package/python/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  89. package/python/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  90. package/python/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  91. package/python/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  92. package/python/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  93. package/python/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  94. package/python/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  95. package/python/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  96. package/python/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  97. package/python/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  98. package/python/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  99. package/python/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  100. package/python/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  101. package/python/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  102. package/python/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  103. package/python/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  104. package/python/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  105. package/python/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  106. package/python/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  107. package/python/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  108. package/python/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  109. package/python/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  110. package/python/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  111. package/python/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  112. package/python/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  113. package/python/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  114. package/python/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  115. package/python/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  116. package/python/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  117. package/python/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  118. package/python/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  119. package/python/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  120. package/python/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  121. package/python/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  122. package/python/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  123. package/python/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  124. package/python/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  125. package/python/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  126. package/python/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  127. package/python/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  128. package/python/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  129. package/python/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  130. package/python/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  131. package/python/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  132. package/python/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  133. package/python/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  134. package/python/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  135. package/python/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  136. package/python/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  137. package/python/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  138. package/python/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  139. package/python/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  140. package/python/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  141. package/python/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  142. package/python/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  143. package/python/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  144. package/python/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  145. package/python/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  146. package/python/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  147. package/python/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  148. package/python/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  149. package/python/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  150. package/python/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  151. package/python/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  152. package/python/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  153. package/python/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  154. package/python/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  155. package/python/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  156. package/python/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  157. package/python/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  158. package/python/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  159. package/python/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  160. package/python/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  161. package/python/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  162. package/python/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  163. package/python/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  164. package/python/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  165. package/python/lib/python3.14/_aix_support.py +108 -0
  166. package/python/lib/python3.14/_android_support.py +192 -0
  167. package/python/lib/python3.14/_apple_support.py +66 -0
  168. package/python/lib/python3.14/_ast_unparse.py +1161 -0
  169. package/python/lib/python3.14/_collections_abc.py +1172 -0
  170. package/python/lib/python3.14/_colorize.py +355 -0
  171. package/python/lib/python3.14/_compat_pickle.py +251 -0
  172. package/python/lib/python3.14/_ios_support.py +74 -0
  173. package/python/lib/python3.14/_markupbase.py +396 -0
  174. package/python/lib/python3.14/_opcode_metadata.py +371 -0
  175. package/python/lib/python3.14/_osx_support.py +579 -0
  176. package/python/lib/python3.14/_py_abc.py +152 -0
  177. package/python/lib/python3.14/_py_warnings.py +869 -0
  178. package/python/lib/python3.14/_pydatetime.py +2734 -0
  179. package/python/lib/python3.14/_pydecimal.py +6503 -0
  180. package/python/lib/python3.14/_pyio.py +2764 -0
  181. package/python/lib/python3.14/_pylong.py +729 -0
  182. package/python/lib/python3.14/_pyrepl/__init__.py +19 -0
  183. package/python/lib/python3.14/_pyrepl/__main__.py +10 -0
  184. package/python/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  185. package/python/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  186. package/python/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  187. package/python/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  188. package/python/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  189. package/python/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  190. package/python/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  191. package/python/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  192. package/python/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  193. package/python/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  194. package/python/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  195. package/python/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  196. package/python/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  197. package/python/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  198. package/python/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  199. package/python/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  200. package/python/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  201. package/python/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  202. package/python/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  203. package/python/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  204. package/python/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  205. package/python/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  206. package/python/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  207. package/python/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  208. package/python/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  209. package/python/lib/python3.14/_pyrepl/_module_completer.py +426 -0
  210. package/python/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  211. package/python/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  212. package/python/lib/python3.14/_pyrepl/commands.py +505 -0
  213. package/python/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  214. package/python/lib/python3.14/_pyrepl/console.py +229 -0
  215. package/python/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  216. package/python/lib/python3.14/_pyrepl/historical_reader.py +424 -0
  217. package/python/lib/python3.14/_pyrepl/input.py +114 -0
  218. package/python/lib/python3.14/_pyrepl/keymap.py +213 -0
  219. package/python/lib/python3.14/_pyrepl/main.py +58 -0
  220. package/python/lib/python3.14/_pyrepl/mypy.ini +25 -0
  221. package/python/lib/python3.14/_pyrepl/pager.py +175 -0
  222. package/python/lib/python3.14/_pyrepl/reader.py +773 -0
  223. package/python/lib/python3.14/_pyrepl/readline.py +621 -0
  224. package/python/lib/python3.14/_pyrepl/simple_interact.py +186 -0
  225. package/python/lib/python3.14/_pyrepl/terminfo.py +488 -0
  226. package/python/lib/python3.14/_pyrepl/trace.py +34 -0
  227. package/python/lib/python3.14/_pyrepl/types.py +10 -0
  228. package/python/lib/python3.14/_pyrepl/unix_console.py +860 -0
  229. package/python/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  230. package/python/lib/python3.14/_pyrepl/utils.py +391 -0
  231. package/python/lib/python3.14/_pyrepl/windows_console.py +735 -0
  232. package/python/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  233. package/python/lib/python3.14/_sitebuiltins.py +91 -0
  234. package/python/lib/python3.14/_strptime.py +822 -0
  235. package/python/lib/python3.14/_sysconfig_vars__linux_s390x-linux-gnu.json +1166 -0
  236. package/python/lib/python3.14/_sysconfigdata__linux_s390x-linux-gnu.py +1152 -0
  237. package/python/lib/python3.14/_threading_local.py +120 -0
  238. package/python/lib/python3.14/_weakrefset.py +147 -0
  239. package/python/lib/python3.14/abc.py +188 -0
  240. package/python/lib/python3.14/annotationlib.py +1205 -0
  241. package/python/lib/python3.14/antigravity.py +17 -0
  242. package/python/lib/python3.14/argparse.py +2789 -0
  243. package/python/lib/python3.14/ast.py +680 -0
  244. package/python/lib/python3.14/asyncio/__init__.py +74 -0
  245. package/python/lib/python3.14/asyncio/__main__.py +248 -0
  246. package/python/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  247. package/python/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  248. package/python/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  249. package/python/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  250. package/python/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  251. package/python/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  252. package/python/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  253. package/python/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  254. package/python/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  255. package/python/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  256. package/python/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  257. package/python/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  258. package/python/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  259. package/python/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  260. package/python/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  261. package/python/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  262. package/python/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  263. package/python/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  264. package/python/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  265. package/python/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  266. package/python/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  267. package/python/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  268. package/python/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  269. package/python/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  270. package/python/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  271. package/python/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  272. package/python/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  273. package/python/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  274. package/python/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  275. package/python/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  276. package/python/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  277. package/python/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  278. package/python/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  279. package/python/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  280. package/python/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  281. package/python/lib/python3.14/asyncio/base_events.py +2089 -0
  282. package/python/lib/python3.14/asyncio/base_futures.py +67 -0
  283. package/python/lib/python3.14/asyncio/base_subprocess.py +327 -0
  284. package/python/lib/python3.14/asyncio/base_tasks.py +94 -0
  285. package/python/lib/python3.14/asyncio/constants.py +41 -0
  286. package/python/lib/python3.14/asyncio/coroutines.py +118 -0
  287. package/python/lib/python3.14/asyncio/events.py +881 -0
  288. package/python/lib/python3.14/asyncio/exceptions.py +62 -0
  289. package/python/lib/python3.14/asyncio/format_helpers.py +84 -0
  290. package/python/lib/python3.14/asyncio/futures.py +481 -0
  291. package/python/lib/python3.14/asyncio/graph.py +279 -0
  292. package/python/lib/python3.14/asyncio/locks.py +617 -0
  293. package/python/lib/python3.14/asyncio/log.py +7 -0
  294. package/python/lib/python3.14/asyncio/mixins.py +21 -0
  295. package/python/lib/python3.14/asyncio/proactor_events.py +923 -0
  296. package/python/lib/python3.14/asyncio/protocols.py +216 -0
  297. package/python/lib/python3.14/asyncio/queues.py +309 -0
  298. package/python/lib/python3.14/asyncio/runners.py +226 -0
  299. package/python/lib/python3.14/asyncio/selector_events.py +1337 -0
  300. package/python/lib/python3.14/asyncio/sslproto.py +937 -0
  301. package/python/lib/python3.14/asyncio/staggered.py +179 -0
  302. package/python/lib/python3.14/asyncio/streams.py +804 -0
  303. package/python/lib/python3.14/asyncio/subprocess.py +229 -0
  304. package/python/lib/python3.14/asyncio/taskgroups.py +280 -0
  305. package/python/lib/python3.14/asyncio/tasks.py +1145 -0
  306. package/python/lib/python3.14/asyncio/threads.py +26 -0
  307. package/python/lib/python3.14/asyncio/timeouts.py +183 -0
  308. package/python/lib/python3.14/asyncio/tools.py +278 -0
  309. package/python/lib/python3.14/asyncio/transports.py +337 -0
  310. package/python/lib/python3.14/asyncio/trsock.py +98 -0
  311. package/python/lib/python3.14/asyncio/unix_events.py +1031 -0
  312. package/python/lib/python3.14/asyncio/windows_events.py +906 -0
  313. package/python/lib/python3.14/asyncio/windows_utils.py +181 -0
  314. package/python/lib/python3.14/base64.py +625 -0
  315. package/python/lib/python3.14/bdb.py +1214 -0
  316. package/python/lib/python3.14/bisect.py +118 -0
  317. package/python/lib/python3.14/build-details.json +58 -0
  318. package/python/lib/python3.14/bz2.py +352 -0
  319. package/python/lib/python3.14/cProfile.py +207 -0
  320. package/python/lib/python3.14/calendar.py +926 -0
  321. package/python/lib/python3.14/cmd.py +414 -0
  322. package/python/lib/python3.14/code.py +396 -0
  323. package/python/lib/python3.14/codecs.py +1125 -0
  324. package/python/lib/python3.14/codeop.py +154 -0
  325. package/python/lib/python3.14/collections/__init__.py +1612 -0
  326. package/python/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  327. package/python/lib/python3.14/colorsys.py +166 -0
  328. package/python/lib/python3.14/compileall.py +472 -0
  329. package/python/lib/python3.14/compression/__init__.py +0 -0
  330. package/python/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  331. package/python/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  332. package/python/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  333. package/python/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  334. package/python/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  335. package/python/lib/python3.14/compression/_common/__init__.py +0 -0
  336. package/python/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  337. package/python/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  338. package/python/lib/python3.14/compression/_common/_streams.py +162 -0
  339. package/python/lib/python3.14/compression/bz2.py +5 -0
  340. package/python/lib/python3.14/compression/gzip.py +5 -0
  341. package/python/lib/python3.14/compression/lzma.py +5 -0
  342. package/python/lib/python3.14/compression/zlib.py +5 -0
  343. package/python/lib/python3.14/compression/zstd/__init__.py +244 -0
  344. package/python/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  345. package/python/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  346. package/python/lib/python3.14/compression/zstd/_zstdfile.py +347 -0
  347. package/python/lib/python3.14/concurrent/__init__.py +1 -0
  348. package/python/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  349. package/python/lib/python3.14/concurrent/futures/__init__.py +65 -0
  350. package/python/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  351. package/python/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  352. package/python/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  353. package/python/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  354. package/python/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  355. package/python/lib/python3.14/concurrent/futures/_base.py +680 -0
  356. package/python/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  357. package/python/lib/python3.14/concurrent/futures/process.py +1047 -0
  358. package/python/lib/python3.14/concurrent/futures/thread.py +274 -0
  359. package/python/lib/python3.14/concurrent/interpreters/__init__.py +253 -0
  360. package/python/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  361. package/python/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  362. package/python/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  363. package/python/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  364. package/python/lib/python3.14/concurrent/interpreters/_queues.py +290 -0
  365. package/python/lib/python3.14/configparser.py +1426 -0
  366. package/python/lib/python3.14/contextlib.py +814 -0
  367. package/python/lib/python3.14/contextvars.py +8 -0
  368. package/python/lib/python3.14/copy.py +286 -0
  369. package/python/lib/python3.14/copyreg.py +222 -0
  370. package/python/lib/python3.14/csv.py +527 -0
  371. package/python/lib/python3.14/ctypes/__init__.py +686 -0
  372. package/python/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  373. package/python/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  374. package/python/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  375. package/python/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  376. package/python/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  377. package/python/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  378. package/python/lib/python3.14/ctypes/_aix.py +327 -0
  379. package/python/lib/python3.14/ctypes/_endian.py +78 -0
  380. package/python/lib/python3.14/ctypes/_layout.py +330 -0
  381. package/python/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  382. package/python/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  383. package/python/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  384. package/python/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  385. package/python/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  386. package/python/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  387. package/python/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  388. package/python/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  389. package/python/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  390. package/python/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  391. package/python/lib/python3.14/ctypes/macholib/framework.py +42 -0
  392. package/python/lib/python3.14/ctypes/util.py +502 -0
  393. package/python/lib/python3.14/ctypes/wintypes.py +210 -0
  394. package/python/lib/python3.14/curses/__init__.py +101 -0
  395. package/python/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  396. package/python/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  397. package/python/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  398. package/python/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  399. package/python/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  400. package/python/lib/python3.14/curses/ascii.py +99 -0
  401. package/python/lib/python3.14/curses/has_key.py +192 -0
  402. package/python/lib/python3.14/curses/panel.py +6 -0
  403. package/python/lib/python3.14/curses/textpad.py +236 -0
  404. package/python/lib/python3.14/dataclasses.py +1813 -0
  405. package/python/lib/python3.14/datetime.py +13 -0
  406. package/python/lib/python3.14/dbm/__init__.py +194 -0
  407. package/python/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  408. package/python/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  409. package/python/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  410. package/python/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  411. package/python/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  412. package/python/lib/python3.14/dbm/dumb.py +319 -0
  413. package/python/lib/python3.14/dbm/gnu.py +3 -0
  414. package/python/lib/python3.14/dbm/ndbm.py +3 -0
  415. package/python/lib/python3.14/dbm/sqlite3.py +144 -0
  416. package/python/lib/python3.14/decimal.py +109 -0
  417. package/python/lib/python3.14/difflib.py +2066 -0
  418. package/python/lib/python3.14/dis.py +1157 -0
  419. package/python/lib/python3.14/doctest.py +2922 -0
  420. package/python/lib/python3.14/email/__init__.py +61 -0
  421. package/python/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  422. package/python/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  423. package/python/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  424. package/python/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  425. package/python/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  426. package/python/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  427. package/python/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  428. package/python/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  429. package/python/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  430. package/python/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  431. package/python/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  432. package/python/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  433. package/python/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  434. package/python/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  435. package/python/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  436. package/python/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  437. package/python/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  438. package/python/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  439. package/python/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  440. package/python/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  441. package/python/lib/python3.14/email/_encoded_words.py +233 -0
  442. package/python/lib/python3.14/email/_header_value_parser.py +3164 -0
  443. package/python/lib/python3.14/email/_parseaddr.py +563 -0
  444. package/python/lib/python3.14/email/_policybase.py +392 -0
  445. package/python/lib/python3.14/email/architecture.rst +216 -0
  446. package/python/lib/python3.14/email/base64mime.py +115 -0
  447. package/python/lib/python3.14/email/charset.py +396 -0
  448. package/python/lib/python3.14/email/contentmanager.py +254 -0
  449. package/python/lib/python3.14/email/encoders.py +65 -0
  450. package/python/lib/python3.14/email/errors.py +117 -0
  451. package/python/lib/python3.14/email/feedparser.py +536 -0
  452. package/python/lib/python3.14/email/generator.py +530 -0
  453. package/python/lib/python3.14/email/header.py +582 -0
  454. package/python/lib/python3.14/email/headerregistry.py +618 -0
  455. package/python/lib/python3.14/email/iterators.py +68 -0
  456. package/python/lib/python3.14/email/message.py +1217 -0
  457. package/python/lib/python3.14/email/mime/__init__.py +0 -0
  458. package/python/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  459. package/python/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  460. package/python/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  461. package/python/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  462. package/python/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  463. package/python/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  464. package/python/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  465. package/python/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  466. package/python/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  467. package/python/lib/python3.14/email/mime/application.py +37 -0
  468. package/python/lib/python3.14/email/mime/audio.py +97 -0
  469. package/python/lib/python3.14/email/mime/base.py +29 -0
  470. package/python/lib/python3.14/email/mime/image.py +152 -0
  471. package/python/lib/python3.14/email/mime/message.py +33 -0
  472. package/python/lib/python3.14/email/mime/multipart.py +47 -0
  473. package/python/lib/python3.14/email/mime/nonmultipart.py +21 -0
  474. package/python/lib/python3.14/email/mime/text.py +40 -0
  475. package/python/lib/python3.14/email/parser.py +127 -0
  476. package/python/lib/python3.14/email/policy.py +239 -0
  477. package/python/lib/python3.14/email/quoprimime.py +300 -0
  478. package/python/lib/python3.14/email/utils.py +489 -0
  479. package/python/lib/python3.14/encodings/__init__.py +182 -0
  480. package/python/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  481. package/python/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  482. package/python/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  483. package/python/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  484. package/python/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  485. package/python/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  486. package/python/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  487. package/python/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  488. package/python/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  489. package/python/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  490. package/python/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  491. package/python/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  492. package/python/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  493. package/python/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  494. package/python/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  495. package/python/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  496. package/python/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  497. package/python/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  498. package/python/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  499. package/python/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  500. package/python/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  501. package/python/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  502. package/python/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  503. package/python/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  504. package/python/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  505. package/python/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  506. package/python/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  507. package/python/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  508. package/python/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  509. package/python/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  510. package/python/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  511. package/python/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  512. package/python/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  513. package/python/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  514. package/python/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  515. package/python/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  516. package/python/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  517. package/python/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  518. package/python/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  519. package/python/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  520. package/python/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  521. package/python/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  522. package/python/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  523. package/python/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  524. package/python/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  525. package/python/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  526. package/python/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  527. package/python/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  528. package/python/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  529. package/python/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  530. package/python/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  531. package/python/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  532. package/python/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  533. package/python/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  534. package/python/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  535. package/python/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  536. package/python/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  537. package/python/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  538. package/python/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  539. package/python/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  540. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  541. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  542. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  543. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  544. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  545. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  546. package/python/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  547. package/python/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  548. package/python/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  549. package/python/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  550. package/python/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  551. package/python/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  552. package/python/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  553. package/python/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  554. package/python/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  555. package/python/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  556. package/python/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  557. package/python/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  558. package/python/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  559. package/python/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  560. package/python/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  561. package/python/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  562. package/python/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  563. package/python/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  564. package/python/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  565. package/python/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  566. package/python/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  567. package/python/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  568. package/python/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  569. package/python/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  570. package/python/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  571. package/python/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  572. package/python/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  573. package/python/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  574. package/python/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  575. package/python/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  576. package/python/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  577. package/python/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  578. package/python/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  579. package/python/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  580. package/python/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  581. package/python/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  582. package/python/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  583. package/python/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  584. package/python/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  585. package/python/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  586. package/python/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  587. package/python/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  588. package/python/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  589. package/python/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  590. package/python/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  591. package/python/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  592. package/python/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  593. package/python/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  594. package/python/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  595. package/python/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  596. package/python/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  597. package/python/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  598. package/python/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  599. package/python/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  600. package/python/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  601. package/python/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  602. package/python/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  603. package/python/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  604. package/python/lib/python3.14/encodings/aliases.py +568 -0
  605. package/python/lib/python3.14/encodings/ascii.py +50 -0
  606. package/python/lib/python3.14/encodings/base64_codec.py +55 -0
  607. package/python/lib/python3.14/encodings/big5.py +39 -0
  608. package/python/lib/python3.14/encodings/big5hkscs.py +39 -0
  609. package/python/lib/python3.14/encodings/bz2_codec.py +78 -0
  610. package/python/lib/python3.14/encodings/charmap.py +69 -0
  611. package/python/lib/python3.14/encodings/cp037.py +307 -0
  612. package/python/lib/python3.14/encodings/cp1006.py +307 -0
  613. package/python/lib/python3.14/encodings/cp1026.py +307 -0
  614. package/python/lib/python3.14/encodings/cp1125.py +698 -0
  615. package/python/lib/python3.14/encodings/cp1140.py +307 -0
  616. package/python/lib/python3.14/encodings/cp1250.py +307 -0
  617. package/python/lib/python3.14/encodings/cp1251.py +307 -0
  618. package/python/lib/python3.14/encodings/cp1252.py +307 -0
  619. package/python/lib/python3.14/encodings/cp1253.py +307 -0
  620. package/python/lib/python3.14/encodings/cp1254.py +307 -0
  621. package/python/lib/python3.14/encodings/cp1255.py +307 -0
  622. package/python/lib/python3.14/encodings/cp1256.py +307 -0
  623. package/python/lib/python3.14/encodings/cp1257.py +307 -0
  624. package/python/lib/python3.14/encodings/cp1258.py +307 -0
  625. package/python/lib/python3.14/encodings/cp273.py +307 -0
  626. package/python/lib/python3.14/encodings/cp424.py +307 -0
  627. package/python/lib/python3.14/encodings/cp437.py +698 -0
  628. package/python/lib/python3.14/encodings/cp500.py +307 -0
  629. package/python/lib/python3.14/encodings/cp720.py +309 -0
  630. package/python/lib/python3.14/encodings/cp737.py +698 -0
  631. package/python/lib/python3.14/encodings/cp775.py +697 -0
  632. package/python/lib/python3.14/encodings/cp850.py +698 -0
  633. package/python/lib/python3.14/encodings/cp852.py +698 -0
  634. package/python/lib/python3.14/encodings/cp855.py +698 -0
  635. package/python/lib/python3.14/encodings/cp856.py +307 -0
  636. package/python/lib/python3.14/encodings/cp857.py +694 -0
  637. package/python/lib/python3.14/encodings/cp858.py +698 -0
  638. package/python/lib/python3.14/encodings/cp860.py +698 -0
  639. package/python/lib/python3.14/encodings/cp861.py +698 -0
  640. package/python/lib/python3.14/encodings/cp862.py +698 -0
  641. package/python/lib/python3.14/encodings/cp863.py +698 -0
  642. package/python/lib/python3.14/encodings/cp864.py +690 -0
  643. package/python/lib/python3.14/encodings/cp865.py +698 -0
  644. package/python/lib/python3.14/encodings/cp866.py +698 -0
  645. package/python/lib/python3.14/encodings/cp869.py +689 -0
  646. package/python/lib/python3.14/encodings/cp874.py +307 -0
  647. package/python/lib/python3.14/encodings/cp875.py +307 -0
  648. package/python/lib/python3.14/encodings/cp932.py +39 -0
  649. package/python/lib/python3.14/encodings/cp949.py +39 -0
  650. package/python/lib/python3.14/encodings/cp950.py +39 -0
  651. package/python/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  652. package/python/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  653. package/python/lib/python3.14/encodings/euc_jp.py +39 -0
  654. package/python/lib/python3.14/encodings/euc_kr.py +39 -0
  655. package/python/lib/python3.14/encodings/gb18030.py +39 -0
  656. package/python/lib/python3.14/encodings/gb2312.py +39 -0
  657. package/python/lib/python3.14/encodings/gbk.py +39 -0
  658. package/python/lib/python3.14/encodings/hex_codec.py +55 -0
  659. package/python/lib/python3.14/encodings/hp_roman8.py +314 -0
  660. package/python/lib/python3.14/encodings/hz.py +39 -0
  661. package/python/lib/python3.14/encodings/idna.py +387 -0
  662. package/python/lib/python3.14/encodings/iso2022_jp.py +39 -0
  663. package/python/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  664. package/python/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  665. package/python/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  666. package/python/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  667. package/python/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  668. package/python/lib/python3.14/encodings/iso2022_kr.py +39 -0
  669. package/python/lib/python3.14/encodings/iso8859_1.py +307 -0
  670. package/python/lib/python3.14/encodings/iso8859_10.py +307 -0
  671. package/python/lib/python3.14/encodings/iso8859_11.py +307 -0
  672. package/python/lib/python3.14/encodings/iso8859_13.py +307 -0
  673. package/python/lib/python3.14/encodings/iso8859_14.py +307 -0
  674. package/python/lib/python3.14/encodings/iso8859_15.py +307 -0
  675. package/python/lib/python3.14/encodings/iso8859_16.py +307 -0
  676. package/python/lib/python3.14/encodings/iso8859_2.py +307 -0
  677. package/python/lib/python3.14/encodings/iso8859_3.py +307 -0
  678. package/python/lib/python3.14/encodings/iso8859_4.py +307 -0
  679. package/python/lib/python3.14/encodings/iso8859_5.py +307 -0
  680. package/python/lib/python3.14/encodings/iso8859_6.py +307 -0
  681. package/python/lib/python3.14/encodings/iso8859_7.py +307 -0
  682. package/python/lib/python3.14/encodings/iso8859_8.py +307 -0
  683. package/python/lib/python3.14/encodings/iso8859_9.py +307 -0
  684. package/python/lib/python3.14/encodings/johab.py +39 -0
  685. package/python/lib/python3.14/encodings/koi8_r.py +307 -0
  686. package/python/lib/python3.14/encodings/koi8_t.py +308 -0
  687. package/python/lib/python3.14/encodings/koi8_u.py +307 -0
  688. package/python/lib/python3.14/encodings/kz1048.py +307 -0
  689. package/python/lib/python3.14/encodings/latin_1.py +50 -0
  690. package/python/lib/python3.14/encodings/mac_arabic.py +698 -0
  691. package/python/lib/python3.14/encodings/mac_croatian.py +307 -0
  692. package/python/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  693. package/python/lib/python3.14/encodings/mac_farsi.py +307 -0
  694. package/python/lib/python3.14/encodings/mac_greek.py +307 -0
  695. package/python/lib/python3.14/encodings/mac_iceland.py +307 -0
  696. package/python/lib/python3.14/encodings/mac_latin2.py +312 -0
  697. package/python/lib/python3.14/encodings/mac_roman.py +307 -0
  698. package/python/lib/python3.14/encodings/mac_romanian.py +307 -0
  699. package/python/lib/python3.14/encodings/mac_turkish.py +307 -0
  700. package/python/lib/python3.14/encodings/mbcs.py +47 -0
  701. package/python/lib/python3.14/encodings/oem.py +41 -0
  702. package/python/lib/python3.14/encodings/palmos.py +308 -0
  703. package/python/lib/python3.14/encodings/ptcp154.py +312 -0
  704. package/python/lib/python3.14/encodings/punycode.py +253 -0
  705. package/python/lib/python3.14/encodings/quopri_codec.py +56 -0
  706. package/python/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  707. package/python/lib/python3.14/encodings/rot_13.py +113 -0
  708. package/python/lib/python3.14/encodings/shift_jis.py +39 -0
  709. package/python/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  710. package/python/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  711. package/python/lib/python3.14/encodings/tis_620.py +307 -0
  712. package/python/lib/python3.14/encodings/undefined.py +49 -0
  713. package/python/lib/python3.14/encodings/unicode_escape.py +46 -0
  714. package/python/lib/python3.14/encodings/utf_16.py +155 -0
  715. package/python/lib/python3.14/encodings/utf_16_be.py +42 -0
  716. package/python/lib/python3.14/encodings/utf_16_le.py +42 -0
  717. package/python/lib/python3.14/encodings/utf_32.py +150 -0
  718. package/python/lib/python3.14/encodings/utf_32_be.py +37 -0
  719. package/python/lib/python3.14/encodings/utf_32_le.py +37 -0
  720. package/python/lib/python3.14/encodings/utf_7.py +38 -0
  721. package/python/lib/python3.14/encodings/utf_8.py +42 -0
  722. package/python/lib/python3.14/encodings/utf_8_sig.py +130 -0
  723. package/python/lib/python3.14/encodings/uu_codec.py +103 -0
  724. package/python/lib/python3.14/encodings/zlib_codec.py +77 -0
  725. package/python/lib/python3.14/enum.py +2169 -0
  726. package/python/lib/python3.14/filecmp.py +320 -0
  727. package/python/lib/python3.14/fileinput.py +442 -0
  728. package/python/lib/python3.14/fnmatch.py +209 -0
  729. package/python/lib/python3.14/fractions.py +1078 -0
  730. package/python/lib/python3.14/ftplib.py +975 -0
  731. package/python/lib/python3.14/functools.py +1165 -0
  732. package/python/lib/python3.14/genericpath.py +200 -0
  733. package/python/lib/python3.14/getopt.py +232 -0
  734. package/python/lib/python3.14/getpass.py +256 -0
  735. package/python/lib/python3.14/gettext.py +660 -0
  736. package/python/lib/python3.14/glob.py +574 -0
  737. package/python/lib/python3.14/graphlib.py +254 -0
  738. package/python/lib/python3.14/gzip.py +724 -0
  739. package/python/lib/python3.14/hashlib.py +255 -0
  740. package/python/lib/python3.14/heapq.py +611 -0
  741. package/python/lib/python3.14/hmac.py +279 -0
  742. package/python/lib/python3.14/html/__init__.py +132 -0
  743. package/python/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  744. package/python/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  745. package/python/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  746. package/python/lib/python3.14/html/entities.py +2513 -0
  747. package/python/lib/python3.14/html/parser.py +583 -0
  748. package/python/lib/python3.14/http/__init__.py +213 -0
  749. package/python/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  750. package/python/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  751. package/python/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  752. package/python/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  753. package/python/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  754. package/python/lib/python3.14/http/client.py +1598 -0
  755. package/python/lib/python3.14/http/cookiejar.py +2135 -0
  756. package/python/lib/python3.14/http/cookies.py +637 -0
  757. package/python/lib/python3.14/http/server.py +1445 -0
  758. package/python/lib/python3.14/imaplib.py +2090 -0
  759. package/python/lib/python3.14/importlib/__init__.py +136 -0
  760. package/python/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  761. package/python/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  762. package/python/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  763. package/python/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  764. package/python/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  765. package/python/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  766. package/python/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  767. package/python/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  768. package/python/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  769. package/python/lib/python3.14/importlib/_abc.py +39 -0
  770. package/python/lib/python3.14/importlib/_bootstrap.py +1570 -0
  771. package/python/lib/python3.14/importlib/_bootstrap_external.py +1566 -0
  772. package/python/lib/python3.14/importlib/abc.py +234 -0
  773. package/python/lib/python3.14/importlib/machinery.py +50 -0
  774. package/python/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  775. package/python/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  776. package/python/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  777. package/python/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  778. package/python/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  779. package/python/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  780. package/python/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  781. package/python/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  782. package/python/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  783. package/python/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  784. package/python/lib/python3.14/importlib/metadata/_collections.py +30 -0
  785. package/python/lib/python3.14/importlib/metadata/_functools.py +104 -0
  786. package/python/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  787. package/python/lib/python3.14/importlib/metadata/_meta.py +67 -0
  788. package/python/lib/python3.14/importlib/metadata/_text.py +99 -0
  789. package/python/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  790. package/python/lib/python3.14/importlib/readers.py +12 -0
  791. package/python/lib/python3.14/importlib/resources/__init__.py +43 -0
  792. package/python/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  793. package/python/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  794. package/python/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  795. package/python/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  796. package/python/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  797. package/python/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  798. package/python/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  799. package/python/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  800. package/python/lib/python3.14/importlib/resources/_adapters.py +168 -0
  801. package/python/lib/python3.14/importlib/resources/_common.py +211 -0
  802. package/python/lib/python3.14/importlib/resources/_functional.py +81 -0
  803. package/python/lib/python3.14/importlib/resources/_itertools.py +38 -0
  804. package/python/lib/python3.14/importlib/resources/abc.py +173 -0
  805. package/python/lib/python3.14/importlib/resources/readers.py +203 -0
  806. package/python/lib/python3.14/importlib/resources/simple.py +106 -0
  807. package/python/lib/python3.14/importlib/simple.py +14 -0
  808. package/python/lib/python3.14/importlib/util.py +279 -0
  809. package/python/lib/python3.14/inspect.py +3425 -0
  810. package/python/lib/python3.14/io.py +150 -0
  811. package/python/lib/python3.14/ipaddress.py +2421 -0
  812. package/python/lib/python3.14/json/__init__.py +365 -0
  813. package/python/lib/python3.14/json/__main__.py +20 -0
  814. package/python/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  815. package/python/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  816. package/python/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  817. package/python/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  818. package/python/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  819. package/python/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  820. package/python/lib/python3.14/json/decoder.py +364 -0
  821. package/python/lib/python3.14/json/encoder.py +461 -0
  822. package/python/lib/python3.14/json/scanner.py +73 -0
  823. package/python/lib/python3.14/json/tool.py +122 -0
  824. package/python/lib/python3.14/keyword.py +64 -0
  825. package/python/lib/python3.14/lib-dynload/.empty +0 -0
  826. package/python/lib/python3.14/lib-dynload/_dbm.cpython-314-s390x-linux-gnu.so +0 -0
  827. package/python/lib/python3.14/linecache.py +302 -0
  828. package/python/lib/python3.14/locale.py +1992 -0
  829. package/python/lib/python3.14/logging/__init__.py +2335 -0
  830. package/python/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  831. package/python/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  832. package/python/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  833. package/python/lib/python3.14/logging/config.py +1093 -0
  834. package/python/lib/python3.14/logging/handlers.py +1654 -0
  835. package/python/lib/python3.14/lzma.py +364 -0
  836. package/python/lib/python3.14/mailbox.py +2220 -0
  837. package/python/lib/python3.14/mimetypes.py +755 -0
  838. package/python/lib/python3.14/modulefinder.py +671 -0
  839. package/python/lib/python3.14/multiprocessing/__init__.py +37 -0
  840. package/python/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  841. package/python/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  842. package/python/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  843. package/python/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  844. package/python/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  845. package/python/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  846. package/python/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  847. package/python/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  848. package/python/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  849. package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  850. package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  851. package/python/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  852. package/python/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  853. package/python/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  854. package/python/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  855. package/python/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  856. package/python/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  857. package/python/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  858. package/python/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  859. package/python/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  860. package/python/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  861. package/python/lib/python3.14/multiprocessing/connection.py +1233 -0
  862. package/python/lib/python3.14/multiprocessing/context.py +405 -0
  863. package/python/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  864. package/python/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  865. package/python/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  866. package/python/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  867. package/python/lib/python3.14/multiprocessing/forkserver.py +429 -0
  868. package/python/lib/python3.14/multiprocessing/heap.py +337 -0
  869. package/python/lib/python3.14/multiprocessing/managers.py +1438 -0
  870. package/python/lib/python3.14/multiprocessing/pool.py +957 -0
  871. package/python/lib/python3.14/multiprocessing/popen_fork.py +100 -0
  872. package/python/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  873. package/python/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  874. package/python/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  875. package/python/lib/python3.14/multiprocessing/process.py +443 -0
  876. package/python/lib/python3.14/multiprocessing/queues.py +399 -0
  877. package/python/lib/python3.14/multiprocessing/reduction.py +281 -0
  878. package/python/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  879. package/python/lib/python3.14/multiprocessing/resource_tracker.py +495 -0
  880. package/python/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  881. package/python/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  882. package/python/lib/python3.14/multiprocessing/spawn.py +307 -0
  883. package/python/lib/python3.14/multiprocessing/synchronize.py +411 -0
  884. package/python/lib/python3.14/multiprocessing/util.py +619 -0
  885. package/python/lib/python3.14/netrc.py +200 -0
  886. package/python/lib/python3.14/ntpath.py +889 -0
  887. package/python/lib/python3.14/nturl2path.py +82 -0
  888. package/python/lib/python3.14/numbers.py +427 -0
  889. package/python/lib/python3.14/opcode.py +122 -0
  890. package/python/lib/python3.14/operator.py +475 -0
  891. package/python/lib/python3.14/optparse.py +1664 -0
  892. package/python/lib/python3.14/os.py +1191 -0
  893. package/python/lib/python3.14/pathlib/__init__.py +1307 -0
  894. package/python/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  895. package/python/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  896. package/python/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  897. package/python/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  898. package/python/lib/python3.14/pathlib/_local.py +12 -0
  899. package/python/lib/python3.14/pathlib/_os.py +530 -0
  900. package/python/lib/python3.14/pathlib/types.py +430 -0
  901. package/python/lib/python3.14/pdb.py +3682 -0
  902. package/python/lib/python3.14/pickle.py +1925 -0
  903. package/python/lib/python3.14/pickletools.py +2887 -0
  904. package/python/lib/python3.14/pkgutil.py +474 -0
  905. package/python/lib/python3.14/platform.py +1515 -0
  906. package/python/lib/python3.14/plistlib.py +956 -0
  907. package/python/lib/python3.14/poplib.py +477 -0
  908. package/python/lib/python3.14/posixpath.py +592 -0
  909. package/python/lib/python3.14/pprint.py +675 -0
  910. package/python/lib/python3.14/profile.py +615 -0
  911. package/python/lib/python3.14/pstats.py +777 -0
  912. package/python/lib/python3.14/pty.py +182 -0
  913. package/python/lib/python3.14/py_compile.py +212 -0
  914. package/python/lib/python3.14/pyclbr.py +314 -0
  915. package/python/lib/python3.14/pydoc.py +2890 -0
  916. package/python/lib/python3.14/queue.py +385 -0
  917. package/python/lib/python3.14/quopri.py +235 -0
  918. package/python/lib/python3.14/random.py +1087 -0
  919. package/python/lib/python3.14/re/__init__.py +428 -0
  920. package/python/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  921. package/python/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  922. package/python/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  923. package/python/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  924. package/python/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  925. package/python/lib/python3.14/re/_casefix.py +106 -0
  926. package/python/lib/python3.14/re/_compiler.py +782 -0
  927. package/python/lib/python3.14/re/_constants.py +224 -0
  928. package/python/lib/python3.14/re/_parser.py +1066 -0
  929. package/python/lib/python3.14/reprlib.py +230 -0
  930. package/python/lib/python3.14/rlcompleter.py +222 -0
  931. package/python/lib/python3.14/runpy.py +326 -0
  932. package/python/lib/python3.14/sched.py +167 -0
  933. package/python/lib/python3.14/secrets.py +71 -0
  934. package/python/lib/python3.14/selectors.py +603 -0
  935. package/python/lib/python3.14/shelve.py +250 -0
  936. package/python/lib/python3.14/shlex.py +351 -0
  937. package/python/lib/python3.14/shutil.py +1660 -0
  938. package/python/lib/python3.14/signal.py +94 -0
  939. package/python/lib/python3.14/site-packages/_yaml/__init__.py +33 -0
  940. package/python/lib/python3.14/site-packages/_yaml/__pycache__/__init__.cpython-314.pyc +0 -0
  941. package/python/lib/python3.14/site-packages/click/__init__.py +144 -0
  942. package/python/lib/python3.14/site-packages/click/__pycache__/__init__.cpython-314.pyc +0 -0
  943. package/python/lib/python3.14/site-packages/click/__pycache__/_compat.cpython-314.pyc +0 -0
  944. package/python/lib/python3.14/site-packages/click/__pycache__/_termui_impl.cpython-314.pyc +0 -0
  945. package/python/lib/python3.14/site-packages/click/__pycache__/_textwrap.cpython-314.pyc +0 -0
  946. package/python/lib/python3.14/site-packages/click/__pycache__/_utils.cpython-314.pyc +0 -0
  947. package/python/lib/python3.14/site-packages/click/__pycache__/_winconsole.cpython-314.pyc +0 -0
  948. package/python/lib/python3.14/site-packages/click/__pycache__/core.cpython-314.pyc +0 -0
  949. package/python/lib/python3.14/site-packages/click/__pycache__/decorators.cpython-314.pyc +0 -0
  950. package/python/lib/python3.14/site-packages/click/__pycache__/exceptions.cpython-314.pyc +0 -0
  951. package/python/lib/python3.14/site-packages/click/__pycache__/formatting.cpython-314.pyc +0 -0
  952. package/python/lib/python3.14/site-packages/click/__pycache__/globals.cpython-314.pyc +0 -0
  953. package/python/lib/python3.14/site-packages/click/__pycache__/parser.cpython-314.pyc +0 -0
  954. package/python/lib/python3.14/site-packages/click/__pycache__/shell_completion.cpython-314.pyc +0 -0
  955. package/python/lib/python3.14/site-packages/click/__pycache__/termui.cpython-314.pyc +0 -0
  956. package/python/lib/python3.14/site-packages/click/__pycache__/testing.cpython-314.pyc +0 -0
  957. package/python/lib/python3.14/site-packages/click/__pycache__/types.cpython-314.pyc +0 -0
  958. package/python/lib/python3.14/site-packages/click/__pycache__/utils.cpython-314.pyc +0 -0
  959. package/python/lib/python3.14/site-packages/click/_compat.py +590 -0
  960. package/python/lib/python3.14/site-packages/click/_termui_impl.py +970 -0
  961. package/python/lib/python3.14/site-packages/click/_textwrap.py +188 -0
  962. package/python/lib/python3.14/site-packages/click/_utils.py +45 -0
  963. package/python/lib/python3.14/site-packages/click/_winconsole.py +292 -0
  964. package/python/lib/python3.14/site-packages/click/core.py +3825 -0
  965. package/python/lib/python3.14/site-packages/click/decorators.py +625 -0
  966. package/python/lib/python3.14/site-packages/click/exceptions.py +378 -0
  967. package/python/lib/python3.14/site-packages/click/formatting.py +320 -0
  968. package/python/lib/python3.14/site-packages/click/globals.py +67 -0
  969. package/python/lib/python3.14/site-packages/click/parser.py +533 -0
  970. package/python/lib/python3.14/site-packages/click/py.typed +0 -0
  971. package/python/lib/python3.14/site-packages/click/shell_completion.py +796 -0
  972. package/python/lib/python3.14/site-packages/click/termui.py +1024 -0
  973. package/python/lib/python3.14/site-packages/click/testing.py +796 -0
  974. package/python/lib/python3.14/site-packages/click/types.py +1437 -0
  975. package/python/lib/python3.14/site-packages/click/utils.py +676 -0
  976. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
  977. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/METADATA +83 -0
  978. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/RECORD +24 -0
  979. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
  980. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
  981. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
  982. package/python/lib/python3.14/site-packages/cssbeautifier/__init__.py +51 -0
  983. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
  984. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
  985. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/_main.cpython-314.pyc +0 -0
  986. package/python/lib/python3.14/site-packages/cssbeautifier/__version__.py +1 -0
  987. package/python/lib/python3.14/site-packages/cssbeautifier/_main.py +208 -0
  988. package/python/lib/python3.14/site-packages/cssbeautifier/css/__init__.py +1 -0
  989. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-314.pyc +0 -0
  990. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-314.pyc +0 -0
  991. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/options.cpython-314.pyc +0 -0
  992. package/python/lib/python3.14/site-packages/cssbeautifier/css/beautifier.py +559 -0
  993. package/python/lib/python3.14/site-packages/cssbeautifier/css/options.py +60 -0
  994. package/python/lib/python3.14/site-packages/cssbeautifier/tests/__init__.py +1 -0
  995. package/python/lib/python3.14/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  996. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
  997. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
  998. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
  999. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
  1000. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1001. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
  1002. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
  1003. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1004. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1005. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1006. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1007. package/python/lib/python3.14/site-packages/djlint/__init__.py +27 -0
  1008. package/python/lib/python3.14/site-packages/djlint/__main__.py +8 -0
  1009. package/python/lib/python3.14/site-packages/djlint/__pycache__/__init__.cpython-314.pyc +0 -0
  1010. package/python/lib/python3.14/site-packages/djlint/__pycache__/__main__.cpython-314.pyc +0 -0
  1011. package/python/lib/python3.14/site-packages/djlint/__pycache__/_cli.cpython-314.pyc +0 -0
  1012. package/python/lib/python3.14/site-packages/djlint/__pycache__/api.cpython-314.pyc +0 -0
  1013. package/python/lib/python3.14/site-packages/djlint/__pycache__/const.cpython-314.pyc +0 -0
  1014. package/python/lib/python3.14/site-packages/djlint/__pycache__/github_output.cpython-314.pyc +0 -0
  1015. package/python/lib/python3.14/site-packages/djlint/__pycache__/helpers.cpython-314.pyc +0 -0
  1016. package/python/lib/python3.14/site-packages/djlint/__pycache__/lint.cpython-314.pyc +0 -0
  1017. package/python/lib/python3.14/site-packages/djlint/__pycache__/output.cpython-314.pyc +0 -0
  1018. package/python/lib/python3.14/site-packages/djlint/__pycache__/reformat.cpython-314.pyc +0 -0
  1019. package/python/lib/python3.14/site-packages/djlint/__pycache__/sarif_output.cpython-314.pyc +0 -0
  1020. package/python/lib/python3.14/site-packages/djlint/__pycache__/server.cpython-314.pyc +0 -0
  1021. package/python/lib/python3.14/site-packages/djlint/__pycache__/settings.cpython-314.pyc +0 -0
  1022. package/python/lib/python3.14/site-packages/djlint/__pycache__/src.cpython-314.pyc +0 -0
  1023. package/python/lib/python3.14/site-packages/djlint/_cli.py +1006 -0
  1024. package/python/lib/python3.14/site-packages/djlint/api.py +106 -0
  1025. package/python/lib/python3.14/site-packages/djlint/const.py +506 -0
  1026. package/python/lib/python3.14/site-packages/djlint/formatter/__init__.py +0 -0
  1027. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/__init__.cpython-314.pyc +0 -0
  1028. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-314.pyc +0 -0
  1029. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attributes.cpython-314.pyc +0 -0
  1030. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/beautifier.cpython-314.pyc +0 -0
  1031. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-314.pyc +0 -0
  1032. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/compress.cpython-314.pyc +0 -0
  1033. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/condense.cpython-314.pyc +0 -0
  1034. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/css.cpython-314.pyc +0 -0
  1035. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/endblocks.cpython-314.pyc +0 -0
  1036. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/entities.cpython-314.pyc +0 -0
  1037. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/expand.cpython-314.pyc +0 -0
  1038. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/indent.cpython-314.pyc +0 -0
  1039. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/js.cpython-314.pyc +0 -0
  1040. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/load_tags.cpython-314.pyc +0 -0
  1041. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/mako.cpython-314.pyc +0 -0
  1042. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1043. package/python/lib/python3.14/site-packages/djlint/formatter/attribute_values.py +152 -0
  1044. package/python/lib/python3.14/site-packages/djlint/formatter/attributes.py +580 -0
  1045. package/python/lib/python3.14/site-packages/djlint/formatter/beautifier.py +144 -0
  1046. package/python/lib/python3.14/site-packages/djlint/formatter/class_attributes.py +318 -0
  1047. package/python/lib/python3.14/site-packages/djlint/formatter/compress.py +158 -0
  1048. package/python/lib/python3.14/site-packages/djlint/formatter/condense.py +503 -0
  1049. package/python/lib/python3.14/site-packages/djlint/formatter/css.py +28 -0
  1050. package/python/lib/python3.14/site-packages/djlint/formatter/endblocks.py +68 -0
  1051. package/python/lib/python3.14/site-packages/djlint/formatter/entities.py +39 -0
  1052. package/python/lib/python3.14/site-packages/djlint/formatter/expand.py +576 -0
  1053. package/python/lib/python3.14/site-packages/djlint/formatter/indent.py +1239 -0
  1054. package/python/lib/python3.14/site-packages/djlint/formatter/js.py +82 -0
  1055. package/python/lib/python3.14/site-packages/djlint/formatter/load_tags.py +60 -0
  1056. package/python/lib/python3.14/site-packages/djlint/formatter/mako.py +501 -0
  1057. package/python/lib/python3.14/site-packages/djlint/formatter/tokenizer.py +359 -0
  1058. package/python/lib/python3.14/site-packages/djlint/github_output.py +117 -0
  1059. package/python/lib/python3.14/site-packages/djlint/helpers.py +979 -0
  1060. package/python/lib/python3.14/site-packages/djlint/lint.py +246 -0
  1061. package/python/lib/python3.14/site-packages/djlint/output.py +250 -0
  1062. package/python/lib/python3.14/site-packages/djlint/py.typed +0 -0
  1063. package/python/lib/python3.14/site-packages/djlint/reformat.py +130 -0
  1064. package/python/lib/python3.14/site-packages/djlint/rules/D058.py +78 -0
  1065. package/python/lib/python3.14/site-packages/djlint/rules/D059.py +139 -0
  1066. package/python/lib/python3.14/site-packages/djlint/rules/H009.py +54 -0
  1067. package/python/lib/python3.14/site-packages/djlint/rules/H012.py +240 -0
  1068. package/python/lib/python3.14/site-packages/djlint/rules/H014.py +68 -0
  1069. package/python/lib/python3.14/site-packages/djlint/rules/H016.py +83 -0
  1070. package/python/lib/python3.14/site-packages/djlint/rules/H022.py +161 -0
  1071. package/python/lib/python3.14/site-packages/djlint/rules/H025.py +141 -0
  1072. package/python/lib/python3.14/site-packages/djlint/rules/H036.py +183 -0
  1073. package/python/lib/python3.14/site-packages/djlint/rules/H037.py +138 -0
  1074. package/python/lib/python3.14/site-packages/djlint/rules/H041.py +113 -0
  1075. package/python/lib/python3.14/site-packages/djlint/rules/H042.py +199 -0
  1076. package/python/lib/python3.14/site-packages/djlint/rules/H044.py +119 -0
  1077. package/python/lib/python3.14/site-packages/djlint/rules/H047.py +118 -0
  1078. package/python/lib/python3.14/site-packages/djlint/rules/H048.py +82 -0
  1079. package/python/lib/python3.14/site-packages/djlint/rules/H051.py +98 -0
  1080. package/python/lib/python3.14/site-packages/djlint/rules/H053.py +361 -0
  1081. package/python/lib/python3.14/site-packages/djlint/rules/H054.py +264 -0
  1082. package/python/lib/python3.14/site-packages/djlint/rules/H057.py +235 -0
  1083. package/python/lib/python3.14/site-packages/djlint/rules/T001.py +103 -0
  1084. package/python/lib/python3.14/site-packages/djlint/rules/T002.py +75 -0
  1085. package/python/lib/python3.14/site-packages/djlint/rules/T003.py +93 -0
  1086. package/python/lib/python3.14/site-packages/djlint/rules/T027.py +183 -0
  1087. package/python/lib/python3.14/site-packages/djlint/rules/T038.py +152 -0
  1088. package/python/lib/python3.14/site-packages/djlint/rules/T039.py +167 -0
  1089. package/python/lib/python3.14/site-packages/djlint/rules/T041.py +307 -0
  1090. package/python/lib/python3.14/site-packages/djlint/rules/T042.py +219 -0
  1091. package/python/lib/python3.14/site-packages/djlint/rules/T043.py +154 -0
  1092. package/python/lib/python3.14/site-packages/djlint/rules/T044.py +189 -0
  1093. package/python/lib/python3.14/site-packages/djlint/rules/T045.py +281 -0
  1094. package/python/lib/python3.14/site-packages/djlint/rules/__init__.py +0 -0
  1095. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D058.cpython-314.pyc +0 -0
  1096. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D059.cpython-314.pyc +0 -0
  1097. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H009.cpython-314.pyc +0 -0
  1098. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H012.cpython-314.pyc +0 -0
  1099. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H014.cpython-314.pyc +0 -0
  1100. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H016.cpython-314.pyc +0 -0
  1101. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H022.cpython-314.pyc +0 -0
  1102. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H025.cpython-314.pyc +0 -0
  1103. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H036.cpython-314.pyc +0 -0
  1104. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H037.cpython-314.pyc +0 -0
  1105. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H041.cpython-314.pyc +0 -0
  1106. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H042.cpython-314.pyc +0 -0
  1107. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H044.cpython-314.pyc +0 -0
  1108. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H047.cpython-314.pyc +0 -0
  1109. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H048.cpython-314.pyc +0 -0
  1110. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H051.cpython-314.pyc +0 -0
  1111. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H053.cpython-314.pyc +0 -0
  1112. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H054.cpython-314.pyc +0 -0
  1113. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H057.cpython-314.pyc +0 -0
  1114. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T001.cpython-314.pyc +0 -0
  1115. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T002.cpython-314.pyc +0 -0
  1116. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T003.cpython-314.pyc +0 -0
  1117. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T027.cpython-314.pyc +0 -0
  1118. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T038.cpython-314.pyc +0 -0
  1119. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T039.cpython-314.pyc +0 -0
  1120. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T041.cpython-314.pyc +0 -0
  1121. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T042.cpython-314.pyc +0 -0
  1122. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T043.cpython-314.pyc +0 -0
  1123. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T044.cpython-314.pyc +0 -0
  1124. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T045.cpython-314.pyc +0 -0
  1125. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/__init__.cpython-314.pyc +0 -0
  1126. package/python/lib/python3.14/site-packages/djlint/rules.yaml +482 -0
  1127. package/python/lib/python3.14/site-packages/djlint/sarif_output.py +171 -0
  1128. package/python/lib/python3.14/site-packages/djlint/server.py +983 -0
  1129. package/python/lib/python3.14/site-packages/djlint/settings.py +2381 -0
  1130. package/python/lib/python3.14/site-packages/djlint/src.py +192 -0
  1131. package/python/lib/python3.14/site-packages/djlint/types.pyi +20 -0
  1132. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/INSTALLER +1 -0
  1133. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/METADATA +236 -0
  1134. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/RECORD +73 -0
  1135. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/REQUESTED +0 -0
  1136. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/WHEEL +4 -0
  1137. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/entry_points.txt +2 -0
  1138. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE +675 -0
  1139. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1140. package/python/lib/python3.14/site-packages/editorconfig/__init__.py +20 -0
  1141. package/python/lib/python3.14/site-packages/editorconfig/__main__.py +83 -0
  1142. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  1143. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  1144. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/exceptions.cpython-314.pyc +0 -0
  1145. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/fnmatch.cpython-314.pyc +0 -0
  1146. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/handler.cpython-314.pyc +0 -0
  1147. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/ini.cpython-314.pyc +0 -0
  1148. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/version.cpython-314.pyc +0 -0
  1149. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/versiontools.cpython-314.pyc +0 -0
  1150. package/python/lib/python3.14/site-packages/editorconfig/exceptions.py +24 -0
  1151. package/python/lib/python3.14/site-packages/editorconfig/fnmatch.py +224 -0
  1152. package/python/lib/python3.14/site-packages/editorconfig/handler.py +128 -0
  1153. package/python/lib/python3.14/site-packages/editorconfig/ini.py +173 -0
  1154. package/python/lib/python3.14/site-packages/editorconfig/py.typed +0 -0
  1155. package/python/lib/python3.14/site-packages/editorconfig/version.py +1 -0
  1156. package/python/lib/python3.14/site-packages/editorconfig/versiontools.py +36 -0
  1157. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1158. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1159. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1160. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1161. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1162. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1163. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1164. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1165. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1166. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1167. package/python/lib/python3.14/site-packages/jsbeautifier/__init__.py +309 -0
  1168. package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
  1169. package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
  1170. package/python/lib/python3.14/site-packages/jsbeautifier/__version__.py +1 -0
  1171. package/python/lib/python3.14/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1172. package/python/lib/python3.14/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-314.pyc +0 -0
  1173. package/python/lib/python3.14/site-packages/jsbeautifier/core/__init__.py +1 -0
  1174. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-314.pyc +0 -0
  1175. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/directives.cpython-314.pyc +0 -0
  1176. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-314.pyc +0 -0
  1177. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/options.cpython-314.pyc +0 -0
  1178. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/output.cpython-314.pyc +0 -0
  1179. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-314.pyc +0 -0
  1180. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-314.pyc +0 -0
  1181. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/token.cpython-314.pyc +0 -0
  1182. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1183. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-314.pyc +0 -0
  1184. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-314.pyc +0 -0
  1185. package/python/lib/python3.14/site-packages/jsbeautifier/core/directives.py +55 -0
  1186. package/python/lib/python3.14/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1187. package/python/lib/python3.14/site-packages/jsbeautifier/core/options.py +230 -0
  1188. package/python/lib/python3.14/site-packages/jsbeautifier/core/output.py +352 -0
  1189. package/python/lib/python3.14/site-packages/jsbeautifier/core/pattern.py +83 -0
  1190. package/python/lib/python3.14/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1191. package/python/lib/python3.14/site-packages/jsbeautifier/core/token.py +38 -0
  1192. package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1193. package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1194. package/python/lib/python3.14/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1195. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1196. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-314.pyc +0 -0
  1197. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-314.pyc +0 -0
  1198. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-314.pyc +0 -0
  1199. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-314.pyc +0 -0
  1200. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1201. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1202. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1203. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/options.py +102 -0
  1204. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1205. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1206. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  1207. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-314.pyc +0 -0
  1208. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1209. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
  1210. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
  1211. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1212. package/python/lib/python3.14/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1213. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1214. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-314.pyc +0 -0
  1215. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-314.pyc +0 -0
  1216. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-314.pyc +0 -0
  1217. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-314.pyc +0 -0
  1218. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-314.pyc +0 -0
  1219. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-314.pyc +0 -0
  1220. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1221. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1222. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1223. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1224. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1225. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  1226. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-314.pyc +0 -0
  1227. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-314.pyc +0 -0
  1228. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-314.pyc +0 -0
  1229. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-314.pyc +0 -0
  1230. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1231. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1232. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1233. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1234. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1235. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1236. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1237. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1238. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1239. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1240. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1241. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1242. package/python/lib/python3.14/site-packages/json5/__init__.py +30 -0
  1243. package/python/lib/python3.14/site-packages/json5/__main__.py +22 -0
  1244. package/python/lib/python3.14/site-packages/json5/__pycache__/__init__.cpython-314.pyc +0 -0
  1245. package/python/lib/python3.14/site-packages/json5/__pycache__/__main__.cpython-314.pyc +0 -0
  1246. package/python/lib/python3.14/site-packages/json5/__pycache__/host.cpython-314.pyc +0 -0
  1247. package/python/lib/python3.14/site-packages/json5/__pycache__/lib.cpython-314.pyc +0 -0
  1248. package/python/lib/python3.14/site-packages/json5/__pycache__/parser.cpython-314.pyc +0 -0
  1249. package/python/lib/python3.14/site-packages/json5/__pycache__/tool.cpython-314.pyc +0 -0
  1250. package/python/lib/python3.14/site-packages/json5/__pycache__/version.cpython-314.pyc +0 -0
  1251. package/python/lib/python3.14/site-packages/json5/host.py +53 -0
  1252. package/python/lib/python3.14/site-packages/json5/lib.py +1007 -0
  1253. package/python/lib/python3.14/site-packages/json5/parser.py +1376 -0
  1254. package/python/lib/python3.14/site-packages/json5/py.typed +0 -0
  1255. package/python/lib/python3.14/site-packages/json5/tool.py +198 -0
  1256. package/python/lib/python3.14/site-packages/json5/version.py +18 -0
  1257. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1258. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1259. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1260. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1261. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1262. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1263. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1264. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1265. package/python/lib/python3.14/site-packages/pathspec/__init__.py +68 -0
  1266. package/python/lib/python3.14/site-packages/pathspec/__pycache__/__init__.cpython-314.pyc +0 -0
  1267. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_meta.cpython-314.pyc +0 -0
  1268. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_typing.cpython-314.pyc +0 -0
  1269. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_version.cpython-314.pyc +0 -0
  1270. package/python/lib/python3.14/site-packages/pathspec/__pycache__/backend.cpython-314.pyc +0 -0
  1271. package/python/lib/python3.14/site-packages/pathspec/__pycache__/gitignore.cpython-314.pyc +0 -0
  1272. package/python/lib/python3.14/site-packages/pathspec/__pycache__/pathspec.cpython-314.pyc +0 -0
  1273. package/python/lib/python3.14/site-packages/pathspec/__pycache__/pattern.cpython-314.pyc +0 -0
  1274. package/python/lib/python3.14/site-packages/pathspec/__pycache__/util.cpython-314.pyc +0 -0
  1275. package/python/lib/python3.14/site-packages/pathspec/_backends/__init__.py +4 -0
  1276. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/__init__.cpython-314.pyc +0 -0
  1277. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/_utils.cpython-314.pyc +0 -0
  1278. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/agg.cpython-314.pyc +0 -0
  1279. package/python/lib/python3.14/site-packages/pathspec/_backends/_utils.py +45 -0
  1280. package/python/lib/python3.14/site-packages/pathspec/_backends/agg.py +104 -0
  1281. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1282. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-314.pyc +0 -0
  1283. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-314.pyc +0 -0
  1284. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-314.pyc +0 -0
  1285. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-314.pyc +0 -0
  1286. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-314.pyc +0 -0
  1287. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1288. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1289. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1290. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1291. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1292. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-314.pyc +0 -0
  1293. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-314.pyc +0 -0
  1294. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-314.pyc +0 -0
  1295. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-314.pyc +0 -0
  1296. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-314.pyc +0 -0
  1297. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1298. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/base.py +18 -0
  1299. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1300. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1301. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1302. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-314.pyc +0 -0
  1303. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-314.pyc +0 -0
  1304. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-314.pyc +0 -0
  1305. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1306. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1307. package/python/lib/python3.14/site-packages/pathspec/_meta.py +70 -0
  1308. package/python/lib/python3.14/site-packages/pathspec/_typing.py +64 -0
  1309. package/python/lib/python3.14/site-packages/pathspec/_version.py +5 -0
  1310. package/python/lib/python3.14/site-packages/pathspec/backend.py +51 -0
  1311. package/python/lib/python3.14/site-packages/pathspec/gitignore.py +172 -0
  1312. package/python/lib/python3.14/site-packages/pathspec/pathspec.py +527 -0
  1313. package/python/lib/python3.14/site-packages/pathspec/pattern.py +259 -0
  1314. package/python/lib/python3.14/site-packages/pathspec/patterns/__init__.py +12 -0
  1315. package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/__init__.cpython-314.pyc +0 -0
  1316. package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-314.pyc +0 -0
  1317. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1318. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-314.pyc +0 -0
  1319. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-314.pyc +0 -0
  1320. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-314.pyc +0 -0
  1321. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-314.pyc +0 -0
  1322. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1323. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1324. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1325. package/python/lib/python3.14/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1326. package/python/lib/python3.14/site-packages/pathspec/py.typed +1 -0
  1327. package/python/lib/python3.14/site-packages/pathspec/util.py +864 -0
  1328. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1329. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1330. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1331. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1332. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1333. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1334. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/INSTALLER +1 -0
  1335. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/METADATA +59 -0
  1336. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/RECORD +26 -0
  1337. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/REQUESTED +0 -0
  1338. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/WHEEL +7 -0
  1339. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
  1340. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/top_level.txt +2 -0
  1341. package/python/lib/python3.14/site-packages/regex/__init__.py +3 -0
  1342. package/python/lib/python3.14/site-packages/regex/__pycache__/__init__.cpython-314.pyc +0 -0
  1343. package/python/lib/python3.14/site-packages/regex/__pycache__/_main.cpython-314.pyc +0 -0
  1344. package/python/lib/python3.14/site-packages/regex/__pycache__/_regex_core.cpython-314.pyc +0 -0
  1345. package/python/lib/python3.14/site-packages/regex/_main.py +759 -0
  1346. package/python/lib/python3.14/site-packages/regex/_regex.cpython-314-s390x-linux-gnu.so +0 -0
  1347. package/python/lib/python3.14/site-packages/regex/_regex_core.py +4689 -0
  1348. package/python/lib/python3.14/site-packages/regex/tests/__pycache__/test_regex.cpython-314.pyc +0 -0
  1349. package/python/lib/python3.14/site-packages/regex/tests/test_regex.py +4557 -0
  1350. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/INSTALLER +1 -0
  1351. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/METADATA +1060 -0
  1352. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/RECORD +12 -0
  1353. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/REQUESTED +0 -0
  1354. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/WHEEL +7 -0
  1355. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/licenses/LICENSE.txt +208 -0
  1356. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/top_level.txt +1 -0
  1357. package/python/lib/python3.14/site-packages/yaml/__init__.py +390 -0
  1358. package/python/lib/python3.14/site-packages/yaml/__pycache__/__init__.cpython-314.pyc +0 -0
  1359. package/python/lib/python3.14/site-packages/yaml/__pycache__/composer.cpython-314.pyc +0 -0
  1360. package/python/lib/python3.14/site-packages/yaml/__pycache__/constructor.cpython-314.pyc +0 -0
  1361. package/python/lib/python3.14/site-packages/yaml/__pycache__/cyaml.cpython-314.pyc +0 -0
  1362. package/python/lib/python3.14/site-packages/yaml/__pycache__/dumper.cpython-314.pyc +0 -0
  1363. package/python/lib/python3.14/site-packages/yaml/__pycache__/emitter.cpython-314.pyc +0 -0
  1364. package/python/lib/python3.14/site-packages/yaml/__pycache__/error.cpython-314.pyc +0 -0
  1365. package/python/lib/python3.14/site-packages/yaml/__pycache__/events.cpython-314.pyc +0 -0
  1366. package/python/lib/python3.14/site-packages/yaml/__pycache__/loader.cpython-314.pyc +0 -0
  1367. package/python/lib/python3.14/site-packages/yaml/__pycache__/nodes.cpython-314.pyc +0 -0
  1368. package/python/lib/python3.14/site-packages/yaml/__pycache__/parser.cpython-314.pyc +0 -0
  1369. package/python/lib/python3.14/site-packages/yaml/__pycache__/reader.cpython-314.pyc +0 -0
  1370. package/python/lib/python3.14/site-packages/yaml/__pycache__/representer.cpython-314.pyc +0 -0
  1371. package/python/lib/python3.14/site-packages/yaml/__pycache__/resolver.cpython-314.pyc +0 -0
  1372. package/python/lib/python3.14/site-packages/yaml/__pycache__/scanner.cpython-314.pyc +0 -0
  1373. package/python/lib/python3.14/site-packages/yaml/__pycache__/serializer.cpython-314.pyc +0 -0
  1374. package/python/lib/python3.14/site-packages/yaml/__pycache__/tokens.cpython-314.pyc +0 -0
  1375. package/python/lib/python3.14/site-packages/yaml/_yaml.cpython-314-s390x-linux-gnu.so +0 -0
  1376. package/python/lib/python3.14/site-packages/yaml/composer.py +139 -0
  1377. package/python/lib/python3.14/site-packages/yaml/constructor.py +748 -0
  1378. package/python/lib/python3.14/site-packages/yaml/cyaml.py +101 -0
  1379. package/python/lib/python3.14/site-packages/yaml/dumper.py +62 -0
  1380. package/python/lib/python3.14/site-packages/yaml/emitter.py +1137 -0
  1381. package/python/lib/python3.14/site-packages/yaml/error.py +75 -0
  1382. package/python/lib/python3.14/site-packages/yaml/events.py +86 -0
  1383. package/python/lib/python3.14/site-packages/yaml/loader.py +63 -0
  1384. package/python/lib/python3.14/site-packages/yaml/nodes.py +49 -0
  1385. package/python/lib/python3.14/site-packages/yaml/parser.py +589 -0
  1386. package/python/lib/python3.14/site-packages/yaml/reader.py +185 -0
  1387. package/python/lib/python3.14/site-packages/yaml/representer.py +389 -0
  1388. package/python/lib/python3.14/site-packages/yaml/resolver.py +227 -0
  1389. package/python/lib/python3.14/site-packages/yaml/scanner.py +1435 -0
  1390. package/python/lib/python3.14/site-packages/yaml/serializer.py +111 -0
  1391. package/python/lib/python3.14/site-packages/yaml/tokens.py +104 -0
  1392. package/python/lib/python3.14/site.py +779 -0
  1393. package/python/lib/python3.14/smtplib.py +1121 -0
  1394. package/python/lib/python3.14/socket.py +994 -0
  1395. package/python/lib/python3.14/socketserver.py +863 -0
  1396. package/python/lib/python3.14/sqlite3/__init__.py +57 -0
  1397. package/python/lib/python3.14/sqlite3/__main__.py +139 -0
  1398. package/python/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  1399. package/python/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  1400. package/python/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  1401. package/python/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  1402. package/python/lib/python3.14/sqlite3/dbapi2.py +96 -0
  1403. package/python/lib/python3.14/sqlite3/dump.py +118 -0
  1404. package/python/lib/python3.14/sre_compile.py +7 -0
  1405. package/python/lib/python3.14/sre_constants.py +7 -0
  1406. package/python/lib/python3.14/sre_parse.py +7 -0
  1407. package/python/lib/python3.14/ssl.py +1552 -0
  1408. package/python/lib/python3.14/stat.py +212 -0
  1409. package/python/lib/python3.14/statistics.py +1879 -0
  1410. package/python/lib/python3.14/string/__init__.py +332 -0
  1411. package/python/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  1412. package/python/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  1413. package/python/lib/python3.14/string/templatelib.py +33 -0
  1414. package/python/lib/python3.14/stringprep.py +456 -0
  1415. package/python/lib/python3.14/struct.py +15 -0
  1416. package/python/lib/python3.14/subprocess.py +2257 -0
  1417. package/python/lib/python3.14/symtable.py +451 -0
  1418. package/python/lib/python3.14/sysconfig/__init__.py +798 -0
  1419. package/python/lib/python3.14/sysconfig/__main__.py +276 -0
  1420. package/python/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  1421. package/python/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  1422. package/python/lib/python3.14/tabnanny.py +338 -0
  1423. package/python/lib/python3.14/tarfile.py +3228 -0
  1424. package/python/lib/python3.14/tempfile.py +1057 -0
  1425. package/python/lib/python3.14/textwrap.py +475 -0
  1426. package/python/lib/python3.14/this.py +28 -0
  1427. package/python/lib/python3.14/threading.py +1643 -0
  1428. package/python/lib/python3.14/timeit.py +378 -0
  1429. package/python/lib/python3.14/token.py +144 -0
  1430. package/python/lib/python3.14/tokenize.py +598 -0
  1431. package/python/lib/python3.14/tomllib/__init__.py +10 -0
  1432. package/python/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  1433. package/python/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  1434. package/python/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  1435. package/python/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  1436. package/python/lib/python3.14/tomllib/_parser.py +765 -0
  1437. package/python/lib/python3.14/tomllib/_re.py +113 -0
  1438. package/python/lib/python3.14/tomllib/_types.py +10 -0
  1439. package/python/lib/python3.14/tomllib/mypy.ini +15 -0
  1440. package/python/lib/python3.14/trace.py +751 -0
  1441. package/python/lib/python3.14/traceback.py +1751 -0
  1442. package/python/lib/python3.14/tracemalloc.py +560 -0
  1443. package/python/lib/python3.14/tty.py +73 -0
  1444. package/python/lib/python3.14/types.py +345 -0
  1445. package/python/lib/python3.14/typing.py +3866 -0
  1446. package/python/lib/python3.14/unittest/__init__.py +80 -0
  1447. package/python/lib/python3.14/unittest/__main__.py +18 -0
  1448. package/python/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  1449. package/python/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  1450. package/python/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  1451. package/python/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  1452. package/python/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  1453. package/python/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  1454. package/python/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  1455. package/python/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  1456. package/python/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  1457. package/python/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  1458. package/python/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  1459. package/python/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  1460. package/python/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  1461. package/python/lib/python3.14/unittest/_log.py +86 -0
  1462. package/python/lib/python3.14/unittest/async_case.py +158 -0
  1463. package/python/lib/python3.14/unittest/case.py +1628 -0
  1464. package/python/lib/python3.14/unittest/loader.py +491 -0
  1465. package/python/lib/python3.14/unittest/main.py +280 -0
  1466. package/python/lib/python3.14/unittest/mock.py +3208 -0
  1467. package/python/lib/python3.14/unittest/result.py +259 -0
  1468. package/python/lib/python3.14/unittest/runner.py +313 -0
  1469. package/python/lib/python3.14/unittest/signals.py +71 -0
  1470. package/python/lib/python3.14/unittest/suite.py +379 -0
  1471. package/python/lib/python3.14/unittest/util.py +170 -0
  1472. package/python/lib/python3.14/urllib/__init__.py +0 -0
  1473. package/python/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  1474. package/python/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  1475. package/python/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  1476. package/python/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  1477. package/python/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  1478. package/python/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  1479. package/python/lib/python3.14/urllib/error.py +74 -0
  1480. package/python/lib/python3.14/urllib/parse.py +1289 -0
  1481. package/python/lib/python3.14/urllib/request.py +2175 -0
  1482. package/python/lib/python3.14/urllib/response.py +84 -0
  1483. package/python/lib/python3.14/urllib/robotparser.py +363 -0
  1484. package/python/lib/python3.14/uuid.py +1013 -0
  1485. package/python/lib/python3.14/venv/__init__.py +700 -0
  1486. package/python/lib/python3.14/venv/__main__.py +10 -0
  1487. package/python/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  1488. package/python/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  1489. package/python/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  1490. package/python/lib/python3.14/venv/scripts/common/activate +76 -0
  1491. package/python/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  1492. package/python/lib/python3.14/venv/scripts/posix/activate.csh +29 -0
  1493. package/python/lib/python3.14/warnings.py +99 -0
  1494. package/python/lib/python3.14/wave.py +665 -0
  1495. package/python/lib/python3.14/weakref.py +574 -0
  1496. package/python/lib/python3.14/webbrowser.py +763 -0
  1497. package/python/lib/python3.14/wsgiref/__init__.py +25 -0
  1498. package/python/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  1499. package/python/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  1500. package/python/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  1501. package/python/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  1502. package/python/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  1503. package/python/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  1504. package/python/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  1505. package/python/lib/python3.14/wsgiref/handlers.py +575 -0
  1506. package/python/lib/python3.14/wsgiref/headers.py +192 -0
  1507. package/python/lib/python3.14/wsgiref/simple_server.py +161 -0
  1508. package/python/lib/python3.14/wsgiref/types.py +54 -0
  1509. package/python/lib/python3.14/wsgiref/util.py +159 -0
  1510. package/python/lib/python3.14/wsgiref/validate.py +438 -0
  1511. package/python/lib/python3.14/xml/__init__.py +20 -0
  1512. package/python/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  1513. package/python/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  1514. package/python/lib/python3.14/xml/dom/__init__.py +140 -0
  1515. package/python/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  1516. package/python/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  1517. package/python/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  1518. package/python/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  1519. package/python/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  1520. package/python/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  1521. package/python/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  1522. package/python/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  1523. package/python/lib/python3.14/xml/dom/domreg.py +99 -0
  1524. package/python/lib/python3.14/xml/dom/expatbuilder.py +964 -0
  1525. package/python/lib/python3.14/xml/dom/minicompat.py +109 -0
  1526. package/python/lib/python3.14/xml/dom/minidom.py +2027 -0
  1527. package/python/lib/python3.14/xml/dom/pulldom.py +350 -0
  1528. package/python/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  1529. package/python/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  1530. package/python/lib/python3.14/xml/etree/ElementPath.py +430 -0
  1531. package/python/lib/python3.14/xml/etree/ElementTree.py +2093 -0
  1532. package/python/lib/python3.14/xml/etree/__init__.py +33 -0
  1533. package/python/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  1534. package/python/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  1535. package/python/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  1536. package/python/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  1537. package/python/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  1538. package/python/lib/python3.14/xml/etree/cElementTree.py +3 -0
  1539. package/python/lib/python3.14/xml/parsers/__init__.py +8 -0
  1540. package/python/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  1541. package/python/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  1542. package/python/lib/python3.14/xml/parsers/expat.py +8 -0
  1543. package/python/lib/python3.14/xml/sax/__init__.py +109 -0
  1544. package/python/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  1545. package/python/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  1546. package/python/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  1547. package/python/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  1548. package/python/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  1549. package/python/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  1550. package/python/lib/python3.14/xml/sax/_exceptions.py +127 -0
  1551. package/python/lib/python3.14/xml/sax/expatreader.py +454 -0
  1552. package/python/lib/python3.14/xml/sax/handler.py +387 -0
  1553. package/python/lib/python3.14/xml/sax/saxutils.py +370 -0
  1554. package/python/lib/python3.14/xml/sax/xmlreader.py +379 -0
  1555. package/python/lib/python3.14/xmlrpc/__init__.py +1 -0
  1556. package/python/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  1557. package/python/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  1558. package/python/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  1559. package/python/lib/python3.14/xmlrpc/client.py +1503 -0
  1560. package/python/lib/python3.14/xmlrpc/server.py +1003 -0
  1561. package/python/lib/python3.14/zipapp.py +231 -0
  1562. package/python/lib/python3.14/zipfile/__init__.py +2488 -0
  1563. package/python/lib/python3.14/zipfile/__main__.py +4 -0
  1564. package/python/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  1565. package/python/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  1566. package/python/lib/python3.14/zipfile/_path/__init__.py +455 -0
  1567. package/python/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  1568. package/python/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  1569. package/python/lib/python3.14/zipfile/_path/glob.py +113 -0
  1570. package/python/lib/python3.14/zipimport.py +827 -0
  1571. package/python/lib/python3.14/zoneinfo/__init__.py +34 -0
  1572. package/python/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  1573. package/python/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  1574. package/python/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  1575. package/python/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  1576. package/python/lib/python3.14/zoneinfo/_common.py +172 -0
  1577. package/python/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  1578. package/python/lib/python3.14/zoneinfo/_zoneinfo.py +779 -0
  1579. package/python/licenses/LICENSE.bdb.txt +126 -0
  1580. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1581. package/python/licenses/LICENSE.cpython.txt +771 -0
  1582. package/python/licenses/LICENSE.expat.txt +21 -0
  1583. package/python/licenses/LICENSE.libX11.txt +942 -0
  1584. package/python/licenses/LICENSE.libXau.txt +21 -0
  1585. package/python/licenses/LICENSE.libedit.txt +29 -0
  1586. package/python/licenses/LICENSE.libffi.txt +21 -0
  1587. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1588. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1589. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1590. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1591. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1592. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1593. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1594. package/python/licenses/LICENSE.tcl.txt +40 -0
  1595. package/python/licenses/LICENSE.tix.txt +54 -0
  1596. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1597. package/python/licenses/LICENSE.zlib.txt +22 -0
  1598. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2381 @@
1
+ """Settings for reformater."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import copy
6
+ import json
7
+ import tomllib
8
+ from functools import cache
9
+ from itertools import chain
10
+ from pathlib import Path
11
+ from string import Formatter
12
+ from typing import TYPE_CHECKING, final
13
+
14
+ import regex as re
15
+ import yaml
16
+ from click import BadParameter, UsageError, echo, style
17
+
18
+ from djlint.const import (
19
+ HTML_TAG_NAMES,
20
+ HTML_VOID_ELEMENTS,
21
+ QUOTED_ATTRIBUTE_VALUE,
22
+ SKIP_TEMPLATE_TAG,
23
+ TAG_START,
24
+ TEMPLATE_TAG_NAME,
25
+ TEMPLATE_TAG_WHOLE,
26
+ )
27
+ from djlint.helpers import (
28
+ RE_FLAGS_IMSX,
29
+ RE_FLAGS_IMX,
30
+ RE_FLAGS_ISX,
31
+ RE_FLAGS_IX,
32
+ YAML_FRONT_MATTER,
33
+ compile_pattern,
34
+ compile_rule_pattern,
35
+ split_option_list,
36
+ )
37
+ from djlint.lint import build_flags
38
+
39
+ if TYPE_CHECKING:
40
+ from collections.abc import Callable, Iterable, Iterator, Mapping, Set as AbstractSet
41
+ from typing import Any, Final
42
+
43
+ from pathspec import PathSpec, Pattern
44
+ from typing_extensions import TypeVar
45
+
46
+ _TMappingStrAny = TypeVar("_TMappingStrAny", bound=Mapping[str, Any])
47
+
48
+
49
+ _JS_JSON_OBJECT_PATTERN: Final = compile_pattern(r"^\s*\{(?![{%]).*\}\s*$", RE_FLAGS_IX)
50
+ _JS_JSON_STRING_PATTERN: Final = compile_pattern(r'["\']([^"\']*)["\']', RE_FLAGS_IX)
51
+ _JS_JSON_PROPERTY_PATTERN: Final = compile_pattern(
52
+ r"""
53
+ (?:^|[,{]\s*)
54
+ (?:
55
+ [a-zA-Z_$][a-zA-Z0-9_$]*\s*:
56
+ | (?:get|set)\s+[a-zA-Z_$][a-zA-Z0-9_$]*\s*\(
57
+ | (?:async\s+)?\*?\s*[a-zA-Z_$][a-zA-Z0-9_$]*\s*\(
58
+ )
59
+ """,
60
+ RE_FLAGS_IX,
61
+ )
62
+
63
+ DJLINT_TOML_CONFIG_FILES: Final = ("djlint.toml", ".djlint.toml")
64
+
65
+ _QUOTE_STYLES: Final = frozenset(("double", "single"))
66
+
67
+
68
+ def _sets_djlint(pyproject: Path) -> bool:
69
+ """Whether a pyproject.toml has djLint settings.
70
+
71
+ Only a missing or empty [tool.djlint] table doesn't count. One that can't
72
+ be read, or that isn't a table, does, so that its error is what the run
73
+ reports, rather than the settings of a folder above it.
74
+ """
75
+ try:
76
+ settings = load_pyproject_config(pyproject)
77
+ except (AttributeError, OSError, UnicodeDecodeError, tomllib.TOMLDecodeError):
78
+ return True
79
+ return not (isinstance(settings, dict) and not settings)
80
+
81
+
82
+ def find_project_root(src: Path) -> Path:
83
+ """Find the folder whose configuration applies to src.
84
+
85
+ That's the first folder upward with a djlint.toml, a .djlint.toml, a
86
+ .djlintrc, a .djlint_rules.yaml or a pyproject.toml with djLint settings,
87
+ or the root of a repository, which the search never passes. A pyproject.toml without
88
+ djLint settings, as a package in a monorepo has, is passed by, so the
89
+ configuration of the repository still applies to it; with nothing above,
90
+ its folder is the root.
91
+ """
92
+ settingless: Path | None = None
93
+ for directory in (src, *src.parents):
94
+ if any(
95
+ (directory / name).is_file()
96
+ for name in (*DJLINT_TOML_CONFIG_FILES, ".djlintrc", ".djlint_rules.yaml")
97
+ ):
98
+ return directory
99
+
100
+ pyproject = directory / "pyproject.toml"
101
+ if pyproject.is_file():
102
+ if _sets_djlint(pyproject):
103
+ return directory
104
+ settingless = settingless or directory
105
+
106
+ if (directory / ".git").exists() or (directory / ".hg").is_dir():
107
+ return directory
108
+
109
+ return settingless or (src if src.is_dir() else src.parent)
110
+
111
+
112
+ def load_gitignore(root: Path) -> PathSpec[Pattern]:
113
+ """Search upstream for a .gitignore file.
114
+
115
+ pathspec is imported here, as most runs don't read a gitignore and it
116
+ takes as long to import as building a Config.
117
+ """
118
+ from pathspec import PathSpec # noqa: PLC0415
119
+
120
+ try:
121
+ from pathspec.patterns.gitignore import GitIgnorePatternError # noqa: PLC0415
122
+ except ImportError:
123
+ from pathspec.patterns.gitwildmatch import GitWildMatchPatternError as GitIgnorePatternError # type: ignore[attr-defined] # noqa: PLC0415
124
+
125
+ pattern = "gitwildmatch"
126
+ else:
127
+ pattern = "gitignore"
128
+
129
+ gitignore = root / ".gitignore"
130
+ if gitignore.is_file():
131
+ with gitignore.open(encoding="utf-8") as this_file:
132
+ git_lines = this_file.readlines()
133
+ else:
134
+ git_lines = []
135
+
136
+ try:
137
+ return PathSpec.from_lines(pattern, git_lines)
138
+
139
+ except GitIgnorePatternError as e:
140
+ msg = f"Could not parse {gitignore}: {e}"
141
+ raise UsageError(msg) from None
142
+
143
+
144
+ def find_pyproject(root: Path) -> Path | None:
145
+ """Search upstream for a pyproject.toml file."""
146
+ pyproject = root / "pyproject.toml"
147
+
148
+ if pyproject.is_file():
149
+ return pyproject
150
+
151
+ return None
152
+
153
+
154
+ def find_djlint_toml(root: Path) -> Path | None:
155
+ """Search upstream for a djlint.toml or .djlint.toml file."""
156
+ for config_file in DJLINT_TOML_CONFIG_FILES:
157
+ djlint_toml = root / config_file
158
+
159
+ if djlint_toml.is_file():
160
+ return djlint_toml
161
+
162
+ return None
163
+
164
+
165
+ def find_djlintrc(root: Path) -> Path | None:
166
+ """Search upstream for a .djlintrc file."""
167
+ djlintrc = root / ".djlintrc"
168
+
169
+ if djlintrc.is_file():
170
+ return djlintrc
171
+
172
+ return None
173
+
174
+
175
+ def find_djlint_rules(root: Path) -> Path | None:
176
+ """Search upstream for a .djlint_rules.yaml file."""
177
+ rules = root / ".djlint_rules.yaml"
178
+
179
+ if rules.is_file():
180
+ return rules
181
+
182
+ return None
183
+
184
+
185
+ _EDITORCONFIG_PROPERTIES: Final = frozenset(("indent_size", "max_line_length"))
186
+
187
+
188
+ def _closing_bracket(glob: str, start: int) -> int:
189
+ """The index of the `]` that closes the `[` at start, or -1 without one."""
190
+ i = start + 1
191
+ while i < len(glob):
192
+ if glob[i] == "\\":
193
+ i += 2
194
+ continue
195
+ if glob[i] == "]" and i > start + 1:
196
+ return i
197
+ i += 1
198
+ return -1
199
+
200
+
201
+ def _brace(glob: str, start: int) -> tuple[int, bool]:
202
+ """The index of the `}` closing the `{` at start, or -1, and if it has alternatives.
203
+
204
+ Only a `,` of its own makes them: one unescaped, and outside a nested
205
+ `{...}` or a `[...]`.
206
+ """
207
+ depth = 0
208
+ alternatives = False
209
+ i = start
210
+ while i < len(glob):
211
+ char = glob[i]
212
+ if char == "\\":
213
+ i += 2
214
+ continue
215
+ if char == "[" and (close := _closing_bracket(glob, i)) != -1:
216
+ i = close + 1
217
+ continue
218
+ if char == "{":
219
+ depth += 1
220
+ elif char == "}":
221
+ depth -= 1
222
+ if not depth:
223
+ return i, alternatives
224
+ elif char == "," and depth == 1:
225
+ alternatives = True
226
+ i += 1
227
+ return -1, False
228
+
229
+
230
+ def _character_class(body: str) -> str:
231
+ """The regex of the members of a `[...]` class, `!` or `^` first negating it."""
232
+ negated = body[:1] in {"!", "^"}
233
+ members: list[str] = ["^"] if negated else []
234
+ i = 1 if negated else 0
235
+ while i < len(body):
236
+ if body[i] == "\\" and i + 1 < len(body):
237
+ members.append(re.escape(body[i + 1]))
238
+ i += 2
239
+ continue
240
+ # An unescaped `-` makes a range, as in the glob.
241
+ members.append("-" if body[i] == "-" else re.escape(body[i]))
242
+ i += 1
243
+ return f"[{''.join(members)}]"
244
+
245
+
246
+ @final
247
+ class _EditorConfigGlob:
248
+ """An EditorConfig section glob, as the specification reads it.
249
+
250
+ `*` and `?` stay within one folder, `**` crosses them, `[...]` and `[!...]`
251
+ are character classes, `{a,b}` alternatives, which can nest, and `{1..9}` a
252
+ number in that range. A glob without a `/` matches a file's name in any
253
+ folder below the .editorconfig; one with a `/` is matched from the folder
254
+ of that file.
255
+ """
256
+
257
+ __slots__ = ("pattern", "ranges")
258
+
259
+ def __init__(self, glob: str) -> None:
260
+ out: list[str] = []
261
+ # Each {1..9} captures its number, which matches() checks against the
262
+ # range, as the EditorConfig core library does. A number written with
263
+ # a leading zero, such as 060, is never in one.
264
+ ranges: list[tuple[int, int]] = []
265
+ # For each open brace, whether it holds alternatives or is a literal one.
266
+ braces: list[bool] = []
267
+ i = 0
268
+ while i < len(glob):
269
+ char = glob[i]
270
+ if char == "\\" and i + 1 < len(glob):
271
+ out.append(re.escape(glob[i + 1]))
272
+ i += 2
273
+ continue
274
+ if char == "*":
275
+ # A `**/` at the start or after a `/` also stands for no
276
+ # folder, so `pages/**/*.html` takes pages/index.html too.
277
+ if glob.startswith("**/", i) and (i == 0 or glob[i - 1] == "/"):
278
+ out.append("(?:.*/)?")
279
+ i += 3
280
+ continue
281
+ if glob.startswith("**", i):
282
+ out.append(".*")
283
+ i += 2
284
+ continue
285
+ out.append("[^/]*")
286
+ elif char == "?":
287
+ out.append("[^/]")
288
+ elif char == "[" and (close := _closing_bracket(glob, i)) != -1:
289
+ body = glob[i + 1 : close]
290
+ # A class never takes a `/`, so one with a `/` in it is plain
291
+ # text, wildcards and all, as in the core library.
292
+ out.append(
293
+ re.escape(glob[i : close + 1]) if "/" in body else _character_class(body)
294
+ )
295
+ i = close + 1
296
+ continue
297
+ elif char == "{":
298
+ close, alternatives = _brace(glob, i)
299
+ span = glob[i + 1 : close] if close != -1 else ""
300
+ if numbers := re.fullmatch(r"([+-]?[0-9]+)\.\.([+-]?[0-9]+)", span):
301
+ low, high = sorted((int(numbers[1]), int(numbers[2])))
302
+ ranges.append((low, high))
303
+ out.append("([+-]?(?:0|[1-9][0-9]*))")
304
+ i = close + 1
305
+ continue
306
+ braces.append(alternatives)
307
+ out.append("(?:" if braces[-1] else re.escape(char))
308
+ elif char == "}" and braces:
309
+ out.append(")" if braces.pop() else re.escape(char))
310
+ elif char == "," and braces and braces[-1]:
311
+ out.append("|")
312
+ else:
313
+ out.append(re.escape(char))
314
+ i += 1
315
+ pattern = "".join(out)
316
+ pattern = pattern.removeprefix("/") if "/" in glob else f"(?:.*/)?{pattern}"
317
+ try:
318
+ self.pattern = re.compile(pattern)
319
+ except re.error:
320
+ self.pattern = re.compile(r"(?!)")
321
+ self.ranges = tuple(ranges)
322
+
323
+ def matches(self, path: str) -> bool:
324
+ """Whether the glob takes a path, relative to its .editorconfig."""
325
+ found = self.pattern.fullmatch(path)
326
+ return found is not None and all(
327
+ number is None or low <= int(number) <= high
328
+ for number, (low, high) in zip(found.groups(), self.ranges, strict=True)
329
+ )
330
+
331
+
332
+ def _read_editorconfig(
333
+ path: Path,
334
+ ) -> tuple[list[tuple[_EditorConfigGlob, dict[str, int | None]]], bool]:
335
+ """The sections of one .editorconfig with djLint's properties, and its root flag.
336
+
337
+ A property set to `unset` is None, which drops what a file further up or a
338
+ section before it gives it.
339
+ """
340
+ sections: list[tuple[_EditorConfigGlob, dict[str, int | None]]] = []
341
+ is_root = False
342
+ for raw_line in path.read_text(encoding="utf-8", errors="ignore").splitlines():
343
+ line = raw_line.strip()
344
+ if not line or line.startswith(("#", ";")):
345
+ continue
346
+ if line.startswith("[") and line.endswith("]"):
347
+ sections.append((_EditorConfigGlob(line[1:-1]), {}))
348
+ continue
349
+ key, sep, value = line.partition("=")
350
+ key, value = key.strip().lower(), value.strip()
351
+ if not sep:
352
+ continue
353
+ if not sections and key == "root":
354
+ is_root = value.lower() == "true"
355
+ elif sections and key in _EDITORCONFIG_PROPERTIES:
356
+ if value.isdecimal():
357
+ sections[-1][1][key] = int(value)
358
+ elif value.lower() == "unset":
359
+ sections[-1][1][key] = None
360
+ return sections, is_root
361
+
362
+
363
+ def editorconfig_files(
364
+ folder: Path, root: Path
365
+ ) -> tuple[tuple[Path, list[tuple[_EditorConfigGlob, dict[str, int | None]]]], ...]:
366
+ """The .editorconfig files over a folder, nearest first.
367
+
368
+ The search ends at one with `root = true`, and goes no higher than the
369
+ project root.
370
+ """
371
+ folders = [folder, *folder.parents]
372
+ found = []
373
+ if root not in folders:
374
+ # A file outside the project of the run, as with `djlint a b`,
375
+ # searches up to its own project's root.
376
+ root = find_project_root(folder)
377
+ for directory in folders[: folders.index(root) + 1]:
378
+ path = directory / ".editorconfig"
379
+ if path.is_file():
380
+ try:
381
+ sections, is_root = _read_editorconfig(path)
382
+ except OSError:
383
+ # One djLint may not read is left out, as editors leave it out.
384
+ continue
385
+ found.append((directory, sections))
386
+ if is_root:
387
+ break
388
+ return tuple(found)
389
+
390
+
391
+ def editorconfig_for(
392
+ file: Path,
393
+ files: tuple[tuple[Path, list[tuple[_EditorConfigGlob, dict[str, int | None]]]], ...],
394
+ ) -> dict[str, int]:
395
+ """indent_size and max_line_length for a file, as editors read them.
396
+
397
+ The nearest .editorconfig wins, the ones above it fill in what it leaves
398
+ out, and within one file a later section wins over an earlier one.
399
+ """
400
+ result: dict[str, int | None] = {}
401
+ for directory, sections in files:
402
+ try:
403
+ relative = file.relative_to(directory).as_posix()
404
+ except ValueError:
405
+ continue
406
+ own: dict[str, int | None] = {}
407
+ for glob, values in sections:
408
+ if glob.matches(relative):
409
+ own.update(values)
410
+ result = {**own, **result}
411
+ return {key: value for key, value in result.items() if value is not None}
412
+
413
+
414
+ def load_pyproject_config(filepath: Path) -> Any:
415
+ """Load djlint config from pyproject.toml."""
416
+ data = tomllib.loads(filepath.read_text(encoding="utf-8"))
417
+ return data.get("tool", {}).get("djlint", {})
418
+
419
+
420
+ def load_djlint_toml_config(filepath: Path) -> dict[str, Any]:
421
+ """Load djlint config from djlint.toml."""
422
+ return tomllib.loads(filepath.read_text(encoding="utf-8"))
423
+
424
+
425
+ def load_djlintrc_config(filepath: Path) -> Any:
426
+ """Load djlint config from .djlintrc."""
427
+ return json.loads(filepath.read_bytes())
428
+
429
+
430
+ def load_config_file(filepath: Path) -> Any:
431
+ """Load djlint config from a config file."""
432
+ if filepath.name == "pyproject.toml":
433
+ return load_pyproject_config(filepath)
434
+
435
+ if filepath.suffix == ".toml":
436
+ return load_djlint_toml_config(filepath)
437
+
438
+ return load_djlintrc_config(filepath)
439
+
440
+
441
+ def _unreadable_config(path: Path | str, error: Exception) -> UsageError:
442
+ """The error for a configuration file that cannot be read.
443
+
444
+ Running on with the defaults instead would check the templates against
445
+ rules nobody chose, and could pass a run that should fail. The reason is
446
+ kept on one line: a YAML error spans several, and an editor that shows
447
+ the last line of a failure would show only the position.
448
+ """
449
+ reason = " ".join(str(error).split())
450
+ return UsageError(f"Could not read {path}: {reason}")
451
+
452
+
453
+ def _settings_table(content: Any, path: Path | str) -> dict[str, Any]:
454
+ """The settings a file holds, which have to map names to values."""
455
+ if not isinstance(content, dict):
456
+ msg = f"Could not read {path}: its djLint settings are not a table of names and values."
457
+ raise UsageError(msg)
458
+ return content
459
+
460
+
461
+ def _named_settings(config: Path | None) -> dict[str, Any]:
462
+ """Settings from the file `--configuration` names."""
463
+ if not config:
464
+ return {}
465
+
466
+ try:
467
+ content = load_config_file(config)
468
+ except Exception as error:
469
+ raise _unreadable_config(config, error) from None
470
+ return _settings_table(content, config)
471
+
472
+
473
+ def _project_settings(src: Path, warn: Callable[[str], None]) -> tuple[dict[str, Any], str]:
474
+ """Settings from the project's own file, the first one that holds any.
475
+
476
+ The name of that file comes with them, for the messages about a value
477
+ it sets. A djLint file beside the one read is not read, which is worth
478
+ saying: its settings would otherwise do nothing without a word.
479
+ """
480
+ others = [
481
+ path.name
482
+ for path in (*(src / name for name in DJLINT_TOML_CONFIG_FILES), src / ".djlintrc")
483
+ if path.is_file()
484
+ ]
485
+ if pyproject_file := find_pyproject(src):
486
+ try:
487
+ content = load_pyproject_config(pyproject_file)
488
+ except Exception as error:
489
+ raise _unreadable_config(pyproject_file.name, error) from None
490
+ if settings := _settings_table(content, pyproject_file.name):
491
+ for other in others:
492
+ warn(f"{other} is not read, as [tool.djlint] in pyproject.toml comes first.")
493
+ return settings, pyproject_file.name
494
+
495
+ if djlint_toml_file := find_djlint_toml(src):
496
+ try:
497
+ content = load_djlint_toml_config(djlint_toml_file)
498
+ except Exception as error:
499
+ raise _unreadable_config(djlint_toml_file.name, error) from None
500
+ for other in others[others.index(djlint_toml_file.name) + 1 :]:
501
+ warn(f"{other} is not read, as {djlint_toml_file.name} comes first.")
502
+ return _settings_table(content, djlint_toml_file.name), djlint_toml_file.name
503
+
504
+ if djlintrc_file := find_djlintrc(src):
505
+ try:
506
+ content = load_djlintrc_config(djlintrc_file)
507
+ except Exception as error:
508
+ raise _unreadable_config(djlintrc_file.name, error) from None
509
+ return _settings_table(content, djlintrc_file.name), djlintrc_file.name
510
+
511
+ return {}, ""
512
+
513
+
514
+ @cache
515
+ def _warn_once(message: str) -> None:
516
+ """Warn about a setting once per run.
517
+
518
+ The language server builds a Config for every change to a file, and
519
+ repeating the same warning each time would only fill its log.
520
+ """
521
+ echo(style(f"Warning: {message}", fg="yellow"), err=True)
522
+
523
+
524
+ # The settings a configuration file can hold. tests/test_config/test_warnings.py
525
+ # checks that Config reads each of them and nothing else.
526
+ _SETTINGS: Final = frozenset((
527
+ "allow_empty_input",
528
+ "blank_line_after_tag",
529
+ "blank_line_before_tag",
530
+ "close_void_tags",
531
+ "css",
532
+ "custom_blocks",
533
+ "custom_html",
534
+ "exclude",
535
+ "extend_exclude",
536
+ "extension",
537
+ "files",
538
+ "format_attribute_js_json",
539
+ "format_attribute_js_json_min_props",
540
+ "format_attribute_js_json_pattern",
541
+ "format_attribute_template_tags",
542
+ "format_css",
543
+ "format_js",
544
+ "ignore",
545
+ "ignore_blocks",
546
+ "ignore_case",
547
+ "include",
548
+ "indent",
549
+ "js",
550
+ "keep_br_inline",
551
+ "line_break_after_multiline_tag",
552
+ "linter_output_format",
553
+ "max_attribute_length",
554
+ "max_blank_lines",
555
+ "max_line_length",
556
+ "name_endblocks",
557
+ "no_entity_formatting",
558
+ "no_function_formatting",
559
+ "no_indent_inner_html",
560
+ "no_line_after_yaml",
561
+ "no_set_formatting",
562
+ "per-file-ignores",
563
+ "preserve_blank_lines",
564
+ "preserve_class_newlines",
565
+ "preserve_leading_space",
566
+ "profile",
567
+ "quiet",
568
+ "quote_style",
569
+ "require_pragma",
570
+ "single_attribute_per_line",
571
+ "sort_attributes",
572
+ "sort_load_tags",
573
+ "use_gitignore",
574
+ ))
575
+
576
+ # What linter_output_format can name.
577
+ _OUTPUT_FIELDS: Final = frozenset(("code", "end", "filename", "line", "match", "message"))
578
+
579
+
580
+ def _check_settings(
581
+ settings: Mapping[str, Any], sources: Mapping[str, str], warn: Callable[[str], None]
582
+ ) -> None:
583
+ """Warn about settings in a file that djLint ignores or reads unlike they look.
584
+
585
+ A misspelled name would otherwise do nothing without a word.
586
+ """
587
+ for name in settings:
588
+ if name not in _SETTINGS:
589
+ from difflib import get_close_matches # noqa: PLC0415
590
+
591
+ close = get_close_matches(name, _SETTINGS, n=1)
592
+ hint = f" Did you mean {close[0]}?" if close else ""
593
+ warn(f"{sources[name]} sets {name}, which is not a djLint setting.{hint}")
594
+
595
+
596
+ def _format_fields(text: str) -> Iterator[str]:
597
+ """The names a format string looks up, in it and in its format specs.
598
+
599
+ A field such as `code[0]` or `message.upper` looks up `code` or `message`.
600
+ """
601
+ for _, field, spec, _ in Formatter().parse(text):
602
+ if field is not None:
603
+ yield re.split(r"[.\[]", field, maxsplit=1)[0]
604
+ if spec:
605
+ yield from _format_fields(spec)
606
+
607
+
608
+ def _check_output_format(output_format: str) -> None:
609
+ """Refuse a linter_output_format naming a field there is none of.
610
+
611
+ Otherwise the run would fail at its first finding.
612
+ """
613
+ try:
614
+ fields = set(_format_fields(output_format))
615
+ except ValueError as error:
616
+ msg = f"Invalid linter_output_format {output_format!r}: {error}."
617
+ raise UsageError(msg) from None
618
+ if unknown := sorted(fields - _OUTPUT_FIELDS):
619
+ known = ", ".join(f"{{{field}}}" for field in sorted(_OUTPUT_FIELDS))
620
+ msg = (
621
+ f"Invalid linter_output_format {output_format!r}:"
622
+ f" {', '.join(f'{{{field}}}' for field in unknown)} is not one of {known}."
623
+ )
624
+ raise UsageError(msg)
625
+
626
+
627
+ def _check_codes(
628
+ option: str, codes: Iterable[str], known: AbstractSet[str], warn: Callable[[str], None]
629
+ ) -> None:
630
+ """Warn about rule codes no rule has, which an option would quietly skip."""
631
+ for code in codes:
632
+ if code not in known:
633
+ hint = f" Did you mean {code.upper()}?" if code.upper() in known else ""
634
+ warn(f"{option} names {code}, which is not a linter rule.{hint}")
635
+
636
+
637
+ def load_project_settings(
638
+ src: Path,
639
+ config: Path | None,
640
+ *,
641
+ prefer_configuration: bool = False,
642
+ warn: Callable[[str], None] = _warn_once,
643
+ ) -> tuple[dict[str, Any], dict[str, str]]:
644
+ """Load djlint config, and the file each setting was read from.
645
+
646
+ `--configuration` names a global file, so the project's own file wins
647
+ where the two set the same thing. `--prefer-configuration` turns that
648
+ around, which is what naming a file on the command line usually means.
649
+ """
650
+ named = _named_settings(config)
651
+ project, project_file = _project_settings(src, warn)
652
+ named_sources = dict.fromkeys(named, str(config))
653
+ project_sources = dict.fromkeys(project, project_file)
654
+
655
+ if prefer_configuration:
656
+ return {**project, **named}, {**project_sources, **named_sources}
657
+ return {**named, **project}, {**named_sources, **project_sources}
658
+
659
+
660
+ def validate_rules(
661
+ rules: Iterable[_TMappingStrAny], warn: Callable[[str], None] = _warn_once
662
+ ) -> Iterator[_TMappingStrAny]:
663
+ """Yield the rules that have what a rule needs, and warn about the rest."""
664
+ for rule in rules:
665
+ name = rule["rule"].get("name", "undefined")
666
+ problems = [
667
+ message
668
+ for missing, message in (
669
+ ("name" not in rule["rule"], "A rule is missing a name! 😢"),
670
+ (
671
+ "patterns" not in rule["rule"] and "python_module" not in rule["rule"],
672
+ f"Rule {name} is missing a pattern or a python_module! 😢",
673
+ ),
674
+ ("message" not in rule["rule"], f"Rule {name} is missing a message! 😢"),
675
+ )
676
+ if missing
677
+ ]
678
+ for problem in problems:
679
+ warn(problem)
680
+ if not problems:
681
+ yield rule
682
+
683
+
684
+ # libyaml reads the bundled rules six times as fast, and comes with most
685
+ # wheels. A project's rules keep the Python loader: libyaml refuses a tab at
686
+ # the start of a block scalar, which a rules file loaded with before.
687
+ _YAML_LOADER: Final = getattr(yaml, "CSafeLoader", yaml.SafeLoader)
688
+
689
+
690
+ def load_custom_rules(rules_file: Path | None) -> Any:
691
+ """Load custom linter rules from a .djlint_rules.yaml file.
692
+
693
+ An empty file holds no rules.
694
+ """
695
+ if not rules_file:
696
+ return ()
697
+
698
+ try:
699
+ with rules_file.open("rb") as f:
700
+ rules = yaml.safe_load(f)
701
+ except (OSError, yaml.YAMLError) as error:
702
+ raise _unreadable_config(rules_file, error) from None
703
+ if rules is None:
704
+ return ()
705
+ if not isinstance(rules, list):
706
+ msg = f"Could not read {rules_file}: it does not hold a list of rules."
707
+ raise UsageError(msg)
708
+ return rules
709
+
710
+
711
+ def _as_comma_separated(value: Any) -> Any:
712
+ """Allow comma-separated config options to be given as lists."""
713
+ if isinstance(value, (list, tuple)):
714
+ return ",".join(str(x).strip() for x in value)
715
+ return value
716
+
717
+
718
+ def _build_block_alternation(tags: Iterable[str]) -> str:
719
+ return "|".join(sorted(chain.from_iterable((rf"{tag}\b", rf"end{tag}\b") for tag in tags)))
720
+
721
+
722
+ def build_custom_blocks(custom_blocks: str | None) -> str | None:
723
+ """Build regex string for custom template blocks."""
724
+ tags = split_option_list(custom_blocks)
725
+ if not tags:
726
+ return None
727
+ return "|" + _build_block_alternation(tags)
728
+
729
+
730
+ def build_ignore_blocks(ignore_blocks: str | None) -> str | None:
731
+ """Build regex string for template blocks to not format."""
732
+ tags = split_option_list(ignore_blocks)
733
+ if not tags:
734
+ return None
735
+ return _build_block_alternation(tags)
736
+
737
+
738
+ def build_custom_html(custom_html: str | None) -> str | None:
739
+ """Build regex string for custom HTML blocks."""
740
+ tags = split_option_list(custom_html)
741
+ if not tags:
742
+ return None
743
+ return "|" + "|".join(tags)
744
+
745
+
746
+ def _beautifier_config(
747
+ configured: Mapping[str, Any] | None, *, indent_size: int | None
748
+ ) -> dict[str, Any]:
749
+ """The css or js settings, with an indent given on the command line.
750
+
751
+ The option overrides the one key it names, so a `wrap_line_length` or
752
+ any other setting in the config file stays in force beside it.
753
+ """
754
+ settings = dict(configured or {})
755
+ if indent_size:
756
+ settings["indent_size"] = indent_size
757
+ return settings
758
+
759
+
760
+ def _split_patterns(value: str, *, split: bool = True) -> list[str]:
761
+ r"""Split comma-separated verbose regexes, dropping entries with no pattern.
762
+
763
+ A comma inside `{1,2}` or `[,;]`, or escaped as `\,`, belongs to its
764
+ regex, so `report[0-9]{1,2}\.html` stays one pattern. A `#` comment ends
765
+ at the next comma, whatever brackets or backslashes it holds. An entry of
766
+ only whitespace and comments would match every path, so it is dropped.
767
+ With `split` off, the value is one regex, commas and all.
768
+ """
769
+ parts: list[str] = []
770
+ current: list[str] = []
771
+ braces = 0
772
+ in_class = in_comment = has_pattern = False
773
+ i = 0
774
+ while i < len(value):
775
+ char = value[i]
776
+ if split and char == "," and (in_comment or not (braces or in_class)):
777
+ if has_pattern:
778
+ parts.append(_strip_pattern("".join(current)))
779
+ current = []
780
+ braces = 0
781
+ in_comment = has_pattern = False
782
+ i += 1
783
+ continue
784
+ if in_comment:
785
+ in_comment = char != "\n"
786
+ elif char == "\\" and i + 1 < len(value):
787
+ current.append(value[i : i + 2])
788
+ has_pattern = True
789
+ i += 2
790
+ continue
791
+ elif in_class:
792
+ in_class = char != "]"
793
+ elif char == "#":
794
+ in_comment = True
795
+ elif not char.isspace():
796
+ has_pattern = True
797
+ if char == "[":
798
+ in_class = True
799
+ elif char == "{":
800
+ braces += 1
801
+ elif char == "}" and braces:
802
+ braces -= 1
803
+ current.append(char)
804
+ i += 1
805
+ if has_pattern:
806
+ parts.append(_strip_pattern("".join(current)))
807
+ return parts
808
+
809
+
810
+ def _strip_pattern(pattern: str) -> str:
811
+ r"""Strip the whitespace around a verbose regex, but keep a space escaped as `\ `."""
812
+ stripped = pattern.rstrip()
813
+ if len(stripped) < len(pattern) and (len(stripped) - len(stripped.rstrip("\\"))) % 2:
814
+ stripped += pattern[len(stripped)]
815
+ return stripped.lstrip()
816
+
817
+
818
+ def build_exclude(exclude: str | list[Any]) -> list[str]:
819
+ """Split an exclude setting into its regexes.
820
+
821
+ A list from a config file holds one regex per item, commas and all.
822
+ """
823
+ if isinstance(exclude, str):
824
+ return _split_patterns(exclude)
825
+ return [entry for x in exclude for entry in _split_patterns(str(x), split=False)]
826
+
827
+
828
+ def _check_regex(setting: str, pattern: str) -> None:
829
+ """Refuse a setting whose value is no regular expression.
830
+
831
+ exclude, extend_exclude and per-file-ignores take regexes, and a shell glob
832
+ such as *.min.html isn't one; it would otherwise stop the run with a
833
+ traceback.
834
+ """
835
+ try:
836
+ compile_pattern(pattern, re.X)
837
+ except re.error as error:
838
+ msg = (
839
+ f"Invalid {setting} {pattern!r}: {error}. It takes regular expressions,"
840
+ r" so *.min.html is written .*\.min\.html."
841
+ )
842
+ raise UsageError(msg) from None
843
+
844
+
845
+ _CODES_EXCLUDED_BY_PROFILE: Final[dict[str, tuple[str, ...]]] = {
846
+ "html": ("D", "J", "T", "N", "M"),
847
+ "django": ("J", "N", "M"),
848
+ "jinja": ("D", "N", "M"),
849
+ "askama": ("D", "J", "N", "M"),
850
+ "tera": ("D", "J", "N", "M"),
851
+ "liquid": ("D", "J", "N", "M"),
852
+ "mako": ("D", "J", "T", "N", "M"),
853
+ "nunjucks": ("D", "J", "M"),
854
+ "handlebars": ("D", "J", "N"),
855
+ "golang": ("D", "J", "N", "M"),
856
+ "angular": ("D", "J", "H012", "H026"),
857
+ }
858
+
859
+ _PROFILES: Final[frozenset[str]] = frozenset(_CODES_EXCLUDED_BY_PROFILE) | {"all"}
860
+
861
+ _DEFAULT_EXCLUDE: Final = r"""
862
+ __pypackages__
863
+ | _build
864
+ | _site
865
+ | \.bzr
866
+ | \.direnv
867
+ | \.eggs
868
+ | \.git
869
+ | \.git-rewrite
870
+ | \.hg
871
+ | \.nox
872
+ | \.svn
873
+ | \.tox
874
+ | \.venv
875
+ | build
876
+ | dist
877
+ | htmlcov
878
+ | node_modules
879
+ | site-packages
880
+ | venv
881
+ """
882
+
883
+ _DEFAULT_JS_JSON_PATTERN: Final = (
884
+ r"^(?:"
885
+ r"on[a-z]+|"
886
+ r"x-[a-z\-]+|"
887
+ r"@[a-z\-]+|"
888
+ r":[a-z\-]+|"
889
+ r"v-[a-z\-]+|"
890
+ r"\([a-z\-]+\)|"
891
+ r"\[[a-z\-]+\]|"
892
+ r"\*ng[A-Z][a-zA-Z]*|"
893
+ r"[a-z\-]+\.(bind|delegate|call|trigger)"
894
+ r")$"
895
+ )
896
+
897
+ _TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG: Final = r"""
898
+ (?:
899
+ {%[-+]?\s?(?:if|for|asyncAll|asyncEach)[^}]*?%}
900
+ (?:.*?{%[-+]?\s?end(?:if|for|each|all)[^}]*?[-+]?%})+?
901
+ )
902
+ """
903
+
904
+ _ATTRIBUTE_NAME_CHAR: Final = r"""(?:[^\s"'=<>/{}\x00]|/(?!>))"""
905
+
906
+ _ATTRIBUTE_PATTERN: Final = (
907
+ rf"""
908
+ (?:
909
+ (
910
+ (?:
911
+ {_ATTRIBUTE_NAME_CHAR} # a name character
912
+ | (?>{{{{[\s\S]*?}}}})
913
+ (?={_ATTRIBUTE_NAME_CHAR}|[ ]*=) # a leading template variable
914
+ | (?!{{%[-+]?\s*(?:for|asyncAll|asyncEach)\b)
915
+ (?!{{%[-+]?\s*if\b[^}}]*?%}}(?:required|checked){{%[-+]?\s*endif\b[^}}]*?%}})
916
+ (?>{_TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG})
917
+ (?={_ATTRIBUTE_NAME_CHAR}|[ ]*=) # a leading template block
918
+ )
919
+ (?:
920
+ {_ATTRIBUTE_NAME_CHAR} # more name characters
921
+ | (?>{{{{[\s\S]*?}}}}|{{%[\s\S]*?%}}) # or an embedded template tag
922
+ )*
923
+ | required | checked
924
+ )? # attribute name
925
+ (?: [ ]*=[ ]* # followed by "="
926
+ (
927
+ \"[^\"]*? # double quoted attribute
928
+ (?:
929
+ {_TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG} # if or for loop
930
+ | {{{{[\s\S]*?}}}} # template stuff
931
+ | {{%[\s\S]*?%}}
932
+ | [^\"] # anything else
933
+ )*?
934
+ \" # closing quote
935
+ | '[^']*? # single quoted attribute
936
+ (?:
937
+ {_TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG} # if or for loop
938
+ | {{{{[\s\S]*?}}}} # template stuff
939
+ | {{%[\s\S]*?%}}
940
+ | [^'] # anything else
941
+ )*?
942
+ \' # closing quote
943
+ | (?: # or a non-quoted string value. A template tag glued to
944
+ # the rest of the value is part of that one value, not
945
+ # the start of a second attribute.
946
+ {_ATTRIBUTE_NAME_CHAR}
947
+ | (?>{{{{[\s\S]*?}}}}|{{%[\s\S]*?%}}) # embedded template tag
948
+ )+
949
+ | {_TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG} # a non-quoted if statement
950
+
951
+ )
952
+ )? # attribute value
953
+ )
954
+ | ({_TEMPLATE_IF_FOR_BLOCK_WITH_END_TAG}
955
+ """
956
+ r"""
957
+ | (?:\'|\") # allow random trailing quotes
958
+ | {{[\s\S]*?}}
959
+ | {\#[\s\S]*?\#}
960
+ | {%[\s\S]*?%})
961
+ """
962
+ )
963
+
964
+ _ATTRIBUTE_X_PATTERN: Final = compile_pattern(_ATTRIBUTE_PATTERN, re.X)
965
+
966
+ # A second opener means the first never closed, as the tokenizer reads it,
967
+ # so a run of unclosed tags is read once.
968
+ _TEMPLATE_TAGS: Final = r"""
969
+ {{(?:(?!}}|{{).)*}}|{%(?:(?!%}|{%).)*%}
970
+ """
971
+ _TEMPLATE_TAGS_IMX_PATTERN: Final = compile_pattern(_TEMPLATE_TAGS, RE_FLAGS_IMX)
972
+
973
+ _TAG_UNINDENT_LINE_TEMPLATE: Final = r"""
974
+ (?:\{%[-+]?[ ]*(?:BRANCHES))
975
+ | (?:
976
+ \{\{[ ]*
977
+ (
978
+ (?:else|\^)
979
+ [ ]*\}\}
980
+ )
981
+ )
982
+ """
983
+ _TAG_UNINDENT_LINE: Final = _TAG_UNINDENT_LINE_TEMPLATE.replace(
984
+ "BRANCHES", "elif|else|empty|plural"
985
+ )
986
+ _LIQUID_TAG_UNINDENT_LINE: Final = _TAG_UNINDENT_LINE_TEMPLATE.replace(
987
+ "BRANCHES", "elif|elsif|else|empty|plural|when"
988
+ )
989
+
990
+ _BREAK_BEFORE: Final = r"(?<!\n[ \t]*?)"
991
+
992
+ _PROFILE_ONLY_BLOCKS: Final[dict[str, str]] = {
993
+ "tera": "component",
994
+ "liquid": "case,capture,tablerow,form,paginate,highlight",
995
+ }
996
+
997
+ _GOLANG_BLOCK_OPEN: Final = r"|\{\{-?[ ]*(?:if|range|with|block|define)\b"
998
+ _GOLANG_BLOCK_CLOSE: Final = r"|(?:\{\{-?[ ]*end(?![\w]))"
999
+ _GOLANG_BRANCH: Final = r"|(?:\{\{-?[ ]*else(?![\w]))"
1000
+
1001
+ _IGNORED_ATTRIBUTES: Final = frozenset({
1002
+ "href",
1003
+ "action",
1004
+ "data-url",
1005
+ "src",
1006
+ "url",
1007
+ "srcset",
1008
+ "data-src",
1009
+ })
1010
+
1011
+ _INDENT_TEMPLATE_TAGS: Final = r""" (?:if
1012
+ | unless
1013
+ | ifchanged
1014
+ | for
1015
+ | asyncEach
1016
+ | asyncAll
1017
+ | embed
1018
+ | apply
1019
+ | sandbox
1020
+ | guard
1021
+ | ifequal
1022
+ | ifnotequal
1023
+ | block(?!trans|translate)
1024
+ | spaceless
1025
+ | compress
1026
+ | cache
1027
+ | localize
1028
+ | localtime
1029
+ | timezone
1030
+ | addto
1031
+ | language
1032
+ | with
1033
+ | assets
1034
+ | verbatim
1035
+ | autoescape
1036
+ | filter
1037
+ | each
1038
+ | macro
1039
+ | call
1040
+ | raw
1041
+ | blocktrans(?!late)
1042
+ | blocktranslate
1043
+ | partialdef
1044
+ | thumbnail
1045
+ | set(?!(?:(?!%}).)*=)
1046
+ """
1047
+
1048
+ _START_TEMPLATE_TAGS: Final = r"""
1049
+ (?:if
1050
+ | ifchanged
1051
+ | unless
1052
+ | embed
1053
+ | apply
1054
+ | sandbox
1055
+ | guard
1056
+ | ifequal
1057
+ | ifnotequal
1058
+ | for
1059
+ | asyncEach
1060
+ | asyncAll
1061
+ | block(?!trans)
1062
+ | spaceless
1063
+ | compress
1064
+ | cache
1065
+ | localize
1066
+ | localtime
1067
+ | timezone
1068
+ | load
1069
+ | assets
1070
+ | addto
1071
+ | language
1072
+ | with
1073
+ | assets
1074
+ | autoescape
1075
+ | filter
1076
+ | verbatim
1077
+ | each
1078
+ | macro
1079
+ | call
1080
+ | raw
1081
+ | blocktrans(?!late)
1082
+ | blocktranslate
1083
+ | partialdef
1084
+ | thumbnail
1085
+ | set(?!(?:(?!%}).)*=)
1086
+
1087
+ """
1088
+
1089
+ _BREAK_TEMPLATE_TAGS: Final = r"""
1090
+ (?:if
1091
+ | unless
1092
+ | endif
1093
+ | for
1094
+ | endfor
1095
+ | asyncEach
1096
+ | endeach
1097
+ | asyncAll
1098
+ | endall
1099
+ | block(?!trans)
1100
+ | endblock(?!trans)
1101
+ | else
1102
+ | plural
1103
+ | spaceless
1104
+ | endspaceless
1105
+ | compress
1106
+ | endcompress
1107
+ | cache
1108
+ | endcache
1109
+ | localize
1110
+ | endlocalize
1111
+ | localtime
1112
+ | endlocaltime
1113
+ | timezone
1114
+ | endtimezone
1115
+ | load
1116
+ | include
1117
+ | assets
1118
+ | endassets
1119
+ | addto
1120
+ | language
1121
+ | with
1122
+ | endwith
1123
+ | autoescape
1124
+ | endautoescape
1125
+ | apply
1126
+ | endapply
1127
+ | sandbox
1128
+ | endsandbox
1129
+ | guard
1130
+ | endguard
1131
+ | ifequal
1132
+ | endifequal
1133
+ | ifnotequal
1134
+ | endifnotequal
1135
+ | filter
1136
+ | endfilter
1137
+ | elif
1138
+ | resetcycle
1139
+ | verbatim
1140
+ | endverbatim
1141
+ | each
1142
+ | macro
1143
+ | endmacro
1144
+ | raw
1145
+ | endraw
1146
+ | call
1147
+ | endcall
1148
+ | image
1149
+ | blocktrans(?!late)
1150
+ | endblocktrans(?!late)
1151
+ | blocktranslate
1152
+ | endblocktranslate
1153
+ | partialdef
1154
+ | endpartialdef
1155
+ | partial
1156
+ | set(?!(?:(?!%}).)*=)
1157
+ | endset
1158
+ | thumbnail
1159
+ | endthumbnail
1160
+ """
1161
+
1162
+ _BREAK_HTML_TAGS: Final = r"""
1163
+ html
1164
+ | head
1165
+ | body
1166
+ | div
1167
+ # | a # a gets no breaks #177
1168
+ | nav
1169
+ | ul
1170
+ | ol
1171
+ | dl
1172
+ | dd
1173
+ | dt
1174
+ | li
1175
+ | table
1176
+ | thead
1177
+ | tbody
1178
+ | tr
1179
+ | th
1180
+ | td
1181
+ | blockquote
1182
+ | select
1183
+ | form
1184
+ | option
1185
+ | optgroup
1186
+ | fieldset
1187
+ | legend
1188
+ | label
1189
+ | header
1190
+ | cache
1191
+ | main
1192
+ | section
1193
+ | aside
1194
+ | footer
1195
+ | figure
1196
+ | figcaption
1197
+ | video
1198
+ # | span # span gets no breaks #171
1199
+ | p
1200
+ | g
1201
+ | svg
1202
+ | h\d
1203
+ | button
1204
+ | path
1205
+ | picture
1206
+ | script
1207
+ | style
1208
+ | details
1209
+ | summary
1210
+ | """
1211
+
1212
+ _ALWAYS_SELF_CLOSING_HTML_TAGS: Final = "|".join(HTML_VOID_ELEMENTS)
1213
+
1214
+ _OPTIONAL_SINGLE_LINE_HTML_TAGS: Final = r"""
1215
+ button
1216
+ | a
1217
+ | h1
1218
+ | h2
1219
+ | h3
1220
+ | h4
1221
+ | h5
1222
+ | h6
1223
+ | td
1224
+ | th
1225
+ | strong
1226
+ | small
1227
+ | em
1228
+ | icon
1229
+ | span
1230
+ | title
1231
+ | link
1232
+ | path
1233
+ | label
1234
+ | div
1235
+ | li
1236
+ | script
1237
+ | style
1238
+ | head
1239
+ | body
1240
+ | p
1241
+ | select
1242
+ | article
1243
+ | option
1244
+ | legend
1245
+ | summary
1246
+ | dt
1247
+ | figcaption
1248
+ | tr
1249
+ | li
1250
+ """
1251
+
1252
+ _OPTIONAL_SINGLE_LINE_TEMPLATE_TAGS: Final = r"""
1253
+ if
1254
+ | for
1255
+ | unless
1256
+ | block
1257
+ | with
1258
+ | asyncEach
1259
+ | asyncAll
1260
+ """
1261
+
1262
+ _IGNORED_INLINE_BLOCKS_TAIL: Final = r"""
1263
+ <!--.*?-->
1264
+ | {\*.*?\*}
1265
+ | (?<!\{){\#(?!.*djlint:[ ]*(?:off|on)\b).*?\#}
1266
+ | <\?php.*?\?>
1267
+ | <%(?!\w).*?%>
1268
+ | {%[ ]*comment\b(?:(?!%}).)*?%}(?:(?!djlint:(?:off|on)).)*?{%[ ]*endcomment[ ]*%}
1269
+ | {%[ ]*filter\b(?:(?!%}).)*?%}.*?{%[ ]*endfilter[ ]*%}
1270
+ # liquid/shopify blocks whose bodies are json, css or js
1271
+ | {%[-+]?[ ]*(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1272
+ .*?
1273
+ {%[-+]?[ ]*end(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1274
+ | {%[ ]*blocktrans(?:late)?\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktrans(?:late)?[ ]*%}
1275
+ """
1276
+
1277
+
1278
+ def _build_ignored_inline_blocks(*, for_linting: bool) -> str:
1279
+ """Build the alternation of one-line blocks djLint leaves alone.
1280
+
1281
+ A block closed on the line that opens it leaves nothing open, so each
1282
+ span runs through the closing tag. Linting leaves the raw text
1283
+ elements out, so a rule can still see the attributes on the opening
1284
+ tag; their bodies are skipped by the multi-line spans either way.
1285
+ """
1286
+ if for_linting:
1287
+ return _IGNORED_INLINE_BLOCKS_TAIL
1288
+
1289
+ return (
1290
+ r"""
1291
+ <script.*?\</script>
1292
+ | <style.*?\</style>
1293
+ | <pre.*?\</pre>
1294
+ | <textarea.*?\</textarea>
1295
+ |"""
1296
+ + _IGNORED_INLINE_BLOCKS_TAIL
1297
+ )
1298
+
1299
+
1300
+ _IGNORED_INLINE_BLOCKS: Final = _build_ignored_inline_blocks(for_linting=False)
1301
+ _LINT_IGNORED_INLINE_BLOCKS: Final = _build_ignored_inline_blocks(for_linting=True)
1302
+
1303
+ _IGNORED_BLOCKS_TAIL: Final = (
1304
+ r"""
1305
+ # html comment
1306
+ | <!--\s*djlint\:off\s*-->(?:(?!<!--\s*djlint\:on\s*-->).)*
1307
+ # django/jinja/nunjucks
1308
+ | {\#\s*djlint\:\s*off\s*\#}(?:(?!{\#\s*djlint\:\s*on\s*\#}).)*
1309
+ | {%\s*comment\s*%\}\s*djlint\:off\s*\{%\s*endcomment\s*%\}(?:(?!{%\s*comment\s*%\}\s*djlint\:on\s*\{%\s*endcomment\s*%\}).)*
1310
+ # inline jinja comments; "{{#" opens a handlebars section, not a comment
1311
+ | (?<!\{){\#(?!\s*djlint\:\s*(?:off|on)).*?\#}
1312
+ # handlebars
1313
+ | {{!--\s*djlint\:off\s*--}}(?:(?!{{!--\s*djlint\:on\s*--}}).)*
1314
+ # golang
1315
+ | {{-?\s*/\*\s*djlint\:off\s*\*/\s*-?}}(?:(?!{{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}}).)*
1316
+ # inline golang comments
1317
+ | {{-?\s*/\*(?!\s*djlint\:\s*(?:off|on)).*?\*/\s*-?}}
1318
+ | <!--.*?-->
1319
+ | <\?php.*?\?>
1320
+ | <%(?!\w).*?%>
1321
+ | {%[ ]*filter\b(?:(?!%}).)*?%}.*?{%[ ]*endfilter[ ]*%}
1322
+ # liquid/shopify blocks whose bodies are json, css or js
1323
+ | {%[-+]?[ ]*(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1324
+ .*?
1325
+ {%[-+]?[ ]*end(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1326
+ | {%[ ]*blocktranslate\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktranslate[ ]*%}
1327
+ | {%[ ]*blocktrans\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktrans[ ]*%}
1328
+ | {%[ ]*comment\b(?:(?!%}).)*?%}(?:(?!djlint:(?:off|on)).)*?(?={%[ ]*endcomment[ ]*%})
1329
+ |"""
1330
+ + YAML_FRONT_MATTER
1331
+ )
1332
+
1333
+
1334
+ # A self closed tag opens nothing, and the quoted values are stepped over
1335
+ # so that a "/" written inside one is not read as the close.
1336
+ _TEMPLATE_NAMED_OPENING_TAG: Final = (
1337
+ rf"<(?:{TEMPLATE_TAG_NAME})(?!(?:[^>\"']|\"[^\"]*\"|'[^']*')*?/>)"
1338
+ )
1339
+
1340
+ # A template tag is read whole, so a ">" in one is not the tag's end, and
1341
+ # another tag's start ends one that was never closed.
1342
+ _RAW_TEXT_OPENING_TAG: Final = (
1343
+ rf"""(?:{QUOTED_ATTRIBUTE_VALUE}|{TEMPLATE_TAG_WHOLE}|(?!{TAG_START})[^>\"'{{]|\{{)*+>"""
1344
+ )
1345
+
1346
+
1347
+ def _build_ignored_blocks(*, for_linting: bool) -> str:
1348
+ """Build the alternation of blocks djLint leaves alone.
1349
+
1350
+ The formatter's span runs from the opening tag to the "<" of the
1351
+ closing one, so that it can still indent the closing tag while leaving
1352
+ the contents alone.
1353
+
1354
+ Linting skips the contents only. A span covering the opening tag would
1355
+ hide it from every rule, which left `H024` unable to report the
1356
+ `type="text/javascript"` it exists for, and `D004` blind to the
1357
+ `<script src>` its own pattern names. A span covering the whole
1358
+ element instead leaves a rule that pairs tags (`H025`) with a closing
1359
+ tag whose opening tag it never saw. The tag name must end where the
1360
+ element's does, so `<preview-card>` and `</script-x>` open and close
1361
+ nothing.
1362
+ """
1363
+ if for_linting:
1364
+ return (
1365
+ rf"""
1366
+ <(pre|textarea)(?![-.:\w]){_RAW_TEXT_OPENING_TAG}\K(?:(?!</(?:\1)(?![-.:\w]))[\s\S])*
1367
+ | <(script|style)(?![-.:\w]){_RAW_TEXT_OPENING_TAG}\K(?:(?!</(?:\2)(?![-.:\w]))[\s\S])*
1368
+ """
1369
+ + _IGNORED_BLOCKS_TAIL
1370
+ )
1371
+
1372
+ return (
1373
+ r"""
1374
+ <(pre|textarea).*?</(\1)>
1375
+ | <(script|style).*?(?=(\</(?:\3)>))
1376
+ """
1377
+ + _IGNORED_BLOCKS_TAIL
1378
+ )
1379
+
1380
+
1381
+ _IGNORED_BLOCKS: Final = _build_ignored_blocks(for_linting=False)
1382
+ _LINT_IGNORED_BLOCKS: Final = _build_ignored_blocks(for_linting=True)
1383
+
1384
+ _RAW_TEXT_INLINE: Final = r"""
1385
+ <(script|style|pre|textarea).*?</(?:\1)>
1386
+ """
1387
+ _RAW_TEXT_OPENING_PATTERN: Final = compile_pattern(
1388
+ r"""
1389
+ <style
1390
+ | <script
1391
+ | <pre
1392
+ | <textarea
1393
+ """,
1394
+ RE_FLAGS_IX,
1395
+ )
1396
+ _RAW_TEXT_CLOSING_PATTERN: Final = compile_pattern(
1397
+ r"""
1398
+ </style
1399
+ | </script
1400
+ | </pre
1401
+ | </textarea
1402
+ """,
1403
+ RE_FLAGS_IX,
1404
+ )
1405
+ _RAW_TEXT_INLINE_IMSX_PATTERN: Final = compile_pattern(_RAW_TEXT_INLINE, RE_FLAGS_IMSX)
1406
+ _RAW_TEXT_INLINE_IX_PATTERN: Final = compile_pattern(_RAW_TEXT_INLINE, RE_FLAGS_IX)
1407
+ _IGNORED_BLOCK_OPENING_PATTERN: Final = compile_pattern(
1408
+ r"""
1409
+ <style
1410
+ | {\*
1411
+ | <\?php
1412
+ | <%(?!\w)
1413
+ | <script
1414
+ | <!--
1415
+ | [^\{]{\#(?!\s*djlint\:\s*(?:on|off))
1416
+ | ^{\#(?!\s*djlint\:\s*(?:on|off))
1417
+ | <pre
1418
+ | <textarea
1419
+ | {%[ ]*blocktrans(?:late)?(?:(?!%}|\btrimmed\b).)*?%}
1420
+ | {%[-+]?[ ]*(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1421
+ | {%[ ]*filter\b(?:(?!%}).)*?%}
1422
+ | {\#\s*djlint\:\s*off\s*\#}
1423
+ | {%[ ]+?comment[ ]+?(?:(?!%}).)*?%}
1424
+ | {{!--\s*djlint\:off\s*--}}
1425
+ | {{-?\s*/\*\s*djlint\:off\s*\*/\s*-?}}
1426
+ |"""
1427
+ + SKIP_TEMPLATE_TAG,
1428
+ RE_FLAGS_IX,
1429
+ )
1430
+ _IGNORED_BLOCK_CLOSING_BEFORE: Final = r"""
1431
+ </style
1432
+ | \*}
1433
+ | \?>
1434
+ | %>
1435
+ | </script
1436
+ """
1437
+ # a "-->" reachable without crossing the start of a raw text element.
1438
+ # Past one, markup is text: "<pre>&lt;!-- x -->" closes no comment.
1439
+ _IGNORED_BLOCK_CLOSING_AT_START: Final = r"""
1440
+ (?:(?!<pre\b|<textarea\b).)*?-->
1441
+ | (?:(?!{\#).)*\#} # lines that have a #}, but not a {#
1442
+ """
1443
+ # An endcomment written right after "djlint:off" closes nothing. That is
1444
+ # looked for behind the tag once it is found: looked for first, a lookbehind
1445
+ # of no fixed length was tried from every position of the line, each time
1446
+ # back to its start, which took quadratic time on a long one.
1447
+ _IGNORED_BLOCK_CLOSING_AFTER: Final = r"""
1448
+ </pre
1449
+ | </textarea
1450
+ | {%[ ]*endfilter(?:(?!%}).)*?%}
1451
+ | {\#\s*djlint\:\s*on\s*\#}
1452
+ | {%[ ]+?endcomment[ ]+?%}(?<!djlint:off\s*?{%[ ]+endcomment[ ]+%})
1453
+ | {{!--\s*djlint\:on\s*--}}
1454
+ | {{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}}
1455
+ | {%[ ]*endblocktrans(?:late)?(?:(?!%}).)*?%}
1456
+ | {%[-+]?[ ]*end(?:schema|javascript|stylesheet|style)[ ]*[-+]?%}
1457
+ """
1458
+ _IGNORED_BLOCK_CLOSING_PATTERN: Final = compile_pattern(
1459
+ _IGNORED_BLOCK_CLOSING_BEFORE
1460
+ + rf"| ^(?:{_IGNORED_BLOCK_CLOSING_AT_START})|"
1461
+ + _IGNORED_BLOCK_CLOSING_AFTER,
1462
+ RE_FLAGS_IX,
1463
+ )
1464
+ _IGNORED_BLOCK_CLOSING_AT_START_PATTERN: Final = compile_pattern(
1465
+ _IGNORED_BLOCK_CLOSING_AT_START, RE_FLAGS_IX
1466
+ )
1467
+ _IGNORED_BLOCK_CLOSING_ANYWHERE_PATTERN: Final = compile_pattern(
1468
+ _IGNORED_BLOCK_CLOSING_BEFORE + "|" + _IGNORED_BLOCK_CLOSING_AFTER, RE_FLAGS_IX
1469
+ )
1470
+ _IGNORED_BLOCKS_PATTERN: Final = compile_pattern(
1471
+ _IGNORED_BLOCKS + "|" + SKIP_TEMPLATE_TAG, RE_FLAGS_IMSX
1472
+ )
1473
+ _LINT_IGNORED_BLOCKS_PATTERN: Final = compile_pattern(
1474
+ _LINT_IGNORED_BLOCKS + "|" + SKIP_TEMPLATE_TAG, RE_FLAGS_IMSX
1475
+ )
1476
+ _IGNORED_BLOCKS_INLINE_PATTERN: Final = compile_pattern(
1477
+ r"""
1478
+ <(pre|textarea).*?</(\1)>
1479
+ | <(script|style).*?(?=(\</(?:\3)>))
1480
+ # html comment
1481
+ | <!--\s*djlint\:off\s*-->.*?(?=<!--\s*djlint\:on\s*-->)
1482
+ # django/jinja/nunjucks
1483
+ | {\#\s*djlint\:\s*off\s*\#}.*?(?={\#\s*djlint\:\s*on\s*\#})
1484
+ | {%\s*comment\s*%\}\s*djlint\:off\s*\{%\s*endcomment\s*%\}.*?(?={%\s*comment\s*%\}\s*djlint\:on\s*\{%\s*endcomment\s*%\})
1485
+ # inline jinja comments; "{{#" opens a handlebars section, not a comment
1486
+ | (?<!\{){\#(?!\s*djlint\:\s*(?:off|on)).*?\#}
1487
+ # handlebars
1488
+ | {{!--\s*djlint\:off\s*--}}.*?(?={{!--\s*djlint\:on\s*--}})
1489
+ # golang
1490
+ | {{-?\s*/\*\s*djlint\:off\s*\*/\s*-?}}.*?(?={{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}})
1491
+ # inline golang comments
1492
+ | {{-?\s*/\*(?!\s*djlint\:\s*(?:off|on)).*?\*/\s*-?}}
1493
+ | <!--.*?-->
1494
+ | <\?php.*?\?>
1495
+ | <%(?!\w).*?%>
1496
+ | {%[ ]*filter\b(?:(?!%}).)*?%}.*?{%[ ]*endfilter[ ]*%}
1497
+ | {%[ ]*blocktranslate\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktranslate[ ]*%}
1498
+ | {%[ ]*blocktrans\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktrans[ ]*%}
1499
+ | {%[ ]*comment\b(?:(?!%}).)*?%}(?:(?!djlint:(?:off|on)).)*?(?={%[ ]*endcomment[ ]*%})
1500
+ |"""
1501
+ + YAML_FRONT_MATTER
1502
+ + "|"
1503
+ + SKIP_TEMPLATE_TAG,
1504
+ RE_FLAGS_IMSX,
1505
+ )
1506
+ _IGNORED_INLINE_BLOCKS_IX_PATTERN: Final = compile_pattern(
1507
+ _IGNORED_INLINE_BLOCKS + "|" + SKIP_TEMPLATE_TAG, RE_FLAGS_IX
1508
+ )
1509
+ _LINT_IGNORED_INLINE_BLOCKS_IX_PATTERN: Final = compile_pattern(
1510
+ _LINT_IGNORED_INLINE_BLOCKS + "|" + SKIP_TEMPLATE_TAG, RE_FLAGS_IX
1511
+ )
1512
+ _IGNORED_LINTER_BLOCKS_PATTERN: Final = compile_pattern(
1513
+ r"""
1514
+ {%[-+]?[ ]*(raw|verbatim)\b(?:(?!%}).)*?[-+]?%}.*?{%[-+]?[ ]*end\1[ ]*[-+]?%}
1515
+ """,
1516
+ RE_FLAGS_IMSX,
1517
+ )
1518
+ _UNFORMATTED_BLOCKS_COARSE_PATTERN: Final = compile_pattern(r"djlint\:\s*off", RE_FLAGS_IMSX)
1519
+ _UNFORMATTED_BLOCKS_PATTERN: Final = compile_pattern(
1520
+ r"""
1521
+ # html comment
1522
+ <!--\s*djlint\:off\s*-->(?:(?!<!--\s*djlint\:on\s*-->).)*
1523
+ # django/jinja/nunjucks
1524
+ | (?<!{){\#\s*djlint\:\s*off\s*\#}(?:(?!{\#\s*djlint\:\s*on\s*\#}).)*
1525
+ | {%\s*comment\s*%\}\s*djlint\:off\s*\{%\s*endcomment\s*%\}(?:(?!{%\s*comment\s*%\}\s*djlint\:on\s*\{%\s*endcomment\s*%\}).)*
1526
+ # inline jinja comments
1527
+ | (?<!{){\#(?!\s*djlint\:\s*(?:off|on)).*?\#}
1528
+ # handlebars
1529
+ | {{!--\s*djlint\:off\s*--}}(?:(?!{{!--\s*djlint\:on\s*--}}).)*
1530
+ # golang
1531
+ | {{-?\s*/\*\s*djlint\:off\s*\*/\s*-?}}(?:(?!{{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}}).)*
1532
+ |"""
1533
+ + YAML_FRONT_MATTER
1534
+ + "|"
1535
+ + SKIP_TEMPLATE_TAG,
1536
+ RE_FLAGS_IMSX,
1537
+ )
1538
+ _IGNORED_RULE_PATTERNS: Final = tuple(
1539
+ compile_pattern(pattern, RE_FLAGS_ISX)
1540
+ for pattern in (
1541
+ r"""
1542
+ # html comment
1543
+ <!--\s*djlint\:off(.+?)-->(?:(?!<!--\s*djlint\:on\s*-->).)*
1544
+ """,
1545
+ r"""
1546
+ # django/jinja/nunjucks
1547
+ {\#\s*djlint\:\s*off(.+?)\#}(?:(?!{\#\s*djlint\:\s*on\s*\#}).)*
1548
+ """,
1549
+ r"""
1550
+ # django/jinja/nunjucks comment block
1551
+ {%\s*comment\s*%\}\s*djlint\:off(.*?)\{%\s*endcomment\s*%\}
1552
+ (?:(?!{%\s*comment\s*%\}\s*djlint\:on\s*\{%\s*endcomment\s*%\}).)*
1553
+ """,
1554
+ r"""
1555
+ # handlebars
1556
+ {{!--\s*djlint\:off(.*?)--}}(?:(?!{{!--\s*djlint\:on\s*--}}).)*
1557
+ """,
1558
+ r"""
1559
+ # golang
1560
+ {{-?\s*/\*\s*djlint\:off(.*?)\*/\s*-?}}(?:(?!{{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}}).)*
1561
+ """,
1562
+ )
1563
+ )
1564
+ _IGNORED_TRANS_BLOCKS_PATTERN: Final = compile_pattern(
1565
+ r"""
1566
+ {%[ ]*blocktranslate?\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktranslate?[ ]*%}
1567
+ | {%[ ]*blocktrans\b(?:(?!%}|\btrimmed\b).)*?%}.*?{%[ ]*endblocktrans[ ]*%}
1568
+ """,
1569
+ RE_FLAGS_ISX,
1570
+ )
1571
+ _TRANS_TRIMMED_BLOCKS_PATTERN: Final = compile_pattern(
1572
+ r"""
1573
+ {%[ ]*blocktranslate\b(?:(?!%}).)*?\btrimmed\b(?:(?!%}).)*?%}.*?{%[ ]*endblocktranslate[ ]*%}
1574
+ | {%[ ]*blocktrans\b(?:(?!%}).)*?\btrimmed\b(?:(?!%}).)*?%}.*?{%[ ]*endblocktrans[ ]*%}
1575
+ """,
1576
+ RE_FLAGS_ISX,
1577
+ )
1578
+ _IGNORED_TRANS_BLOCKS_CLOSING_PATTERN: Final = compile_pattern(
1579
+ r"""
1580
+ {%[ ]*endblocktrans(?:late)?(?:(?!%}).)*?%}
1581
+ """,
1582
+ RE_FLAGS_IX,
1583
+ )
1584
+ _SAFE_CLOSING_TAG_PATTERN: Final = compile_pattern(
1585
+ r"""
1586
+ </script
1587
+ | </style
1588
+ | {\#\s*djlint\:\s*on\s*\#}
1589
+ | {%[ ]+?endcomment[ ]+?%}
1590
+ | {{!--\s*djlint\:on\s*--}}
1591
+ | {{-?\s*/\*\s*djlint\:on\s*\*/\s*-?}}
1592
+ """,
1593
+ RE_FLAGS_IX,
1594
+ )
1595
+ _SAFE_CLOSING_BLOCK_PATTERN: Final = compile_pattern(
1596
+ _IGNORED_INLINE_BLOCKS + r" | " + _IGNORED_BLOCKS, RE_FLAGS_IMSX
1597
+ )
1598
+ _TEMPLATE_BLOCKS_PATTERN: Final = compile_pattern(
1599
+ r"""
1600
+ {%((?!%}|{%).)+%}|{{((?!}}|{{).)+}}
1601
+ """,
1602
+ RE_FLAGS_IMSX,
1603
+ )
1604
+ _OPTIONAL_SINGLE_LINE_HTML_PATTERN: Final = compile_pattern(
1605
+ rf"^(?:{_OPTIONAL_SINGLE_LINE_HTML_TAGS})$", RE_FLAGS_IX
1606
+ )
1607
+ _OPTIONAL_SINGLE_LINE_TEMPLATE_PATTERN: Final = compile_pattern(
1608
+ rf"^(?:{_OPTIONAL_SINGLE_LINE_TEMPLATE_TAGS})$", RE_FLAGS_IX
1609
+ )
1610
+
1611
+
1612
+ @final
1613
+ class Config:
1614
+ """Djlint Config."""
1615
+
1616
+ __slots__ = (
1617
+ "_editorconfig_files",
1618
+ "allow_empty_input",
1619
+ "always_self_closing_html_tags",
1620
+ "attribute_pattern",
1621
+ "blank_line_after_tag",
1622
+ "blank_line_before_tag",
1623
+ "break_before",
1624
+ "break_html_tags",
1625
+ "break_template_tags",
1626
+ "check",
1627
+ "close_void_tags",
1628
+ "css_config",
1629
+ "custom_blocks",
1630
+ "custom_html",
1631
+ "editorconfig_defaults",
1632
+ "entity_pattern",
1633
+ "exclude",
1634
+ "exclude_pattern",
1635
+ "extension",
1636
+ "files",
1637
+ "format_attribute_js_json",
1638
+ "format_attribute_js_json_min_props",
1639
+ "format_attribute_js_json_object_pattern",
1640
+ "format_attribute_js_json_pattern",
1641
+ "format_attribute_js_json_property_pattern",
1642
+ "format_attribute_js_json_string_pattern",
1643
+ "format_attribute_template_tags",
1644
+ "format_css",
1645
+ "format_js",
1646
+ "github_output",
1647
+ "gitignore",
1648
+ "has_profile",
1649
+ "ignore",
1650
+ "ignore_blocks",
1651
+ "ignore_case",
1652
+ "ignored_attributes",
1653
+ "ignored_block_closing_anywhere_pattern",
1654
+ "ignored_block_closing_at_start_pattern",
1655
+ "ignored_block_closing_pattern",
1656
+ "ignored_block_opening_pattern",
1657
+ "ignored_blocks_inline_pattern",
1658
+ "ignored_blocks_pattern",
1659
+ "ignored_inline_blocks",
1660
+ "ignored_inline_blocks_ix_pattern",
1661
+ "ignored_linter_blocks_pattern",
1662
+ "ignored_rule_patterns",
1663
+ "ignored_trans_blocks_closing_pattern",
1664
+ "ignored_trans_blocks_pattern",
1665
+ "include",
1666
+ "indent",
1667
+ "indent_html_tags",
1668
+ "indent_size",
1669
+ "js_config",
1670
+ "keep_br_inline",
1671
+ "line_break_after_multiline_tag",
1672
+ "lint",
1673
+ "lint_ignored_blocks_pattern",
1674
+ "lint_ignored_inline_blocks_ix_pattern",
1675
+ "linter_output_format",
1676
+ "linter_rules",
1677
+ "max_attribute_length",
1678
+ "max_blank_lines",
1679
+ "max_line_length",
1680
+ "name_endblocks",
1681
+ "no_entity_formatting",
1682
+ "no_function_formatting",
1683
+ "no_indent_inner_html",
1684
+ "no_line_after_yaml",
1685
+ "no_set_formatting",
1686
+ "optional_single_line_html_pattern",
1687
+ "optional_single_line_html_tags",
1688
+ "optional_single_line_template_pattern",
1689
+ "optional_single_line_template_tags",
1690
+ "per_file_ignores",
1691
+ "preserve_blank_lines",
1692
+ "preserve_class_newlines",
1693
+ "preserve_leading_space",
1694
+ "profile",
1695
+ "project_root",
1696
+ "quiet",
1697
+ "quote_style",
1698
+ "raw_text_closing_pattern",
1699
+ "raw_text_inline_imsx_pattern",
1700
+ "raw_text_inline_ix_pattern",
1701
+ "raw_text_opening_pattern",
1702
+ "reformat",
1703
+ "require_pragma",
1704
+ "safe_closing_block_pattern",
1705
+ "safe_closing_tag_pattern",
1706
+ "sarif",
1707
+ "single_attribute_per_line",
1708
+ "single_line_template_tags",
1709
+ "skipped_rules",
1710
+ "sort_attributes",
1711
+ "sort_load_tags",
1712
+ "start_template_tags",
1713
+ "statistics",
1714
+ "stdin",
1715
+ "stdin_filename",
1716
+ "tag_indent",
1717
+ "tag_unindent",
1718
+ "tag_unindent_line",
1719
+ "tag_unindent_line_ix_pattern",
1720
+ "template_blocks_pattern",
1721
+ "template_indent",
1722
+ "template_indent_imx_pattern",
1723
+ "template_indent_ix_pattern",
1724
+ "template_tags",
1725
+ "template_tags_imx_pattern",
1726
+ "template_unindent",
1727
+ "template_unindent_imx_pattern",
1728
+ "template_unindent_ix_pattern",
1729
+ "trans_trimmed_blocks_pattern",
1730
+ "unformatted_blocks_coarse_pattern",
1731
+ "unformatted_blocks_pattern",
1732
+ "use_gitignore",
1733
+ "warn",
1734
+ )
1735
+
1736
+ def __new__(cls, *_args: object, **_kwargs: object) -> Config:
1737
+ # for_file copies a Config. Under mypyc, a class without its own
1738
+ # __new__ runs __init__ again for a copy, which would read the
1739
+ # configuration of the current folder.
1740
+ return super().__new__(cls)
1741
+
1742
+ def __init__(
1743
+ self,
1744
+ src: str = ".",
1745
+ *,
1746
+ ignore: str = "",
1747
+ extension: str = "",
1748
+ indent: int | None = None,
1749
+ quiet: bool = False,
1750
+ profile: str | None = None,
1751
+ require_pragma: bool = False,
1752
+ reformat: bool = False,
1753
+ check: bool = False,
1754
+ lint: bool = False,
1755
+ use_gitignore: bool = False,
1756
+ allow_empty_input: bool = False,
1757
+ warn: bool = False,
1758
+ preserve_leading_space: bool = False,
1759
+ preserve_blank_lines: bool = False,
1760
+ preserve_class_newlines: bool = False,
1761
+ format_css: bool = False,
1762
+ format_js: bool = False,
1763
+ configuration: Path | None = None,
1764
+ prefer_configuration: bool = False,
1765
+ rules: Path | None = None,
1766
+ statistics: bool = False,
1767
+ include: str = "",
1768
+ ignore_case: bool = False,
1769
+ ignore_blocks: str = "",
1770
+ custom_blocks: str = "",
1771
+ blank_line_after_tag: str = "",
1772
+ blank_line_before_tag: str = "",
1773
+ line_break_after_multiline_tag: bool = False,
1774
+ custom_html: str = "",
1775
+ exclude: str = "",
1776
+ extend_exclude: str = "",
1777
+ linter_output_format: str = "",
1778
+ max_line_length: int | None = None,
1779
+ max_attribute_length: int | None = None,
1780
+ format_attribute_template_tags: bool = False,
1781
+ single_attribute_per_line: bool = False,
1782
+ format_attribute_js_json: bool = False,
1783
+ format_attribute_js_json_pattern: str = "",
1784
+ format_attribute_js_json_min_props: int | None = None,
1785
+ per_file_ignores: tuple[tuple[str, str], ...] = (),
1786
+ indent_css: int | None = None,
1787
+ indent_js: int | None = None,
1788
+ close_void_tags: bool = False,
1789
+ no_line_after_yaml: bool = False,
1790
+ no_indent_inner_html: bool = False,
1791
+ sort_attributes: bool = False,
1792
+ sort_load_tags: bool = False,
1793
+ name_endblocks: bool = False,
1794
+ keep_br_inline: bool = False,
1795
+ no_entity_formatting: bool = False,
1796
+ no_function_formatting: bool = False,
1797
+ no_set_formatting: bool = False,
1798
+ quote_style: str | None = None,
1799
+ max_blank_lines: int | None = None,
1800
+ github_output: bool = False,
1801
+ sarif: bool = False,
1802
+ stdin: bool | None = None,
1803
+ stdin_filename: str | None = None,
1804
+ python_rules: bool = True,
1805
+ on_warning: Callable[[str], None] | None = None,
1806
+ ) -> None:
1807
+ # A program that shows the warnings itself gets each of them, every
1808
+ # time; the command line prints each one once per run.
1809
+ report = on_warning or _warn_once
1810
+ if src != "-":
1811
+ start = Path(src).resolve()
1812
+ elif stdin_filename is None:
1813
+ start = Path.cwd()
1814
+ else:
1815
+ start = Path(stdin_filename).resolve().parent
1816
+ self.project_root = find_project_root(start)
1817
+ djlint_settings, setting_sources = load_project_settings(
1818
+ self.project_root, configuration, prefer_configuration=prefer_configuration, warn=report
1819
+ )
1820
+ if prefer_configuration and configuration is None:
1821
+ report("--prefer-configuration has no effect without --configuration.")
1822
+ _check_settings(djlint_settings, setting_sources, report)
1823
+
1824
+ def setting_int(key: str, default: int) -> int:
1825
+ """Read a whole number from the config file.
1826
+
1827
+ The text of one works too, with a warning, as djLint always took
1828
+ it. true and false are numbers to Python, and 2.5 would quietly
1829
+ become 2, so both are refused.
1830
+ """
1831
+ value = djlint_settings.get(key, default)
1832
+ if isinstance(value, float) and value.is_integer():
1833
+ value = int(value)
1834
+ if isinstance(value, int) and not isinstance(value, bool):
1835
+ return value
1836
+ if isinstance(value, str):
1837
+ try:
1838
+ number = int(value)
1839
+ except ValueError:
1840
+ pass
1841
+ else:
1842
+ if key in djlint_settings:
1843
+ report(
1844
+ f"{key} in {setting_sources[key]} should be the number {number},"
1845
+ f" not the text {json.dumps(value)}."
1846
+ )
1847
+ return number
1848
+ msg = (
1849
+ f"Invalid {setting_sources[key]} {key} value {djlint_settings[key]}."
1850
+ " It must be a whole number."
1851
+ )
1852
+ raise UsageError(msg)
1853
+
1854
+ def setting_bool(key: str) -> bool:
1855
+ """Read a switch from the config file: true or false.
1856
+
1857
+ The text "true" or "false" works too, with a warning, since older
1858
+ configurations quote it. Anything else is refused rather than read
1859
+ as true, so no text can turn a switch on by being there.
1860
+ """
1861
+ value = djlint_settings.get(key, False)
1862
+ if isinstance(value, bool):
1863
+ return value
1864
+ if isinstance(value, str) and (text := value.strip().lower()) in {"true", "false"}:
1865
+ report(
1866
+ f"{key} in {setting_sources[key]} should be {text},"
1867
+ f" not the text {json.dumps(value)}."
1868
+ )
1869
+ return text == "true"
1870
+ msg = (
1871
+ f"Invalid {setting_sources[key]} {key} value {djlint_settings[key]}."
1872
+ " It must be true or false."
1873
+ )
1874
+ raise UsageError(msg)
1875
+
1876
+ self.reformat = reformat
1877
+ self.check = check
1878
+ self.lint = lint
1879
+ self.warn = warn
1880
+ self.github_output = github_output
1881
+ self.sarif = sarif
1882
+ self.statistics = statistics
1883
+ self.stdin_filename = stdin_filename
1884
+
1885
+ self.extension = str(extension or djlint_settings.get("extension", "html"))
1886
+ self.quiet = quiet or setting_bool("quiet")
1887
+ self.require_pragma = require_pragma or setting_bool("require_pragma")
1888
+ self.preserve_leading_space = preserve_leading_space or setting_bool(
1889
+ "preserve_leading_space"
1890
+ )
1891
+ self.preserve_blank_lines = preserve_blank_lines or setting_bool("preserve_blank_lines")
1892
+ self.preserve_class_newlines = preserve_class_newlines or setting_bool(
1893
+ "preserve_class_newlines"
1894
+ )
1895
+ self.format_js = format_js or setting_bool("format_js")
1896
+ self.format_css = format_css or setting_bool("format_css")
1897
+ self.ignore_case = ignore_case or setting_bool("ignore_case")
1898
+ self.close_void_tags = close_void_tags or setting_bool("close_void_tags")
1899
+ self.no_line_after_yaml = no_line_after_yaml or setting_bool("no_line_after_yaml")
1900
+ self.no_indent_inner_html = no_indent_inner_html or setting_bool("no_indent_inner_html")
1901
+ self.sort_attributes = sort_attributes or setting_bool("sort_attributes")
1902
+ self.sort_load_tags = sort_load_tags or setting_bool("sort_load_tags")
1903
+ self.name_endblocks = name_endblocks or setting_bool("name_endblocks")
1904
+ selected_profile = str(profile or djlint_settings.get("profile", "")).lower()
1905
+ expressions_are_rust = selected_profile == "askama"
1906
+ self.no_set_formatting = (
1907
+ no_set_formatting or setting_bool("no_set_formatting") or expressions_are_rust
1908
+ )
1909
+ self.no_function_formatting = (
1910
+ no_function_formatting or setting_bool("no_function_formatting") or expressions_are_rust
1911
+ )
1912
+ self.no_entity_formatting = no_entity_formatting or setting_bool("no_entity_formatting")
1913
+ self.keep_br_inline = keep_br_inline or setting_bool("keep_br_inline")
1914
+ self.quote_style = str(quote_style or djlint_settings.get("quote_style", "double")).lower()
1915
+ if self.quote_style not in _QUOTE_STYLES:
1916
+ msg = (
1917
+ f"Invalid quote style {self.quote_style!r}."
1918
+ f" Choose from {', '.join(sorted(_QUOTE_STYLES))}."
1919
+ )
1920
+ raise BadParameter(msg, param_hint="'--quote-style'")
1921
+ self.format_attribute_template_tags = format_attribute_template_tags or setting_bool(
1922
+ "format_attribute_template_tags"
1923
+ )
1924
+ self.single_attribute_per_line = single_attribute_per_line or setting_bool(
1925
+ "single_attribute_per_line"
1926
+ )
1927
+ self.format_attribute_js_json = format_attribute_js_json or setting_bool(
1928
+ "format_attribute_js_json"
1929
+ )
1930
+ self.format_attribute_js_json_min_props = (
1931
+ format_attribute_js_json_min_props
1932
+ if format_attribute_js_json_min_props is not None
1933
+ else setting_int("format_attribute_js_json_min_props", 2)
1934
+ )
1935
+ self.linter_output_format = linter_output_format or djlint_settings.get(
1936
+ "linter_output_format", "{code} {line} {message} {match}"
1937
+ )
1938
+ _check_output_format(self.linter_output_format)
1939
+ # The codes can be a list, as in the other options that take several.
1940
+ self.per_file_ignores = {
1941
+ pattern: str(_as_comma_separated(codes))
1942
+ for pattern, codes in (
1943
+ dict(per_file_ignores)
1944
+ if per_file_ignores
1945
+ else djlint_settings.get("per-file-ignores", {})
1946
+ ).items()
1947
+ }
1948
+ for pattern in self.per_file_ignores:
1949
+ _check_regex("per-file-ignores", pattern)
1950
+ self.blank_line_after_tag = blank_line_after_tag or _as_comma_separated(
1951
+ djlint_settings.get("blank_line_after_tag", None)
1952
+ )
1953
+ self.blank_line_before_tag = blank_line_before_tag or _as_comma_separated(
1954
+ djlint_settings.get("blank_line_before_tag", None)
1955
+ )
1956
+ self.line_break_after_multiline_tag = line_break_after_multiline_tag or setting_bool(
1957
+ "line_break_after_multiline_tag"
1958
+ )
1959
+ self.js_config = _beautifier_config(djlint_settings.get("js"), indent_size=indent_js)
1960
+ self.css_config = _beautifier_config(djlint_settings.get("css"), indent_size=indent_css)
1961
+ if not self.format_js and (indent_js is not None or djlint_settings.get("js")):
1962
+ report("--indent-js and the js settings have no effect without format_js.")
1963
+ if not self.format_css and (indent_css is not None or djlint_settings.get("css")):
1964
+ report("--indent-css and the css settings have no effect without format_css.")
1965
+ if not self.format_attribute_js_json and (
1966
+ unused := [
1967
+ name
1968
+ for name, given in (
1969
+ ("format_attribute_js_json_pattern", bool(format_attribute_js_json_pattern)),
1970
+ (
1971
+ "format_attribute_js_json_min_props",
1972
+ format_attribute_js_json_min_props is not None,
1973
+ ),
1974
+ )
1975
+ if given or name in djlint_settings
1976
+ ]
1977
+ ):
1978
+ report(
1979
+ f"{' and '.join(unused)} {'has' if len(unused) == 1 else 'have'}"
1980
+ " no effect without format_attribute_js_json."
1981
+ )
1982
+
1983
+ # .editorconfig only fills in what neither the command line nor the
1984
+ # configuration sets. Each file gets its own (see for_file); this is
1985
+ # for a file of the configured extension in the folder checked.
1986
+ self.editorconfig_defaults = frozenset(
1987
+ name
1988
+ for name, given in (
1989
+ ("indent_size", indent or "indent" in djlint_settings),
1990
+ ("max_line_length", max_line_length or "max_line_length" in djlint_settings),
1991
+ )
1992
+ if not given
1993
+ )
1994
+ self._editorconfig_files: dict[Path, tuple[Any, ...]] = {}
1995
+ folder = start if start.is_dir() else start.parent
1996
+ editorconfig = self._editorconfig_for(folder / f"_.{self.extension}")
1997
+ indent = indent or setting_int("indent", editorconfig.get("indent_size", 4))
1998
+ self.indent_size = indent
1999
+ self.indent = indent * " "
2000
+ self.max_line_length = max_line_length or setting_int(
2001
+ "max_line_length", editorconfig.get("max_line_length", 120)
2002
+ )
2003
+ self.max_attribute_length = (
2004
+ max_attribute_length
2005
+ if max_attribute_length is not None
2006
+ else setting_int("max_attribute_length", 70)
2007
+ )
2008
+ self.max_blank_lines = (
2009
+ max_blank_lines if max_blank_lines is not None else setting_int("max_blank_lines", 0)
2010
+ )
2011
+ if self.preserve_blank_lines and self.max_blank_lines > 0:
2012
+ report("max_blank_lines has no effect with preserve_blank_lines.")
2013
+
2014
+ excludes = build_exclude(exclude or djlint_settings.get("exclude", _DEFAULT_EXCLUDE))
2015
+ extensions = build_exclude(extend_exclude or djlint_settings.get("extend_exclude", ""))
2016
+ for setting, patterns in (("exclude", excludes), ("extend_exclude", extensions)):
2017
+ for pattern in patterns:
2018
+ _check_regex(setting, pattern)
2019
+ self.exclude = "\n| ".join(excludes + extensions)
2020
+ # The patterns are verbose, so each gets a group and a line of its own: a
2021
+ # `#` comment in one ends with it, and nothing in one runs into the next.
2022
+ # Nothing to exclude matches no path.
2023
+ alternatives = "|".join(f"(?:{pattern}\n)" for pattern in excludes + extensions) or "(?!)"
2024
+ self.exclude_pattern = compile_pattern(rf"(?:^|/)(?:{alternatives})(?=$|/|(?<=/))", re.X)
2025
+
2026
+ self.files = djlint_settings.get("files", None)
2027
+ self.stdin = (src == "-" if stdin is None else stdin) and (
2028
+ not self.files or stdin_filename is not None
2029
+ )
2030
+ self.use_gitignore = (use_gitignore or setting_bool("use_gitignore")) and (
2031
+ not self.stdin or stdin_filename is not None
2032
+ )
2033
+ self.gitignore: PathSpec[Pattern] | None = (
2034
+ load_gitignore(self.project_root) if self.use_gitignore else None
2035
+ )
2036
+ self.allow_empty_input = allow_empty_input or setting_bool("allow_empty_input")
2037
+
2038
+ self.has_profile = bool(selected_profile)
2039
+ self.profile = selected_profile or "all"
2040
+ if self.profile not in _PROFILES:
2041
+ msg = f"Invalid profile {self.profile!r}. Choose from {', '.join(sorted(_PROFILES))}."
2042
+ raise BadParameter(msg, param_hint="'--profile'")
2043
+ # with no profile the formatter reads every template language, as
2044
+ # under "all", and the linter picks the rules html does
2045
+ lint_profile = selected_profile or "html"
2046
+ profile_codes = _CODES_EXCLUDED_BY_PROFILE.get(lint_profile, ())
2047
+ self.ignore = str(ignore or _as_comma_separated(djlint_settings.get("ignore", "")))
2048
+ self.include = str(include or _as_comma_separated(djlint_settings.get("include", "")))
2049
+ with (Path(__file__).parent / "rules.yaml").open("rb") as f:
2050
+ default_rules = yaml.load(f, Loader=_YAML_LOADER) # noqa: S506
2051
+ custom_rules = load_custom_rules(rules or find_djlint_rules(self.project_root))
2052
+ self.skipped_rules: tuple[str, ...] = ()
2053
+ if not python_rules:
2054
+ self.skipped_rules = tuple(
2055
+ str(x["rule"].get("name", "undefined"))
2056
+ for x in custom_rules
2057
+ if "python_module" in x["rule"]
2058
+ )
2059
+ custom_rules = tuple(x for x in custom_rules if "python_module" not in x["rule"])
2060
+ rule_set = tuple(validate_rules(chain(default_rules, custom_rules), report))
2061
+ ignored_codes = set(split_option_list(self.ignore))
2062
+ included_codes = set(split_option_list(self.include))
2063
+ rules_by_code = {x["rule"]["name"]: x["rule"] for x in rule_set}
2064
+ known_codes = {*rules_by_code, *self.skipped_rules}
2065
+ _check_codes("ignore", sorted(ignored_codes), known_codes, report)
2066
+ _check_codes("include", sorted(included_codes), known_codes, report)
2067
+ for codes in self.per_file_ignores.values():
2068
+ _check_codes("per-file-ignores", split_option_list(codes), known_codes, report)
2069
+ for code in sorted(ignored_codes & included_codes):
2070
+ report(f"{code} is in both ignore and include, so it stays off.")
2071
+ if self.ignore_case:
2072
+ ignored_codes.update(("H009", "H010"))
2073
+ # the formatter writes `<img />` under it, which H018 rejects
2074
+ if self.close_void_tags:
2075
+ ignored_codes.add("H018")
2076
+
2077
+ def rule_applies(rule: Mapping[str, Any]) -> bool:
2078
+ """Whether the rule runs under the profile in force.
2079
+
2080
+ A profile that names the rule, in the rule's own exclude or by
2081
+ its full code, always drops it, as the rule is wrong for that
2082
+ template language. A rule named in include runs under any other
2083
+ profile, even one that leaves out its family of codes. Otherwise
2084
+ "all", being every template language at once, drops a rule
2085
+ excluded for any one of them.
2086
+ """
2087
+ name = rule["name"]
2088
+ excluded_profiles = rule.get("exclude", ())
2089
+ if lint_profile in excluded_profiles or name in profile_codes:
2090
+ return False
2091
+ if name in included_codes:
2092
+ return True
2093
+ if excluded_profiles and lint_profile == "all":
2094
+ return False
2095
+ return not any(name.startswith(code) for code in profile_codes)
2096
+
2097
+ # With no profile set, naming html would read as if one were.
2098
+ profile_name = (
2099
+ f"the {lint_profile} profile"
2100
+ if selected_profile
2101
+ else "no profile, where the linter follows html"
2102
+ )
2103
+ for code in sorted(included_codes.intersection(rules_by_code)):
2104
+ if lint_profile in rules_by_code[code].get("exclude", ()) or code in profile_codes:
2105
+ report(f"include names {code}, which never runs under {profile_name}.")
2106
+
2107
+ self.entity_pattern = next(
2108
+ (
2109
+ re.compile(x["rule"]["patterns"][0], build_flags(x["rule"].get("flags", "re.S")))
2110
+ for x in rule_set
2111
+ if x["rule"]["name"] == "H023" and "patterns" in x["rule"]
2112
+ ),
2113
+ None,
2114
+ )
2115
+ self.linter_rules = tuple(
2116
+ x
2117
+ for x in rule_set
2118
+ if x["rule"]["name"] not in ignored_codes
2119
+ and rule_applies(x["rule"])
2120
+ and (x["rule"].get("default", True) or x["rule"]["name"] in included_codes)
2121
+ )
2122
+ for entry in self.linter_rules:
2123
+ linter_rule = entry["rule"]
2124
+ if "patterns" in linter_rule:
2125
+ rule_flags = build_flags(linter_rule.get("flags", "re.S"))
2126
+ linter_rule["compiled_patterns"] = tuple(
2127
+ compile_rule_pattern(pattern, rule_flags) for pattern in linter_rule["patterns"]
2128
+ )
2129
+
2130
+ if self.lint:
2131
+ enabled_rules = {x["rule"]["name"] for x in self.linter_rules}
2132
+ if {"H017", "H018"} <= enabled_rules:
2133
+ report(
2134
+ "H017 and H018 enforce opposite void tag styles. Enable only one convention. 😢"
2135
+ )
2136
+
2137
+ self.custom_blocks = str(
2138
+ build_custom_blocks(
2139
+ ",".join(
2140
+ x
2141
+ for x in (
2142
+ str(
2143
+ custom_blocks
2144
+ or _as_comma_separated(djlint_settings.get("custom_blocks"))
2145
+ or ""
2146
+ ),
2147
+ _PROFILE_ONLY_BLOCKS.get(self.profile, ""),
2148
+ )
2149
+ if x
2150
+ )
2151
+ )
2152
+ or ""
2153
+ )
2154
+ django_cotton_components = r"|c-[\w.-]+"
2155
+ self.custom_html = (
2156
+ str(
2157
+ build_custom_html(
2158
+ custom_html or _as_comma_separated(djlint_settings.get("custom_html"))
2159
+ )
2160
+ or ""
2161
+ )
2162
+ + django_cotton_components
2163
+ )
2164
+ self.ignore_blocks = build_ignore_blocks(
2165
+ ignore_blocks or _as_comma_separated(djlint_settings.get("ignore_blocks", ""))
2166
+ )
2167
+ ignore_blocks_guard = rf"(?!{self.ignore_blocks})" if self.ignore_blocks else ""
2168
+ self.format_attribute_js_json_pattern = compile_pattern(
2169
+ format_attribute_js_json_pattern
2170
+ or djlint_settings.get("format_attribute_js_json_pattern", _DEFAULT_JS_JSON_PATTERN),
2171
+ RE_FLAGS_IX,
2172
+ )
2173
+
2174
+ indenting_html_tags = (
2175
+ HTML_TAG_NAMES - {"html"} if self.no_indent_inner_html else HTML_TAG_NAMES
2176
+ )
2177
+ self.indent_html_tags = "|".join(indenting_html_tags) + self.custom_html
2178
+ self.always_self_closing_html_tags = _ALWAYS_SELF_CLOSING_HTML_TAGS
2179
+
2180
+ not_self_closed = r"\b(?!(?:(?!%\}).)*/\s*-?%\})"
2181
+ custom_block_openers = self.custom_blocks.replace(r"\b", not_self_closed)
2182
+ is_golang = self.profile == "golang"
2183
+ self.template_indent = (
2184
+ r"""
2185
+ (?:\{\{\#|\{%[-+]?)[ ]*
2186
+ ("""
2187
+ + ignore_blocks_guard
2188
+ + _INDENT_TEMPLATE_TAGS
2189
+ + custom_block_openers
2190
+ + r")\b"
2191
+ + r"""
2192
+ ) | \{{-?[ ]*form_start
2193
+ """
2194
+ + (_GOLANG_BLOCK_OPEN if is_golang else "")
2195
+ )
2196
+ trans_is_a_custom_block = (
2197
+ r"|trans\b" in self.custom_blocks or r"|translate\b" in self.custom_blocks
2198
+ )
2199
+ end_tag_guard = (
2200
+ r"(?!comment)" if trans_is_a_custom_block else r"(?!comment|trans(?:late)?\b)"
2201
+ )
2202
+ self.template_unindent = (
2203
+ r"""
2204
+ (?:
2205
+ # handlebars block close {{/name}}, but not a golang
2206
+ # comment {{/* ... */}}, which closes nothing
2207
+ (?:\{\{\/(?!\*))
2208
+ | (?:\{%[-+]?[ ]*end"""
2209
+ + end_tag_guard
2210
+ + ignore_blocks_guard
2211
+ + r""")
2212
+ | (?:\{{-?[ ]*form_end)
2213
+ """
2214
+ + (_GOLANG_BLOCK_CLOSE if is_golang else "")
2215
+ + r"""
2216
+ )
2217
+ """
2218
+ )
2219
+ self.start_template_tags = (
2220
+ ignore_blocks_guard
2221
+ + _START_TEMPLATE_TAGS
2222
+ + custom_block_openers
2223
+ + r""")
2224
+ """
2225
+ + (_GOLANG_BLOCK_OPEN if is_golang else "")
2226
+ )
2227
+ self.single_line_template_tags = (
2228
+ ignore_blocks_guard + _INDENT_TEMPLATE_TAGS + custom_block_openers + r")"
2229
+ )
2230
+ self.break_template_tags = (
2231
+ ignore_blocks_guard
2232
+ + _BREAK_TEMPLATE_TAGS
2233
+ + self.custom_blocks
2234
+ + (r"|when\b|elsif\b" if self.profile == "liquid" else "")
2235
+ + r""")
2236
+ """
2237
+ )
2238
+ self.break_html_tags = (
2239
+ _BREAK_HTML_TAGS
2240
+ + self.always_self_closing_html_tags
2241
+ + self.custom_html
2242
+ + """
2243
+ """
2244
+ )
2245
+ self.tag_indent = (
2246
+ self.template_indent
2247
+ + """
2248
+ | (?:<
2249
+ (?:
2250
+ """
2251
+ + self.indent_html_tags
2252
+ + """
2253
+ )\\b
2254
+ )
2255
+ | (?:"""
2256
+ + _TEMPLATE_NAMED_OPENING_TAG
2257
+ + """)
2258
+ """
2259
+ )
2260
+ self.tag_unindent = (
2261
+ r"""
2262
+ ^
2263
+ """
2264
+ + self.template_unindent
2265
+ + """
2266
+ | (?:^</
2267
+ (?:
2268
+ """
2269
+ + self.indent_html_tags
2270
+ + """
2271
+ )\\b
2272
+ )
2273
+ | (?:^</(?:"""
2274
+ + TEMPLATE_TAG_NAME
2275
+ + """))
2276
+ | (?:</
2277
+ (?:
2278
+ """
2279
+ + self.indent_html_tags
2280
+ + """
2281
+ )>$
2282
+ )
2283
+ | (?:</(?:"""
2284
+ + TEMPLATE_TAG_NAME
2285
+ + """)>$)
2286
+ """
2287
+ )
2288
+
2289
+ self.template_indent_ix_pattern = compile_pattern(self.template_indent, RE_FLAGS_IX)
2290
+ self.template_indent_imx_pattern = compile_pattern(self.template_indent, RE_FLAGS_IMX)
2291
+ self.template_unindent_ix_pattern = compile_pattern(self.template_unindent, RE_FLAGS_IX)
2292
+ self.template_unindent_imx_pattern = compile_pattern(self.template_unindent, RE_FLAGS_IMX)
2293
+
2294
+ self.attribute_pattern = _ATTRIBUTE_X_PATTERN
2295
+ self.template_tags = _TEMPLATE_TAGS
2296
+ self.template_tags_imx_pattern = _TEMPLATE_TAGS_IMX_PATTERN
2297
+ self.tag_unindent_line = (
2298
+ _LIQUID_TAG_UNINDENT_LINE if self.profile == "liquid" else _TAG_UNINDENT_LINE
2299
+ )
2300
+ if is_golang:
2301
+ self.tag_unindent_line += _GOLANG_BRANCH
2302
+ self.tag_unindent_line_ix_pattern = compile_pattern(self.tag_unindent_line, RE_FLAGS_IX)
2303
+ self.break_before = _BREAK_BEFORE
2304
+ self.ignored_attributes = _IGNORED_ATTRIBUTES
2305
+ self.ignored_inline_blocks = _IGNORED_INLINE_BLOCKS
2306
+ self.optional_single_line_html_tags = _OPTIONAL_SINGLE_LINE_HTML_TAGS
2307
+ self.optional_single_line_template_tags = _OPTIONAL_SINGLE_LINE_TEMPLATE_TAGS
2308
+ self.format_attribute_js_json_object_pattern = _JS_JSON_OBJECT_PATTERN
2309
+ self.format_attribute_js_json_string_pattern = _JS_JSON_STRING_PATTERN
2310
+ self.format_attribute_js_json_property_pattern = _JS_JSON_PROPERTY_PATTERN
2311
+ self.raw_text_opening_pattern = _RAW_TEXT_OPENING_PATTERN
2312
+ self.raw_text_closing_pattern = _RAW_TEXT_CLOSING_PATTERN
2313
+ self.raw_text_inline_imsx_pattern = _RAW_TEXT_INLINE_IMSX_PATTERN
2314
+ self.raw_text_inline_ix_pattern = _RAW_TEXT_INLINE_IX_PATTERN
2315
+ self.ignored_block_opening_pattern = _IGNORED_BLOCK_OPENING_PATTERN
2316
+ self.ignored_block_closing_pattern = _IGNORED_BLOCK_CLOSING_PATTERN
2317
+ self.ignored_block_closing_at_start_pattern = _IGNORED_BLOCK_CLOSING_AT_START_PATTERN
2318
+ self.ignored_block_closing_anywhere_pattern = _IGNORED_BLOCK_CLOSING_ANYWHERE_PATTERN
2319
+ self.ignored_blocks_pattern = _IGNORED_BLOCKS_PATTERN
2320
+ self.lint_ignored_blocks_pattern = _LINT_IGNORED_BLOCKS_PATTERN
2321
+ self.ignored_blocks_inline_pattern = _IGNORED_BLOCKS_INLINE_PATTERN
2322
+ self.ignored_inline_blocks_ix_pattern = _IGNORED_INLINE_BLOCKS_IX_PATTERN
2323
+ self.lint_ignored_inline_blocks_ix_pattern = _LINT_IGNORED_INLINE_BLOCKS_IX_PATTERN
2324
+ self.ignored_linter_blocks_pattern = _IGNORED_LINTER_BLOCKS_PATTERN
2325
+ self.ignored_trans_blocks_pattern = _IGNORED_TRANS_BLOCKS_PATTERN
2326
+ self.ignored_trans_blocks_closing_pattern = _IGNORED_TRANS_BLOCKS_CLOSING_PATTERN
2327
+ self.trans_trimmed_blocks_pattern = _TRANS_TRIMMED_BLOCKS_PATTERN
2328
+ self.safe_closing_block_pattern = _SAFE_CLOSING_BLOCK_PATTERN
2329
+ self.safe_closing_tag_pattern = _SAFE_CLOSING_TAG_PATTERN
2330
+ self.template_blocks_pattern = _TEMPLATE_BLOCKS_PATTERN
2331
+ self.unformatted_blocks_coarse_pattern = _UNFORMATTED_BLOCKS_COARSE_PATTERN
2332
+ self.unformatted_blocks_pattern = _UNFORMATTED_BLOCKS_PATTERN
2333
+ self.ignored_rule_patterns = _IGNORED_RULE_PATTERNS
2334
+ self.optional_single_line_html_pattern = _OPTIONAL_SINGLE_LINE_HTML_PATTERN
2335
+ self.optional_single_line_template_pattern = _OPTIONAL_SINGLE_LINE_TEMPLATE_PATTERN
2336
+ if self.profile == "mako":
2337
+ # The block tags under this profile stand for Mako's control lines,
2338
+ # which a block put on one line would join.
2339
+ self.optional_single_line_template_tags = "(?!)"
2340
+ self.optional_single_line_template_pattern = compile_pattern("(?!)")
2341
+ if profile_blocks := _PROFILE_ONLY_BLOCKS.get(self.profile):
2342
+ self.optional_single_line_template_tags += "|" + "|".join(
2343
+ split_option_list(profile_blocks)
2344
+ )
2345
+ self.optional_single_line_template_pattern = compile_pattern(
2346
+ rf"^(?:{self.optional_single_line_template_tags})$", RE_FLAGS_IX
2347
+ )
2348
+
2349
+ def _editorconfig_for(self, file: Path) -> dict[str, int]:
2350
+ folder = file.parent
2351
+ if folder not in self._editorconfig_files:
2352
+ self._editorconfig_files[folder] = editorconfig_files(folder, self.project_root)
2353
+ return editorconfig_for(file, self._editorconfig_files[folder])
2354
+
2355
+ def for_file(self, file: Path) -> Config:
2356
+ """This configuration with the .editorconfig of a file, where it applies.
2357
+
2358
+ The configuration is built for the folder a run starts from, but
2359
+ editors read .editorconfig for each file, by its path. Only what the
2360
+ command line and the configuration leave to .editorconfig changes.
2361
+ """
2362
+ if not self.editorconfig_defaults:
2363
+ return self
2364
+ found = self._editorconfig_for(file.resolve())
2365
+ indent_size = (
2366
+ found.get("indent_size", 4)
2367
+ if "indent_size" in self.editorconfig_defaults
2368
+ else self.indent_size
2369
+ )
2370
+ max_line_length = (
2371
+ found.get("max_line_length", 120)
2372
+ if "max_line_length" in self.editorconfig_defaults
2373
+ else self.max_line_length
2374
+ )
2375
+ if (indent_size, max_line_length) == (self.indent_size, self.max_line_length):
2376
+ return self
2377
+ config = copy.copy(self)
2378
+ config.indent_size = indent_size
2379
+ config.indent = indent_size * " "
2380
+ config.max_line_length = max_line_length
2381
+ return config