Skip to content

Commit d14ace5

Browse files
authored
Trim unused pygments formatters and CLI (#13337)
The formatters are exclusively used by the pygments CLI which is already broken because it depends on lexers we've trimmed a long time ago.
1 parent 7c12414 commit d14ace5

File tree

14 files changed

+3
-4542
lines changed

14 files changed

+3
-4542
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ drop = [
130130
"_distutils_hack",
131131
"distutils-precedence.pth",
132132
"pkg_resources/extern/",
133-
# trim vendored pygments styles and lexers
133+
# trim vendored pygments styles, lexers, formatters, and CLI
134134
"pygments/styles/[!_]*.py",
135135
'^pygments/lexers/(?!python|__init__|_mapping).*\.py$',
136+
'^pygments/formatters/(?!__init__|_mapping).*\.py$',
137+
'^pygments/cmdline\.py$',
136138
# trim rich's markdown support
137139
"rich/markdown.py",
138140
]

0 commit comments

Comments
 (0)