@djlint/linux-arm64-musl 0.0.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +675 -0
- package/README.md +3 -1
- package/package.json +1 -8
- package/python/bin/python3 +0 -0
- package/python/lib/python3.15/LICENSE.txt +277 -0
- package/python/lib/python3.15/__future__.py +147 -0
- package/python/lib/python3.15/__hello__.py +16 -0
- package/python/lib/python3.15/__phello__/__init__.py +7 -0
- package/python/lib/python3.15/__phello__/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__phello__/__pycache__/spam.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__phello__/spam.py +7 -0
- package/python/lib/python3.15/__pycache__/__future__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/__hello__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_aix_support.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_android_support.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_apple_support.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_ast_unparse.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_collections_abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_colorize.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_compat_pickle.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_ios_support.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_markupbase.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_missing_stdlib_info.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_opcode_metadata.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_osx_support.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_py_abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_py_warnings.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_pydatetime.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_pydecimal.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_pyio.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_pylong.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_sitebuiltins.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_strptime.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_sysconfigdata__linux_aarch64-linux-musl.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_threading_local.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/_weakrefset.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/annotationlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/antigravity.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/argparse.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/ast.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/base64.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/bdb.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/bisect.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/bz2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/cProfile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/calendar.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/cmd.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/code.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/codecs.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/codeop.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/colorsys.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/compileall.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/configparser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/contextlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/contextvars.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/copy.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/copyreg.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/csv.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/dataclasses.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/datetime.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/decimal.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/difflib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/dis.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/doctest.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/enum.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/filecmp.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/fileinput.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/fnmatch.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/fractions.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/ftplib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/functools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/genericpath.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/getopt.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/getpass.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/gettext.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/glob.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/graphlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/gzip.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/hashlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/heapq.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/hmac.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/imaplib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/inspect.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/io.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/ipaddress.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/keyword.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/linecache.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/locale.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/lzma.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/mailbox.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/mimetypes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/modulefinder.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/netrc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/ntpath.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/nturl2path.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/numbers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/opcode.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/operator.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/optparse.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/os.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pdb.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pickle.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pickletools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pkgutil.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/platform.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/plistlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/poplib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/posixpath.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pprint.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/profile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pstats.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pty.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/py_compile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pyclbr.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/pydoc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/queue.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/quopri.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/random.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/reprlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/rlcompleter.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/runpy.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/sched.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/secrets.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/selectors.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/shelve.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/shlex.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/shutil.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/signal.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/site.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/smtplib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/socket.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/socketserver.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/ssl.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/stat.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/statistics.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/stringprep.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/struct.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/subprocess.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/symtable.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tabnanny.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tarfile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tempfile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/textwrap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/this.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/threading.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/timeit.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/token.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tokenize.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/trace.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/traceback.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tracemalloc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/tty.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/typing.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/uuid.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/warnings.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/wave.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/weakref.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/webbrowser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/zipapp.cpython-315.pyc +0 -0
- package/python/lib/python3.15/__pycache__/zipimport.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_aix_support.py +108 -0
- package/python/lib/python3.15/_android_support.py +192 -0
- package/python/lib/python3.15/_apple_support.py +66 -0
- package/python/lib/python3.15/_ast_unparse.py +1165 -0
- package/python/lib/python3.15/_collections_abc.py +1183 -0
- package/python/lib/python3.15/_colorize.py +647 -0
- package/python/lib/python3.15/_compat_pickle.py +249 -0
- package/python/lib/python3.15/_ios_support.py +74 -0
- package/python/lib/python3.15/_markupbase.py +396 -0
- package/python/lib/python3.15/_missing_stdlib_info.py +32 -0
- package/python/lib/python3.15/_opcode_metadata.py +387 -0
- package/python/lib/python3.15/_osx_support.py +580 -0
- package/python/lib/python3.15/_py_abc.py +152 -0
- package/python/lib/python3.15/_py_warnings.py +928 -0
- package/python/lib/python3.15/_pydatetime.py +2779 -0
- package/python/lib/python3.15/_pydecimal.py +6514 -0
- package/python/lib/python3.15/_pyio.py +2788 -0
- package/python/lib/python3.15/_pylong.py +729 -0
- package/python/lib/python3.15/_pyrepl/__init__.py +19 -0
- package/python/lib/python3.15/_pyrepl/__main__.py +10 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/_module_completer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/_threading_handler.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/base_eventqueue.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/commands.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/completing_reader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/console.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/content.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/fancy_termios.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/fancycompleter.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/historical_reader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/input.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/keymap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/layout.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/main.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/pager.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/reader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/readline.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/render.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/simple_interact.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/terminfo.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/trace.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/unix_console.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/unix_eventqueue.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/windows_console.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/__pycache__/windows_eventqueue.cpython-315.pyc +0 -0
- package/python/lib/python3.15/_pyrepl/_module_completer.py +580 -0
- package/python/lib/python3.15/_pyrepl/_threading_handler.py +74 -0
- package/python/lib/python3.15/_pyrepl/base_eventqueue.py +110 -0
- package/python/lib/python3.15/_pyrepl/commands.py +521 -0
- package/python/lib/python3.15/_pyrepl/completing_reader.py +332 -0
- package/python/lib/python3.15/_pyrepl/console.py +295 -0
- package/python/lib/python3.15/_pyrepl/content.py +136 -0
- package/python/lib/python3.15/_pyrepl/fancy_termios.py +82 -0
- package/python/lib/python3.15/_pyrepl/fancycompleter.py +213 -0
- package/python/lib/python3.15/_pyrepl/historical_reader.py +423 -0
- package/python/lib/python3.15/_pyrepl/input.py +115 -0
- package/python/lib/python3.15/_pyrepl/keymap.py +213 -0
- package/python/lib/python3.15/_pyrepl/layout.py +268 -0
- package/python/lib/python3.15/_pyrepl/main.py +58 -0
- package/python/lib/python3.15/_pyrepl/mypy.ini +25 -0
- package/python/lib/python3.15/_pyrepl/pager.py +175 -0
- package/python/lib/python3.15/_pyrepl/reader.py +1035 -0
- package/python/lib/python3.15/_pyrepl/readline.py +650 -0
- package/python/lib/python3.15/_pyrepl/render.py +399 -0
- package/python/lib/python3.15/_pyrepl/simple_interact.py +185 -0
- package/python/lib/python3.15/_pyrepl/terminfo.py +488 -0
- package/python/lib/python3.15/_pyrepl/trace.py +40 -0
- package/python/lib/python3.15/_pyrepl/types.py +16 -0
- package/python/lib/python3.15/_pyrepl/unix_console.py +1085 -0
- package/python/lib/python3.15/_pyrepl/unix_eventqueue.py +77 -0
- package/python/lib/python3.15/_pyrepl/utils.py +456 -0
- package/python/lib/python3.15/_pyrepl/windows_console.py +864 -0
- package/python/lib/python3.15/_pyrepl/windows_eventqueue.py +42 -0
- package/python/lib/python3.15/_sitebuiltins.py +101 -0
- package/python/lib/python3.15/_strptime.py +851 -0
- package/python/lib/python3.15/_sysconfig_vars__linux_aarch64-linux-musl.json +1196 -0
- package/python/lib/python3.15/_sysconfigdata__linux_aarch64-linux-musl.py +1182 -0
- package/python/lib/python3.15/_threading_local.py +120 -0
- package/python/lib/python3.15/_weakrefset.py +147 -0
- package/python/lib/python3.15/abc.py +188 -0
- package/python/lib/python3.15/annotationlib.py +1220 -0
- package/python/lib/python3.15/antigravity.py +17 -0
- package/python/lib/python3.15/argparse.py +2974 -0
- package/python/lib/python3.15/ast.py +718 -0
- package/python/lib/python3.15/asyncio/__init__.py +74 -0
- package/python/lib/python3.15/asyncio/__main__.py +269 -0
- package/python/lib/python3.15/asyncio/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/base_events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/base_futures.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/base_subprocess.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/base_tasks.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/constants.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/coroutines.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/exceptions.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/format_helpers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/futures.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/graph.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/locks.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/log.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/mixins.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/proactor_events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/protocols.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/queues.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/runners.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/selector_events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/sslproto.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/staggered.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/streams.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/subprocess.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/taskgroups.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/tasks.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/threads.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/timeouts.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/tools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/transports.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/trsock.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/unix_events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/windows_events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/__pycache__/windows_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/asyncio/base_events.py +2098 -0
- package/python/lib/python3.15/asyncio/base_futures.py +67 -0
- package/python/lib/python3.15/asyncio/base_subprocess.py +327 -0
- package/python/lib/python3.15/asyncio/base_tasks.py +94 -0
- package/python/lib/python3.15/asyncio/constants.py +41 -0
- package/python/lib/python3.15/asyncio/coroutines.py +118 -0
- package/python/lib/python3.15/asyncio/events.py +881 -0
- package/python/lib/python3.15/asyncio/exceptions.py +62 -0
- package/python/lib/python3.15/asyncio/format_helpers.py +84 -0
- package/python/lib/python3.15/asyncio/futures.py +482 -0
- package/python/lib/python3.15/asyncio/graph.py +279 -0
- package/python/lib/python3.15/asyncio/locks.py +617 -0
- package/python/lib/python3.15/asyncio/log.py +7 -0
- package/python/lib/python3.15/asyncio/mixins.py +21 -0
- package/python/lib/python3.15/asyncio/proactor_events.py +923 -0
- package/python/lib/python3.15/asyncio/protocols.py +216 -0
- package/python/lib/python3.15/asyncio/queues.py +309 -0
- package/python/lib/python3.15/asyncio/runners.py +226 -0
- package/python/lib/python3.15/asyncio/selector_events.py +1351 -0
- package/python/lib/python3.15/asyncio/sslproto.py +937 -0
- package/python/lib/python3.15/asyncio/staggered.py +178 -0
- package/python/lib/python3.15/asyncio/streams.py +790 -0
- package/python/lib/python3.15/asyncio/subprocess.py +229 -0
- package/python/lib/python3.15/asyncio/taskgroups.py +334 -0
- package/python/lib/python3.15/asyncio/tasks.py +1154 -0
- package/python/lib/python3.15/asyncio/threads.py +26 -0
- package/python/lib/python3.15/asyncio/timeouts.py +183 -0
- package/python/lib/python3.15/asyncio/tools.py +289 -0
- package/python/lib/python3.15/asyncio/transports.py +337 -0
- package/python/lib/python3.15/asyncio/trsock.py +98 -0
- package/python/lib/python3.15/asyncio/unix_events.py +1031 -0
- package/python/lib/python3.15/asyncio/windows_events.py +899 -0
- package/python/lib/python3.15/asyncio/windows_utils.py +181 -0
- package/python/lib/python3.15/base64.py +498 -0
- package/python/lib/python3.15/bdb.py +1205 -0
- package/python/lib/python3.15/bisect.py +118 -0
- package/python/lib/python3.15/build-details.json +61 -0
- package/python/lib/python3.15/bz2.py +352 -0
- package/python/lib/python3.15/cProfile.py +13 -0
- package/python/lib/python3.15/calendar.py +997 -0
- package/python/lib/python3.15/cmd.py +414 -0
- package/python/lib/python3.15/code.py +396 -0
- package/python/lib/python3.15/codecs.py +1125 -0
- package/python/lib/python3.15/codeop.py +154 -0
- package/python/lib/python3.15/collections/__init__.py +1667 -0
- package/python/lib/python3.15/collections/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/colorsys.py +166 -0
- package/python/lib/python3.15/compileall.py +479 -0
- package/python/lib/python3.15/compression/__init__.py +0 -0
- package/python/lib/python3.15/compression/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/__pycache__/bz2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/__pycache__/gzip.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/__pycache__/lzma.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/__pycache__/zlib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/_common/__init__.py +0 -0
- package/python/lib/python3.15/compression/_common/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/_common/__pycache__/_streams.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/_common/_streams.py +162 -0
- package/python/lib/python3.15/compression/bz2.py +5 -0
- package/python/lib/python3.15/compression/gzip.py +5 -0
- package/python/lib/python3.15/compression/lzma.py +5 -0
- package/python/lib/python3.15/compression/zlib.py +5 -0
- package/python/lib/python3.15/compression/zstd/__init__.py +244 -0
- package/python/lib/python3.15/compression/zstd/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/zstd/__pycache__/_zstdfile.cpython-315.pyc +0 -0
- package/python/lib/python3.15/compression/zstd/_zstdfile.py +347 -0
- package/python/lib/python3.15/concurrent/__init__.py +1 -0
- package/python/lib/python3.15/concurrent/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/__init__.py +51 -0
- package/python/lib/python3.15/concurrent/futures/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/__pycache__/_base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/__pycache__/interpreter.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/__pycache__/process.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/__pycache__/thread.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/futures/_base.py +707 -0
- package/python/lib/python3.15/concurrent/futures/interpreter.py +123 -0
- package/python/lib/python3.15/concurrent/futures/process.py +1060 -0
- package/python/lib/python3.15/concurrent/futures/thread.py +274 -0
- package/python/lib/python3.15/concurrent/interpreters/__init__.py +253 -0
- package/python/lib/python3.15/concurrent/interpreters/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/interpreters/__pycache__/_crossinterp.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/interpreters/__pycache__/_queues.cpython-315.pyc +0 -0
- package/python/lib/python3.15/concurrent/interpreters/_crossinterp.py +107 -0
- package/python/lib/python3.15/concurrent/interpreters/_queues.py +289 -0
- package/python/lib/python3.15/configparser.py +1426 -0
- package/python/lib/python3.15/contextlib.py +859 -0
- package/python/lib/python3.15/contextvars.py +8 -0
- package/python/lib/python3.15/copy.py +300 -0
- package/python/lib/python3.15/copyreg.py +222 -0
- package/python/lib/python3.15/csv.py +536 -0
- package/python/lib/python3.15/ctypes/__init__.py +684 -0
- package/python/lib/python3.15/ctypes/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/__pycache__/_aix.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/__pycache__/_endian.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/__pycache__/_layout.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/__pycache__/wintypes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/_aix.py +327 -0
- package/python/lib/python3.15/ctypes/_endian.py +78 -0
- package/python/lib/python3.15/ctypes/_layout.py +331 -0
- package/python/lib/python3.15/ctypes/macholib/README.ctypes +7 -0
- package/python/lib/python3.15/ctypes/macholib/__init__.py +15 -0
- package/python/lib/python3.15/ctypes/macholib/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/macholib/__pycache__/dyld.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/macholib/__pycache__/dylib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/macholib/__pycache__/framework.cpython-315.pyc +0 -0
- package/python/lib/python3.15/ctypes/macholib/dyld.py +165 -0
- package/python/lib/python3.15/ctypes/macholib/dylib.py +42 -0
- package/python/lib/python3.15/ctypes/macholib/fetch_macholib +2 -0
- package/python/lib/python3.15/ctypes/macholib/fetch_macholib.bat +1 -0
- package/python/lib/python3.15/ctypes/macholib/framework.py +42 -0
- package/python/lib/python3.15/ctypes/util.py +503 -0
- package/python/lib/python3.15/ctypes/wintypes.py +210 -0
- package/python/lib/python3.15/curses/__init__.py +101 -0
- package/python/lib/python3.15/curses/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/curses/__pycache__/ascii.cpython-315.pyc +0 -0
- package/python/lib/python3.15/curses/__pycache__/has_key.cpython-315.pyc +0 -0
- package/python/lib/python3.15/curses/__pycache__/panel.cpython-315.pyc +0 -0
- package/python/lib/python3.15/curses/__pycache__/textpad.cpython-315.pyc +0 -0
- package/python/lib/python3.15/curses/ascii.py +99 -0
- package/python/lib/python3.15/curses/has_key.py +192 -0
- package/python/lib/python3.15/curses/panel.py +6 -0
- package/python/lib/python3.15/curses/textpad.py +236 -0
- package/python/lib/python3.15/dataclasses.py +1826 -0
- package/python/lib/python3.15/datetime.py +13 -0
- package/python/lib/python3.15/dbm/__init__.py +194 -0
- package/python/lib/python3.15/dbm/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/dbm/__pycache__/dumb.cpython-315.pyc +0 -0
- package/python/lib/python3.15/dbm/__pycache__/gnu.cpython-315.pyc +0 -0
- package/python/lib/python3.15/dbm/__pycache__/ndbm.cpython-315.pyc +0 -0
- package/python/lib/python3.15/dbm/__pycache__/sqlite3.cpython-315.pyc +0 -0
- package/python/lib/python3.15/dbm/dumb.py +346 -0
- package/python/lib/python3.15/dbm/gnu.py +3 -0
- package/python/lib/python3.15/dbm/ndbm.py +3 -0
- package/python/lib/python3.15/dbm/sqlite3.py +148 -0
- package/python/lib/python3.15/decimal.py +109 -0
- package/python/lib/python3.15/difflib.py +2105 -0
- package/python/lib/python3.15/dis.py +1172 -0
- package/python/lib/python3.15/doctest.py +2998 -0
- package/python/lib/python3.15/email/__init__.py +61 -0
- package/python/lib/python3.15/email/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/_encoded_words.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/_header_value_parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/_parseaddr.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/_policybase.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/base64mime.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/charset.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/contentmanager.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/encoders.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/errors.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/feedparser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/generator.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/header.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/headerregistry.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/iterators.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/message.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/policy.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/quoprimime.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/__pycache__/utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/_encoded_words.py +233 -0
- package/python/lib/python3.15/email/_header_value_parser.py +3216 -0
- package/python/lib/python3.15/email/_parseaddr.py +563 -0
- package/python/lib/python3.15/email/_policybase.py +392 -0
- package/python/lib/python3.15/email/architecture.rst +216 -0
- package/python/lib/python3.15/email/base64mime.py +114 -0
- package/python/lib/python3.15/email/charset.py +442 -0
- package/python/lib/python3.15/email/contentmanager.py +242 -0
- package/python/lib/python3.15/email/encoders.py +65 -0
- package/python/lib/python3.15/email/errors.py +117 -0
- package/python/lib/python3.15/email/feedparser.py +536 -0
- package/python/lib/python3.15/email/generator.py +530 -0
- package/python/lib/python3.15/email/header.py +582 -0
- package/python/lib/python3.15/email/headerregistry.py +616 -0
- package/python/lib/python3.15/email/iterators.py +68 -0
- package/python/lib/python3.15/email/message.py +1217 -0
- package/python/lib/python3.15/email/mime/__init__.py +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/application.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/audio.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/image.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/message.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/multipart.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/nonmultipart.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/__pycache__/text.cpython-315.pyc +0 -0
- package/python/lib/python3.15/email/mime/application.py +37 -0
- package/python/lib/python3.15/email/mime/audio.py +97 -0
- package/python/lib/python3.15/email/mime/base.py +29 -0
- package/python/lib/python3.15/email/mime/image.py +152 -0
- package/python/lib/python3.15/email/mime/message.py +33 -0
- package/python/lib/python3.15/email/mime/multipart.py +47 -0
- package/python/lib/python3.15/email/mime/nonmultipart.py +21 -0
- package/python/lib/python3.15/email/mime/text.py +40 -0
- package/python/lib/python3.15/email/parser.py +127 -0
- package/python/lib/python3.15/email/policy.py +239 -0
- package/python/lib/python3.15/email/quoprimime.py +300 -0
- package/python/lib/python3.15/email/utils.py +493 -0
- package/python/lib/python3.15/encodings/__init__.py +178 -0
- package/python/lib/python3.15/encodings/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/_win_cp_codecs.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/aliases.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/ascii.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/base64_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/big5.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/big5hkscs.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/bz2_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/charmap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp037.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1006.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1026.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1125.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1140.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1250.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1251.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1252.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1253.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1254.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1255.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1256.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1257.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp1258.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp273.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp424.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp437.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp500.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp720.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp737.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp775.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp850.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp852.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp855.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp856.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp857.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp858.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp860.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp861.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp862.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp863.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp864.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp865.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp866.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp869.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp874.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp875.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp932.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp949.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/cp950.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/euc_jis_2004.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/euc_jisx0213.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/euc_jp.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/euc_kr.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/gb18030.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/gb2312.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/gbk.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/hex_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/hp_roman8.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/hz.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/idna.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_1.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2004.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_3.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_ext.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso2022_kr.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_1.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_10.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_11.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_13.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_14.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_15.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_16.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_3.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_4.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_5.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_6.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_7.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_8.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/iso8859_9.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/johab.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/koi8_r.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/koi8_t.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/koi8_u.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/kz1048.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/latin_1.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_arabic.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_croatian.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_cyrillic.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_farsi.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_greek.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_iceland.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_latin2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_roman.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_romanian.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mac_turkish.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/mbcs.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/oem.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/palmos.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/ptcp154.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/punycode.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/quopri_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/raw_unicode_escape.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/rot_13.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/shift_jis.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/shift_jis_2004.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/shift_jisx0213.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/tis_620.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/undefined.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/unicode_escape.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_16.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_16_be.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_16_le.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_32.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_32_be.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_32_le.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_7.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_8.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/utf_8_sig.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/uu_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/__pycache__/zlib_codec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/encodings/_win_cp_codecs.py +36 -0
- package/python/lib/python3.15/encodings/aliases.py +627 -0
- package/python/lib/python3.15/encodings/ascii.py +50 -0
- package/python/lib/python3.15/encodings/base64_codec.py +55 -0
- package/python/lib/python3.15/encodings/big5.py +39 -0
- package/python/lib/python3.15/encodings/big5hkscs.py +39 -0
- package/python/lib/python3.15/encodings/bz2_codec.py +78 -0
- package/python/lib/python3.15/encodings/charmap.py +69 -0
- package/python/lib/python3.15/encodings/cp037.py +307 -0
- package/python/lib/python3.15/encodings/cp1006.py +307 -0
- package/python/lib/python3.15/encodings/cp1026.py +307 -0
- package/python/lib/python3.15/encodings/cp1125.py +698 -0
- package/python/lib/python3.15/encodings/cp1140.py +307 -0
- package/python/lib/python3.15/encodings/cp1250.py +307 -0
- package/python/lib/python3.15/encodings/cp1251.py +307 -0
- package/python/lib/python3.15/encodings/cp1252.py +307 -0
- package/python/lib/python3.15/encodings/cp1253.py +307 -0
- package/python/lib/python3.15/encodings/cp1254.py +307 -0
- package/python/lib/python3.15/encodings/cp1255.py +307 -0
- package/python/lib/python3.15/encodings/cp1256.py +307 -0
- package/python/lib/python3.15/encodings/cp1257.py +307 -0
- package/python/lib/python3.15/encodings/cp1258.py +307 -0
- package/python/lib/python3.15/encodings/cp273.py +307 -0
- package/python/lib/python3.15/encodings/cp424.py +307 -0
- package/python/lib/python3.15/encodings/cp437.py +698 -0
- package/python/lib/python3.15/encodings/cp500.py +307 -0
- package/python/lib/python3.15/encodings/cp720.py +309 -0
- package/python/lib/python3.15/encodings/cp737.py +698 -0
- package/python/lib/python3.15/encodings/cp775.py +697 -0
- package/python/lib/python3.15/encodings/cp850.py +698 -0
- package/python/lib/python3.15/encodings/cp852.py +698 -0
- package/python/lib/python3.15/encodings/cp855.py +698 -0
- package/python/lib/python3.15/encodings/cp856.py +307 -0
- package/python/lib/python3.15/encodings/cp857.py +694 -0
- package/python/lib/python3.15/encodings/cp858.py +698 -0
- package/python/lib/python3.15/encodings/cp860.py +698 -0
- package/python/lib/python3.15/encodings/cp861.py +698 -0
- package/python/lib/python3.15/encodings/cp862.py +698 -0
- package/python/lib/python3.15/encodings/cp863.py +698 -0
- package/python/lib/python3.15/encodings/cp864.py +690 -0
- package/python/lib/python3.15/encodings/cp865.py +698 -0
- package/python/lib/python3.15/encodings/cp866.py +698 -0
- package/python/lib/python3.15/encodings/cp869.py +689 -0
- package/python/lib/python3.15/encodings/cp874.py +307 -0
- package/python/lib/python3.15/encodings/cp875.py +307 -0
- package/python/lib/python3.15/encodings/cp932.py +39 -0
- package/python/lib/python3.15/encodings/cp949.py +39 -0
- package/python/lib/python3.15/encodings/cp950.py +39 -0
- package/python/lib/python3.15/encodings/euc_jis_2004.py +39 -0
- package/python/lib/python3.15/encodings/euc_jisx0213.py +39 -0
- package/python/lib/python3.15/encodings/euc_jp.py +39 -0
- package/python/lib/python3.15/encodings/euc_kr.py +39 -0
- package/python/lib/python3.15/encodings/gb18030.py +39 -0
- package/python/lib/python3.15/encodings/gb2312.py +39 -0
- package/python/lib/python3.15/encodings/gbk.py +39 -0
- package/python/lib/python3.15/encodings/hex_codec.py +55 -0
- package/python/lib/python3.15/encodings/hp_roman8.py +314 -0
- package/python/lib/python3.15/encodings/hz.py +39 -0
- package/python/lib/python3.15/encodings/idna.py +388 -0
- package/python/lib/python3.15/encodings/iso2022_jp.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_jp_1.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_jp_2.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_jp_2004.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_jp_3.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_jp_ext.py +39 -0
- package/python/lib/python3.15/encodings/iso2022_kr.py +39 -0
- package/python/lib/python3.15/encodings/iso8859_1.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_10.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_11.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_13.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_14.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_15.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_16.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_2.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_3.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_4.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_5.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_6.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_7.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_8.py +307 -0
- package/python/lib/python3.15/encodings/iso8859_9.py +307 -0
- package/python/lib/python3.15/encodings/johab.py +39 -0
- package/python/lib/python3.15/encodings/koi8_r.py +307 -0
- package/python/lib/python3.15/encodings/koi8_t.py +308 -0
- package/python/lib/python3.15/encodings/koi8_u.py +307 -0
- package/python/lib/python3.15/encodings/kz1048.py +307 -0
- package/python/lib/python3.15/encodings/latin_1.py +50 -0
- package/python/lib/python3.15/encodings/mac_arabic.py +698 -0
- package/python/lib/python3.15/encodings/mac_croatian.py +307 -0
- package/python/lib/python3.15/encodings/mac_cyrillic.py +307 -0
- package/python/lib/python3.15/encodings/mac_farsi.py +307 -0
- package/python/lib/python3.15/encodings/mac_greek.py +307 -0
- package/python/lib/python3.15/encodings/mac_iceland.py +307 -0
- package/python/lib/python3.15/encodings/mac_latin2.py +312 -0
- package/python/lib/python3.15/encodings/mac_roman.py +307 -0
- package/python/lib/python3.15/encodings/mac_romanian.py +307 -0
- package/python/lib/python3.15/encodings/mac_turkish.py +307 -0
- package/python/lib/python3.15/encodings/mbcs.py +47 -0
- package/python/lib/python3.15/encodings/oem.py +41 -0
- package/python/lib/python3.15/encodings/palmos.py +308 -0
- package/python/lib/python3.15/encodings/ptcp154.py +312 -0
- package/python/lib/python3.15/encodings/punycode.py +253 -0
- package/python/lib/python3.15/encodings/quopri_codec.py +56 -0
- package/python/lib/python3.15/encodings/raw_unicode_escape.py +46 -0
- package/python/lib/python3.15/encodings/rot_13.py +113 -0
- package/python/lib/python3.15/encodings/shift_jis.py +39 -0
- package/python/lib/python3.15/encodings/shift_jis_2004.py +39 -0
- package/python/lib/python3.15/encodings/shift_jisx0213.py +39 -0
- package/python/lib/python3.15/encodings/tis_620.py +307 -0
- package/python/lib/python3.15/encodings/undefined.py +49 -0
- package/python/lib/python3.15/encodings/unicode_escape.py +46 -0
- package/python/lib/python3.15/encodings/utf_16.py +155 -0
- package/python/lib/python3.15/encodings/utf_16_be.py +42 -0
- package/python/lib/python3.15/encodings/utf_16_le.py +42 -0
- package/python/lib/python3.15/encodings/utf_32.py +150 -0
- package/python/lib/python3.15/encodings/utf_32_be.py +37 -0
- package/python/lib/python3.15/encodings/utf_32_le.py +37 -0
- package/python/lib/python3.15/encodings/utf_7.py +38 -0
- package/python/lib/python3.15/encodings/utf_8.py +42 -0
- package/python/lib/python3.15/encodings/utf_8_sig.py +130 -0
- package/python/lib/python3.15/encodings/uu_codec.py +103 -0
- package/python/lib/python3.15/encodings/zlib_codec.py +77 -0
- package/python/lib/python3.15/enum.py +2198 -0
- package/python/lib/python3.15/filecmp.py +320 -0
- package/python/lib/python3.15/fileinput.py +442 -0
- package/python/lib/python3.15/fnmatch.py +209 -0
- package/python/lib/python3.15/fractions.py +1078 -0
- package/python/lib/python3.15/ftplib.py +975 -0
- package/python/lib/python3.15/functools.py +1208 -0
- package/python/lib/python3.15/genericpath.py +220 -0
- package/python/lib/python3.15/getopt.py +232 -0
- package/python/lib/python3.15/getpass.py +450 -0
- package/python/lib/python3.15/gettext.py +661 -0
- package/python/lib/python3.15/glob.py +553 -0
- package/python/lib/python3.15/graphlib.py +309 -0
- package/python/lib/python3.15/gzip.py +754 -0
- package/python/lib/python3.15/hashlib.py +297 -0
- package/python/lib/python3.15/heapq.py +611 -0
- package/python/lib/python3.15/hmac.py +293 -0
- package/python/lib/python3.15/html/__init__.py +132 -0
- package/python/lib/python3.15/html/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/html/__pycache__/entities.cpython-315.pyc +0 -0
- package/python/lib/python3.15/html/__pycache__/parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/html/entities.py +2513 -0
- package/python/lib/python3.15/html/parser.py +583 -0
- package/python/lib/python3.15/http/__init__.py +213 -0
- package/python/lib/python3.15/http/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/http/__pycache__/client.cpython-315.pyc +0 -0
- package/python/lib/python3.15/http/__pycache__/cookiejar.cpython-315.pyc +0 -0
- package/python/lib/python3.15/http/__pycache__/cookies.cpython-315.pyc +0 -0
- package/python/lib/python3.15/http/__pycache__/server.cpython-315.pyc +0 -0
- package/python/lib/python3.15/http/client.py +1614 -0
- package/python/lib/python3.15/http/cookiejar.py +2138 -0
- package/python/lib/python3.15/http/cookies.py +652 -0
- package/python/lib/python3.15/http/server.py +1177 -0
- package/python/lib/python3.15/imaplib.py +2106 -0
- package/python/lib/python3.15/importlib/__init__.py +136 -0
- package/python/lib/python3.15/importlib/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/_abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/_bootstrap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/_bootstrap_external.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/machinery.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/readers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/simple.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/_abc.py +21 -0
- package/python/lib/python3.15/importlib/_bootstrap.py +1553 -0
- package/python/lib/python3.15/importlib/_bootstrap_external.py +1591 -0
- package/python/lib/python3.15/importlib/abc.py +251 -0
- package/python/lib/python3.15/importlib/machinery.py +51 -0
- package/python/lib/python3.15/importlib/metadata/__init__.py +1206 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_adapters.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_collections.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_context.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_functools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_itertools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_meta.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_text.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/_typing.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/__pycache__/diagnose.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/metadata/_adapters.py +136 -0
- package/python/lib/python3.15/importlib/metadata/_collections.py +34 -0
- package/python/lib/python3.15/importlib/metadata/_context.py +118 -0
- package/python/lib/python3.15/importlib/metadata/_functools.py +136 -0
- package/python/lib/python3.15/importlib/metadata/_itertools.py +171 -0
- package/python/lib/python3.15/importlib/metadata/_meta.py +71 -0
- package/python/lib/python3.15/importlib/metadata/_text.py +99 -0
- package/python/lib/python3.15/importlib/metadata/_typing.py +15 -0
- package/python/lib/python3.15/importlib/metadata/diagnose.py +21 -0
- package/python/lib/python3.15/importlib/readers.py +12 -0
- package/python/lib/python3.15/importlib/resources/__init__.py +40 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/_adapters.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/_common.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/_functional.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/_itertools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/abc.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/readers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/__pycache__/simple.cpython-315.pyc +0 -0
- package/python/lib/python3.15/importlib/resources/_adapters.py +168 -0
- package/python/lib/python3.15/importlib/resources/_common.py +191 -0
- package/python/lib/python3.15/importlib/resources/_functional.py +84 -0
- package/python/lib/python3.15/importlib/resources/_itertools.py +38 -0
- package/python/lib/python3.15/importlib/resources/abc.py +189 -0
- package/python/lib/python3.15/importlib/resources/readers.py +202 -0
- package/python/lib/python3.15/importlib/resources/simple.py +106 -0
- package/python/lib/python3.15/importlib/simple.py +14 -0
- package/python/lib/python3.15/importlib/util.py +279 -0
- package/python/lib/python3.15/inspect.py +3511 -0
- package/python/lib/python3.15/io.py +150 -0
- package/python/lib/python3.15/ipaddress.py +2431 -0
- package/python/lib/python3.15/json/__init__.py +395 -0
- package/python/lib/python3.15/json/__main__.py +20 -0
- package/python/lib/python3.15/json/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/__pycache__/decoder.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/__pycache__/encoder.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/__pycache__/scanner.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/__pycache__/tool.cpython-315.pyc +0 -0
- package/python/lib/python3.15/json/decoder.py +377 -0
- package/python/lib/python3.15/json/encoder.py +459 -0
- package/python/lib/python3.15/json/scanner.py +74 -0
- package/python/lib/python3.15/json/tool.py +123 -0
- package/python/lib/python3.15/keyword.py +65 -0
- package/python/lib/python3.15/lib-dynload/.empty +0 -0
- package/python/lib/python3.15/lib-dynload/_dbm.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/linecache.py +339 -0
- package/python/lib/python3.15/locale.py +2007 -0
- package/python/lib/python3.15/logging/__init__.py +2369 -0
- package/python/lib/python3.15/logging/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/logging/__pycache__/config.cpython-315.pyc +0 -0
- package/python/lib/python3.15/logging/__pycache__/handlers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/logging/config.py +1093 -0
- package/python/lib/python3.15/logging/handlers.py +1667 -0
- package/python/lib/python3.15/lzma.py +364 -0
- package/python/lib/python3.15/mailbox.py +2225 -0
- package/python/lib/python3.15/mimetypes.py +768 -0
- package/python/lib/python3.15/modulefinder.py +680 -0
- package/python/lib/python3.15/multiprocessing/__init__.py +37 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/connection.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/context.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/forkserver.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/heap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/managers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/pool.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/popen_fork.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/popen_forkserver.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_posix.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_win32.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/process.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/queues.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/reduction.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/resource_sharer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/resource_tracker.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/shared_memory.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/sharedctypes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/spawn.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/synchronize.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/connection.py +1240 -0
- package/python/lib/python3.15/multiprocessing/context.py +408 -0
- package/python/lib/python3.15/multiprocessing/dummy/__init__.py +126 -0
- package/python/lib/python3.15/multiprocessing/dummy/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/dummy/__pycache__/connection.cpython-315.pyc +0 -0
- package/python/lib/python3.15/multiprocessing/dummy/connection.py +75 -0
- package/python/lib/python3.15/multiprocessing/forkserver.py +493 -0
- package/python/lib/python3.15/multiprocessing/heap.py +333 -0
- package/python/lib/python3.15/multiprocessing/managers.py +1438 -0
- package/python/lib/python3.15/multiprocessing/pool.py +957 -0
- package/python/lib/python3.15/multiprocessing/popen_fork.py +100 -0
- package/python/lib/python3.15/multiprocessing/popen_forkserver.py +74 -0
- package/python/lib/python3.15/multiprocessing/popen_spawn_posix.py +76 -0
- package/python/lib/python3.15/multiprocessing/popen_spawn_win32.py +147 -0
- package/python/lib/python3.15/multiprocessing/process.py +443 -0
- package/python/lib/python3.15/multiprocessing/queues.py +399 -0
- package/python/lib/python3.15/multiprocessing/reduction.py +281 -0
- package/python/lib/python3.15/multiprocessing/resource_sharer.py +154 -0
- package/python/lib/python3.15/multiprocessing/resource_tracker.py +495 -0
- package/python/lib/python3.15/multiprocessing/shared_memory.py +544 -0
- package/python/lib/python3.15/multiprocessing/sharedctypes.py +245 -0
- package/python/lib/python3.15/multiprocessing/spawn.py +307 -0
- package/python/lib/python3.15/multiprocessing/synchronize.py +411 -0
- package/python/lib/python3.15/multiprocessing/util.py +619 -0
- package/python/lib/python3.15/netrc.py +205 -0
- package/python/lib/python3.15/ntpath.py +896 -0
- package/python/lib/python3.15/nturl2path.py +82 -0
- package/python/lib/python3.15/numbers.py +427 -0
- package/python/lib/python3.15/opcode.py +135 -0
- package/python/lib/python3.15/operator.py +475 -0
- package/python/lib/python3.15/optparse.py +1673 -0
- package/python/lib/python3.15/os.py +1217 -0
- package/python/lib/python3.15/pathlib/__init__.py +1508 -0
- package/python/lib/python3.15/pathlib/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/pathlib/__pycache__/_local.cpython-315.pyc +0 -0
- package/python/lib/python3.15/pathlib/__pycache__/_os.cpython-315.pyc +0 -0
- package/python/lib/python3.15/pathlib/__pycache__/types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/pathlib/_local.py +12 -0
- package/python/lib/python3.15/pathlib/_os.py +303 -0
- package/python/lib/python3.15/pathlib/types.py +476 -0
- package/python/lib/python3.15/pdb.py +3899 -0
- package/python/lib/python3.15/pickle.py +1955 -0
- package/python/lib/python3.15/pickletools.py +2934 -0
- package/python/lib/python3.15/pkgutil.py +492 -0
- package/python/lib/python3.15/platform.py +1446 -0
- package/python/lib/python3.15/plistlib.py +949 -0
- package/python/lib/python3.15/poplib.py +479 -0
- package/python/lib/python3.15/posixpath.py +597 -0
- package/python/lib/python3.15/pprint.py +972 -0
- package/python/lib/python3.15/profile.py +623 -0
- package/python/lib/python3.15/profiling/__init__.py +13 -0
- package/python/lib/python3.15/profiling/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__init__.py +23 -0
- package/python/lib/python3.15/profiling/sampling/__main__.py +73 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/_child_monitor.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/_css_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/_format_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/_sync_coordinator.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/binary_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/binary_reader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/cli.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/constants.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/dump.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/errors.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/gecko_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/heatmap_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/jsonl_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/module_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/opcode_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/pstats_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/sample.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/stack_collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/__pycache__/string_table.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/_assets/python-logo-only.png +0 -0
- package/python/lib/python3.15/profiling/sampling/_assets/tachyon-logo.png +0 -0
- package/python/lib/python3.15/profiling/sampling/_child_monitor.py +279 -0
- package/python/lib/python3.15/profiling/sampling/_css_utils.py +22 -0
- package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.css +1085 -0
- package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.js +1528 -0
- package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph_template.html +464 -0
- package/python/lib/python3.15/profiling/sampling/_format_utils.py +5 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.css +1555 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.js +738 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index.js +104 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index_template.html +136 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_pyfile_template.html +131 -0
- package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_shared.js +64 -0
- package/python/lib/python3.15/profiling/sampling/_shared_assets/base.css +514 -0
- package/python/lib/python3.15/profiling/sampling/_shared_assets/base.js +58 -0
- package/python/lib/python3.15/profiling/sampling/_sync_coordinator.py +261 -0
- package/python/lib/python3.15/profiling/sampling/_vendor/d3/7.8.5/d3.min.js +2 -0
- package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph-tooltip.min.js +1 -0
- package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.css +46 -0
- package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.min.js +1 -0
- package/python/lib/python3.15/profiling/sampling/binary_collector.py +159 -0
- package/python/lib/python3.15/profiling/sampling/binary_reader.py +148 -0
- package/python/lib/python3.15/profiling/sampling/cli.py +1462 -0
- package/python/lib/python3.15/profiling/sampling/collector.py +292 -0
- package/python/lib/python3.15/profiling/sampling/constants.py +57 -0
- package/python/lib/python3.15/profiling/sampling/dump.py +295 -0
- package/python/lib/python3.15/profiling/sampling/errors.py +19 -0
- package/python/lib/python3.15/profiling/sampling/gecko_collector.py +1006 -0
- package/python/lib/python3.15/profiling/sampling/heatmap_collector.py +1145 -0
- package/python/lib/python3.15/profiling/sampling/jsonl_collector.py +268 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__init__.py +200 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/collector.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/constants.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/display.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/trend_tracker.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/widgets.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/collector.py +1112 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/constants.py +65 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/display.py +240 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/trend_tracker.py +157 -0
- package/python/lib/python3.15/profiling/sampling/live_collector/widgets.py +1090 -0
- package/python/lib/python3.15/profiling/sampling/module_utils.py +102 -0
- package/python/lib/python3.15/profiling/sampling/opcode_utils.py +94 -0
- package/python/lib/python3.15/profiling/sampling/pstats_collector.py +429 -0
- package/python/lib/python3.15/profiling/sampling/sample.py +665 -0
- package/python/lib/python3.15/profiling/sampling/stack_collector.py +928 -0
- package/python/lib/python3.15/profiling/sampling/string_table.py +53 -0
- package/python/lib/python3.15/profiling/tracing/__init__.py +220 -0
- package/python/lib/python3.15/profiling/tracing/__main__.py +6 -0
- package/python/lib/python3.15/profiling/tracing/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/tracing/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/tracing/__pycache__/_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/profiling/tracing/_utils.py +32 -0
- package/python/lib/python3.15/pstats.py +840 -0
- package/python/lib/python3.15/pty.py +182 -0
- package/python/lib/python3.15/py_compile.py +214 -0
- package/python/lib/python3.15/pyclbr.py +313 -0
- package/python/lib/python3.15/pydoc.py +2843 -0
- package/python/lib/python3.15/queue.py +385 -0
- package/python/lib/python3.15/quopri.py +235 -0
- package/python/lib/python3.15/random.py +1087 -0
- package/python/lib/python3.15/re/__init__.py +442 -0
- package/python/lib/python3.15/re/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/re/__pycache__/_casefix.cpython-315.pyc +0 -0
- package/python/lib/python3.15/re/__pycache__/_compiler.cpython-315.pyc +0 -0
- package/python/lib/python3.15/re/__pycache__/_constants.cpython-315.pyc +0 -0
- package/python/lib/python3.15/re/__pycache__/_parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/re/_casefix.py +106 -0
- package/python/lib/python3.15/re/_compiler.py +782 -0
- package/python/lib/python3.15/re/_constants.py +224 -0
- package/python/lib/python3.15/re/_parser.py +1065 -0
- package/python/lib/python3.15/reprlib.py +230 -0
- package/python/lib/python3.15/rlcompleter.py +232 -0
- package/python/lib/python3.15/runpy.py +324 -0
- package/python/lib/python3.15/sched.py +167 -0
- package/python/lib/python3.15/secrets.py +71 -0
- package/python/lib/python3.15/selectors.py +603 -0
- package/python/lib/python3.15/shelve.py +266 -0
- package/python/lib/python3.15/shlex.py +351 -0
- package/python/lib/python3.15/shutil.py +1663 -0
- package/python/lib/python3.15/signal.py +94 -0
- package/python/lib/python3.15/site-packages/_yaml/__init__.py +33 -0
- package/python/lib/python3.15/site-packages/_yaml/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__init__.py +144 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/_compat.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/_termui_impl.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/_textwrap.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/_winconsole.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/core.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/decorators.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/exceptions.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/formatting.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/globals.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/shell_completion.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/termui.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/testing.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/__pycache__/utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/click/_compat.py +590 -0
- package/python/lib/python3.15/site-packages/click/_termui_impl.py +970 -0
- package/python/lib/python3.15/site-packages/click/_textwrap.py +188 -0
- package/python/lib/python3.15/site-packages/click/_utils.py +45 -0
- package/python/lib/python3.15/site-packages/click/_winconsole.py +292 -0
- package/python/lib/python3.15/site-packages/click/core.py +3825 -0
- package/python/lib/python3.15/site-packages/click/decorators.py +625 -0
- package/python/lib/python3.15/site-packages/click/exceptions.py +378 -0
- package/python/lib/python3.15/site-packages/click/formatting.py +320 -0
- package/python/lib/python3.15/site-packages/click/globals.py +67 -0
- package/python/lib/python3.15/site-packages/click/parser.py +533 -0
- package/python/lib/python3.15/site-packages/click/py.typed +0 -0
- package/python/lib/python3.15/site-packages/click/shell_completion.py +796 -0
- package/python/lib/python3.15/site-packages/click/termui.py +1024 -0
- package/python/lib/python3.15/site-packages/click/testing.py +796 -0
- package/python/lib/python3.15/site-packages/click/types.py +1437 -0
- package/python/lib/python3.15/site-packages/click/utils.py +676 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/METADATA +83 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/RECORD +24 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
- package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/__init__.py +51 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/_main.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/__version__.py +1 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/_main.py +208 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/options.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/beautifier.py +559 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/css/options.py +60 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.15/site-packages/djlint/__init__.py +27 -0
- package/python/lib/python3.15/site-packages/djlint/__main__.py +8 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/_cli.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/api.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/const.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/github_output.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/helpers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/lint.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/output.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/reformat.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/sarif_output.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/server.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/settings.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/__pycache__/src.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/_cli.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/_cli.py +1006 -0
- package/python/lib/python3.15/site-packages/djlint/api.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/api.py +106 -0
- package/python/lib/python3.15/site-packages/djlint/const.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/const.py +506 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__init__.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__init__.py +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attributes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/beautifier.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/compress.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/condense.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/css.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/endblocks.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/entities.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/expand.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/indent.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/js.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/load_tags.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/mako.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.py +152 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/attributes.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/attributes.py +580 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.py +144 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.py +318 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/compress.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/compress.py +158 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/condense.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/condense.py +503 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/css.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/css.py +28 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.py +68 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/entities.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/entities.py +39 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/expand.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/expand.py +576 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/indent.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/indent.py +1239 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/js.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/js.py +82 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.py +60 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/mako.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/mako.py +501 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.py +359 -0
- package/python/lib/python3.15/site-packages/djlint/github_output.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/github_output.py +117 -0
- package/python/lib/python3.15/site-packages/djlint/helpers.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/helpers.py +979 -0
- package/python/lib/python3.15/site-packages/djlint/lint.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/lint.py +246 -0
- package/python/lib/python3.15/site-packages/djlint/output.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/output.py +250 -0
- package/python/lib/python3.15/site-packages/djlint/py.typed +0 -0
- package/python/lib/python3.15/site-packages/djlint/reformat.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/reformat.py +130 -0
- package/python/lib/python3.15/site-packages/djlint/rules/D058.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/D058.py +78 -0
- package/python/lib/python3.15/site-packages/djlint/rules/D059.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/D059.py +139 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H009.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H009.py +54 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H012.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H012.py +240 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H014.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H014.py +68 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H016.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H016.py +83 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H022.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H022.py +161 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H025.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H025.py +141 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H036.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H036.py +183 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H037.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H037.py +138 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H041.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H041.py +113 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H042.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H042.py +199 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H044.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H044.py +119 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H047.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H047.py +118 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H048.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H048.py +82 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H051.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H051.py +98 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H053.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H053.py +361 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H054.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H054.py +264 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H057.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/H057.py +235 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T001.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T001.py +103 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T002.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T002.py +75 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T003.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T003.py +93 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T027.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T027.py +183 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T038.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T038.py +152 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T039.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T039.py +167 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T041.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T041.py +307 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T042.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T042.py +219 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T043.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T043.py +154 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T044.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T044.py +189 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T045.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/T045.py +281 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__init__.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__init__.py +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D058.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D059.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H009.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H012.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H014.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H016.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H022.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H025.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H036.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H037.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H041.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H042.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H044.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H047.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H048.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H051.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H053.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H054.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H057.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T001.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T002.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T003.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T027.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T038.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T039.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T041.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T042.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T043.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T044.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T045.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/djlint/rules.yaml +482 -0
- package/python/lib/python3.15/site-packages/djlint/sarif_output.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/sarif_output.py +171 -0
- package/python/lib/python3.15/site-packages/djlint/server.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/server.py +983 -0
- package/python/lib/python3.15/site-packages/djlint/settings.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/settings.py +2381 -0
- package/python/lib/python3.15/site-packages/djlint/src.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/djlint/src.py +192 -0
- package/python/lib/python3.15/site-packages/djlint/types.pyi +20 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/METADATA +236 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/RECORD +133 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE +675 -0
- package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
- package/python/lib/python3.15/site-packages/ed0510dfe26979f3c42b__mypyc.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__init__.py +20 -0
- package/python/lib/python3.15/site-packages/editorconfig/__main__.py +83 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/exceptions.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/fnmatch.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/handler.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/ini.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/version.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/__pycache__/versiontools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/exceptions.py +24 -0
- package/python/lib/python3.15/site-packages/editorconfig/fnmatch.py +224 -0
- package/python/lib/python3.15/site-packages/editorconfig/handler.py +128 -0
- package/python/lib/python3.15/site-packages/editorconfig/ini.py +173 -0
- package/python/lib/python3.15/site-packages/editorconfig/py.typed +0 -0
- package/python/lib/python3.15/site-packages/editorconfig/version.py +1 -0
- package/python/lib/python3.15/site-packages/editorconfig/versiontools.py +36 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
- package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/__init__.py +309 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/__version__.py +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/cli/__init__.py +210 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/directives.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/options.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/output.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/token.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/directives.py +55 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/inputscanner.py +139 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/options.py +230 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/output.py +352 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/pattern.py +83 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/token.py +38 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenizer.py +138 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenstream.py +74 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/acorn.py +81 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/options.py +102 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/tests/testindentation.py +49 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/packer.py +158 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
- package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.15/site-packages/json5/__init__.py +30 -0
- package/python/lib/python3.15/site-packages/json5/__main__.py +22 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/host.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/lib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/tool.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/__pycache__/version.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/json5/host.py +53 -0
- package/python/lib/python3.15/site-packages/json5/lib.py +1007 -0
- package/python/lib/python3.15/site-packages/json5/parser.py +1376 -0
- package/python/lib/python3.15/site-packages/json5/py.typed +0 -0
- package/python/lib/python3.15/site-packages/json5/tool.py +198 -0
- package/python/lib/python3.15/site-packages/json5/version.py +18 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
- package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
- package/python/lib/python3.15/site-packages/pathspec/__init__.py +68 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/_meta.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/_typing.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/_version.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/backend.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/gitignore.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/pathspec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/pattern.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/__init__.py +4 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/_utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/agg.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/_utils.py +45 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/agg.py +104 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__init__.py +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/_base.py +95 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/base.py +18 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__init__.py +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
- package/python/lib/python3.15/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
- package/python/lib/python3.15/site-packages/pathspec/_meta.py +70 -0
- package/python/lib/python3.15/site-packages/pathspec/_typing.py +64 -0
- package/python/lib/python3.15/site-packages/pathspec/_version.py +5 -0
- package/python/lib/python3.15/site-packages/pathspec/backend.py +51 -0
- package/python/lib/python3.15/site-packages/pathspec/gitignore.py +172 -0
- package/python/lib/python3.15/site-packages/pathspec/pathspec.py +527 -0
- package/python/lib/python3.15/site-packages/pathspec/pattern.py +259 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/__init__.py +12 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/base.py +210 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
- package/python/lib/python3.15/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
- package/python/lib/python3.15/site-packages/pathspec/py.typed +1 -0
- package/python/lib/python3.15/site-packages/pathspec/util.py +864 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
- package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/METADATA +58 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/RECORD +26 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/licenses/LICENSE +20 -0
- package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/top_level.txt +2 -0
- package/python/lib/python3.15/site-packages/regex/__init__.py +3 -0
- package/python/lib/python3.15/site-packages/regex/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/regex/__pycache__/_main.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/regex/__pycache__/_regex_core.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/regex/_main.py +759 -0
- package/python/lib/python3.15/site-packages/regex/_regex.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/regex/_regex_core.py +4689 -0
- package/python/lib/python3.15/site-packages/regex/tests/__pycache__/test_regex.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/regex/tests/test_regex.py +4612 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/INSTALLER +1 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/METADATA +1060 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/RECORD +12 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/REQUESTED +0 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/WHEEL +5 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/licenses/LICENSE.txt +208 -0
- package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/top_level.txt +1 -0
- package/python/lib/python3.15/site-packages/yaml/__init__.py +390 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/composer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/constructor.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/cyaml.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/dumper.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/emitter.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/error.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/events.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/loader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/nodes.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/reader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/representer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/resolver.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/scanner.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/serializer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/__pycache__/tokens.cpython-315.pyc +0 -0
- package/python/lib/python3.15/site-packages/yaml/_yaml.cpython-315-aarch64-linux-musl.so +0 -0
- package/python/lib/python3.15/site-packages/yaml/composer.py +139 -0
- package/python/lib/python3.15/site-packages/yaml/constructor.py +751 -0
- package/python/lib/python3.15/site-packages/yaml/cyaml.py +101 -0
- package/python/lib/python3.15/site-packages/yaml/dumper.py +62 -0
- package/python/lib/python3.15/site-packages/yaml/emitter.py +1137 -0
- package/python/lib/python3.15/site-packages/yaml/error.py +75 -0
- package/python/lib/python3.15/site-packages/yaml/events.py +86 -0
- package/python/lib/python3.15/site-packages/yaml/loader.py +63 -0
- package/python/lib/python3.15/site-packages/yaml/nodes.py +49 -0
- package/python/lib/python3.15/site-packages/yaml/parser.py +589 -0
- package/python/lib/python3.15/site-packages/yaml/reader.py +185 -0
- package/python/lib/python3.15/site-packages/yaml/representer.py +389 -0
- package/python/lib/python3.15/site-packages/yaml/resolver.py +227 -0
- package/python/lib/python3.15/site-packages/yaml/scanner.py +1435 -0
- package/python/lib/python3.15/site-packages/yaml/serializer.py +111 -0
- package/python/lib/python3.15/site-packages/yaml/tokens.py +104 -0
- package/python/lib/python3.15/site.py +1159 -0
- package/python/lib/python3.15/smtplib.py +1121 -0
- package/python/lib/python3.15/socket.py +1003 -0
- package/python/lib/python3.15/socketserver.py +869 -0
- package/python/lib/python3.15/sqlite3/__init__.py +57 -0
- package/python/lib/python3.15/sqlite3/__main__.py +156 -0
- package/python/lib/python3.15/sqlite3/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sqlite3/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sqlite3/__pycache__/_completer.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sqlite3/__pycache__/dbapi2.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sqlite3/__pycache__/dump.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sqlite3/_completer.py +111 -0
- package/python/lib/python3.15/sqlite3/dbapi2.py +96 -0
- package/python/lib/python3.15/sqlite3/dump.py +118 -0
- package/python/lib/python3.15/ssl.py +1600 -0
- package/python/lib/python3.15/stat.py +227 -0
- package/python/lib/python3.15/statistics.py +1880 -0
- package/python/lib/python3.15/string/__init__.py +323 -0
- package/python/lib/python3.15/string/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/string/__pycache__/templatelib.cpython-315.pyc +0 -0
- package/python/lib/python3.15/string/templatelib.py +33 -0
- package/python/lib/python3.15/stringprep.py +463 -0
- package/python/lib/python3.15/struct.py +15 -0
- package/python/lib/python3.15/subprocess.py +2509 -0
- package/python/lib/python3.15/symtable.py +452 -0
- package/python/lib/python3.15/sysconfig/__init__.py +797 -0
- package/python/lib/python3.15/sysconfig/__main__.py +250 -0
- package/python/lib/python3.15/sysconfig/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/sysconfig/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/tabnanny.py +345 -0
- package/python/lib/python3.15/tarfile.py +3259 -0
- package/python/lib/python3.15/tempfile.py +1057 -0
- package/python/lib/python3.15/textwrap.py +475 -0
- package/python/lib/python3.15/this.py +28 -0
- package/python/lib/python3.15/threading.py +1780 -0
- package/python/lib/python3.15/timeit.py +431 -0
- package/python/lib/python3.15/token.py +144 -0
- package/python/lib/python3.15/tokenize.py +644 -0
- package/python/lib/python3.15/tomllib/__init__.py +10 -0
- package/python/lib/python3.15/tomllib/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/tomllib/__pycache__/_parser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/tomllib/__pycache__/_re.cpython-315.pyc +0 -0
- package/python/lib/python3.15/tomllib/__pycache__/_types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/tomllib/_parser.py +776 -0
- package/python/lib/python3.15/tomllib/_re.py +119 -0
- package/python/lib/python3.15/tomllib/_types.py +10 -0
- package/python/lib/python3.15/tomllib/mypy.ini +15 -0
- package/python/lib/python3.15/trace.py +749 -0
- package/python/lib/python3.15/traceback.py +2090 -0
- package/python/lib/python3.15/tracemalloc.py +560 -0
- package/python/lib/python3.15/tty.py +73 -0
- package/python/lib/python3.15/types.py +355 -0
- package/python/lib/python3.15/typing.py +3949 -0
- package/python/lib/python3.15/unittest/__init__.py +80 -0
- package/python/lib/python3.15/unittest/__main__.py +18 -0
- package/python/lib/python3.15/unittest/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/_log.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/async_case.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/case.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/loader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/main.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/mock.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/result.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/runner.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/signals.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/suite.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/unittest/_log.py +87 -0
- package/python/lib/python3.15/unittest/async_case.py +158 -0
- package/python/lib/python3.15/unittest/case.py +1652 -0
- package/python/lib/python3.15/unittest/loader.py +491 -0
- package/python/lib/python3.15/unittest/main.py +280 -0
- package/python/lib/python3.15/unittest/mock.py +3212 -0
- package/python/lib/python3.15/unittest/result.py +259 -0
- package/python/lib/python3.15/unittest/runner.py +312 -0
- package/python/lib/python3.15/unittest/signals.py +71 -0
- package/python/lib/python3.15/unittest/suite.py +391 -0
- package/python/lib/python3.15/unittest/util.py +187 -0
- package/python/lib/python3.15/urllib/__init__.py +0 -0
- package/python/lib/python3.15/urllib/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/__pycache__/error.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/__pycache__/parse.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/__pycache__/request.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/__pycache__/response.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/__pycache__/robotparser.cpython-315.pyc +0 -0
- package/python/lib/python3.15/urllib/error.py +74 -0
- package/python/lib/python3.15/urllib/parse.py +1407 -0
- package/python/lib/python3.15/urllib/request.py +2177 -0
- package/python/lib/python3.15/urllib/response.py +84 -0
- package/python/lib/python3.15/urllib/robotparser.py +363 -0
- package/python/lib/python3.15/uuid.py +1013 -0
- package/python/lib/python3.15/venv/__init__.py +695 -0
- package/python/lib/python3.15/venv/__main__.py +10 -0
- package/python/lib/python3.15/venv/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/venv/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/venv/scripts/common/Activate.ps1 +248 -0
- package/python/lib/python3.15/venv/scripts/common/activate +76 -0
- package/python/lib/python3.15/venv/scripts/common/activate.fish +69 -0
- package/python/lib/python3.15/venv/scripts/posix/activate.csh +29 -0
- package/python/lib/python3.15/warnings.py +99 -0
- package/python/lib/python3.15/wave.py +704 -0
- package/python/lib/python3.15/weakref.py +576 -0
- package/python/lib/python3.15/webbrowser.py +841 -0
- package/python/lib/python3.15/wsgiref/__init__.py +25 -0
- package/python/lib/python3.15/wsgiref/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/handlers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/headers.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/simple_server.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/types.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/util.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/__pycache__/validate.cpython-315.pyc +0 -0
- package/python/lib/python3.15/wsgiref/handlers.py +576 -0
- package/python/lib/python3.15/wsgiref/headers.py +192 -0
- package/python/lib/python3.15/wsgiref/simple_server.py +169 -0
- package/python/lib/python3.15/wsgiref/types.py +54 -0
- package/python/lib/python3.15/wsgiref/util.py +159 -0
- package/python/lib/python3.15/wsgiref/validate.py +438 -0
- package/python/lib/python3.15/xml/__init__.py +21 -0
- package/python/lib/python3.15/xml/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/__pycache__/utils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/NodeFilter.py +27 -0
- package/python/lib/python3.15/xml/dom/__init__.py +140 -0
- package/python/lib/python3.15/xml/dom/__pycache__/NodeFilter.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/domreg.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/expatbuilder.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/minicompat.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/minidom.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/pulldom.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/__pycache__/xmlbuilder.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/dom/domreg.py +99 -0
- package/python/lib/python3.15/xml/dom/expatbuilder.py +964 -0
- package/python/lib/python3.15/xml/dom/minicompat.py +109 -0
- package/python/lib/python3.15/xml/dom/minidom.py +2027 -0
- package/python/lib/python3.15/xml/dom/pulldom.py +350 -0
- package/python/lib/python3.15/xml/dom/xmlbuilder.py +389 -0
- package/python/lib/python3.15/xml/etree/ElementInclude.py +186 -0
- package/python/lib/python3.15/xml/etree/ElementPath.py +430 -0
- package/python/lib/python3.15/xml/etree/ElementTree.py +2111 -0
- package/python/lib/python3.15/xml/etree/__init__.py +33 -0
- package/python/lib/python3.15/xml/etree/__pycache__/ElementInclude.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/etree/__pycache__/ElementPath.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/etree/__pycache__/ElementTree.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/etree/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/etree/__pycache__/cElementTree.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/etree/cElementTree.py +3 -0
- package/python/lib/python3.15/xml/parsers/__init__.py +8 -0
- package/python/lib/python3.15/xml/parsers/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/parsers/__pycache__/expat.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/parsers/expat.py +8 -0
- package/python/lib/python3.15/xml/sax/__init__.py +109 -0
- package/python/lib/python3.15/xml/sax/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/__pycache__/_exceptions.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/__pycache__/expatreader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/__pycache__/handler.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/__pycache__/saxutils.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/__pycache__/xmlreader.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xml/sax/_exceptions.py +127 -0
- package/python/lib/python3.15/xml/sax/expatreader.py +462 -0
- package/python/lib/python3.15/xml/sax/handler.py +394 -0
- package/python/lib/python3.15/xml/sax/saxutils.py +370 -0
- package/python/lib/python3.15/xml/sax/xmlreader.py +379 -0
- package/python/lib/python3.15/xml/utils.py +37 -0
- package/python/lib/python3.15/xmlrpc/__init__.py +1 -0
- package/python/lib/python3.15/xmlrpc/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xmlrpc/__pycache__/client.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xmlrpc/__pycache__/server.cpython-315.pyc +0 -0
- package/python/lib/python3.15/xmlrpc/client.py +1503 -0
- package/python/lib/python3.15/xmlrpc/server.py +1003 -0
- package/python/lib/python3.15/zipapp.py +231 -0
- package/python/lib/python3.15/zipfile/__init__.py +2444 -0
- package/python/lib/python3.15/zipfile/__main__.py +4 -0
- package/python/lib/python3.15/zipfile/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zipfile/__pycache__/__main__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zipfile/_path/__init__.py +456 -0
- package/python/lib/python3.15/zipfile/_path/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zipfile/_path/__pycache__/_functools.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zipfile/_path/__pycache__/glob.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zipfile/_path/_functools.py +31 -0
- package/python/lib/python3.15/zipfile/_path/glob.py +113 -0
- package/python/lib/python3.15/zipimport.py +849 -0
- package/python/lib/python3.15/zoneinfo/__init__.py +34 -0
- package/python/lib/python3.15/zoneinfo/__pycache__/__init__.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zoneinfo/__pycache__/_common.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zoneinfo/__pycache__/_tzpath.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zoneinfo/__pycache__/_zoneinfo.cpython-315.pyc +0 -0
- package/python/lib/python3.15/zoneinfo/_common.py +172 -0
- package/python/lib/python3.15/zoneinfo/_tzpath.py +193 -0
- package/python/lib/python3.15/zoneinfo/_zoneinfo.py +779 -0
- package/python/licenses/LICENSE.bdb.txt +126 -0
- package/python/licenses/LICENSE.bzip2.txt +37 -0
- package/python/licenses/LICENSE.cpython.txt +771 -0
- package/python/licenses/LICENSE.expat.txt +21 -0
- package/python/licenses/LICENSE.libX11.txt +942 -0
- package/python/licenses/LICENSE.libXau.txt +21 -0
- package/python/licenses/LICENSE.libedit.txt +29 -0
- package/python/licenses/LICENSE.libffi.txt +21 -0
- package/python/licenses/LICENSE.liblzma.txt +13 -0
- package/python/licenses/LICENSE.libuuid.txt +27 -0
- package/python/licenses/LICENSE.libxcb.txt +30 -0
- package/python/licenses/LICENSE.mpdecimal.txt +24 -0
- package/python/licenses/LICENSE.ncurses.txt +29 -0
- package/python/licenses/LICENSE.openssl-3.txt +177 -0
- package/python/licenses/LICENSE.sqlite.txt +23 -0
- package/python/licenses/LICENSE.tcl.txt +40 -0
- package/python/licenses/LICENSE.tix.txt +54 -0
- package/python/licenses/LICENSE.zlib-ng.txt +19 -0
- package/python/licenses/LICENSE.zlib.txt +22 -0
- 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><!-- 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
|