-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (132 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
141 lines (132 loc) · 3.31 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
133
134
135
136
137
138
139
140
141
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=69" ]
[project]
name = "html-to-markdown-workspace"
version = "0.0.0"
description = "Workspace-only metadata for tooling."
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
[dependency-groups]
dev = [
"covdefaults>=2.3",
"jinja2>=3.1.6",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3",
"pytest-benchmark>=5.2.3",
"pytest-cov>=7",
"pytest-mock>=3.15.1",
"pyyaml>=6.0.3",
"ruff>=0.14.10",
"uv-bump",
]
doc = [
"zensical",
]
[tool.setuptools]
packages = []
[tool.uv]
default-groups = [ "dev" ]
sources.uv-bump = { git = "https://github.com/Goldziher/uv-bump" }
workspace.members = [ "packages/python" ]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "Cargo.toml" },
{ file = "Cargo.lock" },
{ file = "packages/python/pyproject.toml" },
{ file = "crates/**/Cargo.toml" },
{ file = "crates/**/*.rs" },
]
[tool.ruff]
target-version = "py310"
line-length = 120
src = [ "packages/python/html_to_markdown", "packages/python/tests", "scripts" ]
format.docstring-code-line-length = 120
format.docstring-code-format = true
lint.select = [ "ALL" ]
lint.ignore = [
"ANN401",
"ASYNC109",
"ASYNC110",
"BLE001",
"COM812",
"D100",
"D101",
"D102",
"D103",
"D104",
"D107",
"D205",
"D301",
"E501",
"EM",
"FBT",
"FIX", # Allow todo and fixme comments
"ISC001",
"PD011",
"PGH003",
"PLR0913",
"PLR2004",
"S104",
"TD", # Allow todo and fixme comments
"TRY",
]
lint.per-file-ignores."e2e/python/**/*.*" = [ "D", "INP001", "PT018", "S" ]
lint.per-file-ignores."packages/python/tests/**/*.*" = [ "ARG", "D", "PD", "PT006", "PT013", "S" ]
lint.per-file-ignores."packages/python/tests/benchmark_*_test.py" = [ "T201" ]
lint.per-file-ignores."scripts/*.py" = [ "INP001", "S607", "T201" ]
lint.isort.known-first-party = [ "html_to_markdown", "tests" ]
lint.pydocstyle.convention = "pep257"
[tool.mypy]
python_version = "3.10"
strict = true
implicit_reexport = false
show_error_codes = true
warn_return_any = true
warn_unused_configs = true
disable_error_code = [ "import-untyped", "import-not-found" ]
namespace_packages = true
files = [ "packages/python" ]
explicit_package_bases = true
mypy_path = [ "packages/python" ]
exclude = [
"^crates/",
"^packages/typescript/",
"^packages/ruby/",
"^scripts/",
"^node_modules/",
"^dist/",
"^target/",
]
[[tool.mypy.overrides]]
module = [
"tests.*",
"html_to_markdown.tests.*",
]
disallow_any_generics = false
disallow_untyped_decorators = false
[tool.pytest]
ini_options.asyncio_mode = "auto"
ini_options.asyncio_default_fixture_loop_scope = "function"
ini_options.testpaths = [ "packages/python/tests" ]
ini_options.filterwarnings = [
"error",
"ignore::pytest.PytestConfigWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
"ignore::ResourceWarning",
]
[tool.coverage]
run.omit = [ "packages/python/tests/*" ]
run.source = [ "packages/python/html_to_markdown" ]
report.exclude_lines = [ "if TYPE_CHECKING:" ]
report.fail_under = 0
report.show_missing = true