Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (68 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (68 loc) · 2.33 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "polytypo"
version = "1.30.0"
description = "Normalize typography across languages: locale-correct quotes, dashes, ellipses and no-break spaces."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Iurii Rogulia" }]
requires-python = ">=3.10"
keywords = [
"typography",
"normalize-typography",
"i18n",
"l10n",
"locale",
"quotes",
"dashes",
"em-dash",
"ellipsis",
"apostrophe",
"punctuation",
"unicode",
"markdown",
"html",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = ["tree-sitter>=0.23", "tree-sitter-markdown>=0.5.1"]
[project.optional-dependencies]
dev = ["ruff>=0.8", "mypy>=1.13", "pytest>=8.3", "hypothesis>=6.115", "jsonschema>=4.23", "build>=1.2"]
[project.urls]
Homepage = "https://polytypo.dev/"
Repository = "https://github.com/polytypo/polytypo-python"
"Spec / canonical" = "https://github.com/polytypo/polytypo"
Issues = "https://github.com/polytypo/polytypo-python/issues"
[tool.hatch.build]
# src/polytypo/_data/ is generated by scripts/gen_data.py from vendor/polytypo-spec/ and is
# gitignored (never hand-edited, never committed) -- hatchling's default file selection is
# VCS-aware and silently excludes gitignored files from both the wheel and the sdist, so it must
# be force-included here as a build artifact. Caught by tests/packaging/test_packaging.py, which
# installs the real built wheel into a scratch venv: without this, `import polytypo` succeeds but
# every `transform()` call fails with `ModuleNotFoundError: No module named 'polytypo._data'`.
artifacts = ["src/polytypo/_data/**/*.json"]
[tool.hatch.build.targets.wheel]
packages = ["src/polytypo"]
[tool.hatch.build.targets.sdist]
include = ["src/polytypo", "vendor/polytypo-spec", "tests", "README.md", "LICENSE"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.mypy]
strict = true
python_version = "3.10"
[tool.pytest.ini_options]
testpaths = ["tests"]