markdown-prose-hooks 0.0.1__py3-none-any.whl
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.
- markdown_prose_hooks/__init__.py +9 -0
- markdown_prose_hooks/__main__.py +19 -0
- markdown_prose_hooks/unwrap.py +1226 -0
- markdown_prose_hooks-0.0.1.dist-info/METADATA +233 -0
- markdown_prose_hooks-0.0.1.dist-info/RECORD +8 -0
- markdown_prose_hooks-0.0.1.dist-info/WHEEL +4 -0
- markdown_prose_hooks-0.0.1.dist-info/entry_points.txt +2 -0
- markdown_prose_hooks-0.0.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Entry point for ``python -m markdown_prose_hooks``.
|
|
2
|
+
|
|
3
|
+
The console script is how consumers reach the tool, and it stays the supported
|
|
4
|
+
spelling. This exists because the conformance harness needs to invoke *an*
|
|
5
|
+
implementation by path without knowing how its environment was built: a console
|
|
6
|
+
script lives wherever the installer put it, while ``-m`` resolves through
|
|
7
|
+
``sys.executable`` and works the same in a uv venv, a pre-commit environment, or
|
|
8
|
+
a plain ``pip install --user``.
|
|
9
|
+
|
|
10
|
+
``-m markdown_prose_hooks.unwrap`` would do the same job and emits a
|
|
11
|
+
``RuntimeWarning``, because ``__init__`` imports from ``unwrap`` and so leaves it
|
|
12
|
+
in ``sys.modules`` before ``runpy`` executes it. Nothing misbehaves as a result,
|
|
13
|
+
but a warning on stderr for every harness invocation is noise that has to be
|
|
14
|
+
explained every time it is read.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from markdown_prose_hooks.unwrap import main
|
|
18
|
+
|
|
19
|
+
raise SystemExit(main())
|