Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (117 loc) · 2.8 KB
/
Copy pathpyproject.toml
File metadata and controls
132 lines (117 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "wenmode"
dynamic = ["version"]
description = "A fast, composable Markdown parser and renderer toolkit."
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
{ name = "Hsiaoming Yang", email = "me@lepture.com" }
]
license = "BSD-3-Clause"
requires-python = ">=3.11"
dependencies = []
keywords = [
"commonmark",
"markdown",
"mdast",
"parser",
"renderer",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
"Topic :: Text Processing :: Markup :: Markdown",
]
[project.urls]
Homepage = "https://wenmode.lepture.com"
Repository = "https://github.com/lepture/wenmode"
Issues = "https://github.com/lepture/wenmode/issues"
Documentation = "https://wenmode.lepture.com"
Donate = "https://github.com/sponsors/lepture"
[project.scripts]
wenmode = "wenmode.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"README.rst",
"LICENSE",
"pyproject.toml",
]
[tool.hatch.version]
path = "src/wenmode/__init__.py"
[dependency-groups]
benchmark = [
"commonmark>=0.9.1",
"markdown>=3.10",
"markdown-it-py>=4.0.0",
"markdown2>=2.5.0",
"marko>=2.2.0",
"mistletoe>=1.5.0",
"mistune>=3.1.4",
]
docs = [
"sphinx",
"shibuya",
"sphinx-design",
"sphinx-iconify",
]
lint = [
"mypy>=2.3.0",
"ruff>=0.16.0",
]
release = [
"twine>=6.0.0",
]
test = [
"pytest>=8.4.0",
"pytest-cov>=7.1.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"I", # isort
"F",
]
[tool.ruff.lint.isort]
split-on-trailing-comma=false
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.mypy]
strict = true
python_version = "3.11"
files = ["src/wenmode"]
show_error_codes = true
pretty = true
[tool.coverage.run]
branch = true
source = ["wenmode"]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"pass",
"if TYPE_CHECKING:"
]