1- [build-system ]
2- build-backend = " hatchling.build"
3- requires = [
4- " hatch-docstring-description" ,
5- " hatch-vcs" ,
6- " hatchling" ,
7- " typing-extensions; python_version < '3.12'" ,
8- ]
9-
10-
11- [dependency-groups ]
12- build = [" hatch" , " pip" ]
13- build-dev = [" auditwheel" , " setuptools-scm" , { include-group = " build" }]
14- dev = [
15- { include-group = " lint-format" },
16- { include-group = " pre-commit" },
17- { include-group = " test" },
18- { include-group = " type-check" },
19- ]
20- lint-format = [" flake8-carrot>=0.1.2; python_version >= '3.14'" , " ruff>=0.4" ]
21- pre-commit = [" pre-commit" ]
22- test = []
23- type-check = [" mypy>=1.12" ]
24-
25-
261[project ]
2+ name = " Pydowndoc"
3+ requires-python = " >=3.9"
4+ license = " Apache-2.0"
5+ license-files = [" LICENSE" ]
276authors = [{ name = " Matt Norton" , email = " matt@carrotmanmatt.com" }]
7+ keywords = [
8+ " AsciiDoc" ,
9+ " Hatch" ,
10+ " Hatchling" ,
11+ " Markdown" ,
12+ " Python" ,
13+ " README" ,
14+ " build" ,
15+ " converter" ,
16+ " documentation" ,
17+ " metadata" ,
18+ " packaging" ,
19+ " pypi" ,
20+ " pyproject.toml"
21+ ]
2822classifiers = [
2923 " Development Status :: 5 - Production/Stable" ,
3024 " Environment :: Console" ,
@@ -35,51 +29,54 @@ classifiers = [
3529 " Operating System :: Microsoft :: Windows" ,
3630 " Operating System :: POSIX :: Linux" ,
3731 " Programming Language :: Python :: 3 :: Only" ,
32+ " Programming Language :: Python :: 3.9" ,
3833 " Programming Language :: Python :: 3.10" ,
3934 " Programming Language :: Python :: 3.11" ,
4035 " Programming Language :: Python :: 3.12" ,
4136 " Programming Language :: Python :: 3.13" ,
4237 " Programming Language :: Python :: 3.14" ,
4338 " Programming Language :: Python :: 3.15" ,
44- " Programming Language :: Python :: 3.9" ,
4539 " Topic :: Software Development" ,
4640 " Topic :: Text Processing :: Markup" ,
47- " Typing :: Typed" ,
41+ " Typing :: Typed"
4842]
4943dependencies = [
5044 " hatchling" ,
5145 " typed_classproperties>=1.3" ,
52- " typing-extensions; python_version < '3.12'" ,
53- ]
54- dynamic = [" description" , " readme" , " version" ]
55- keywords = [
56- " AsciiDoc" ,
57- " Hatch" ,
58- " Hatchling" ,
59- " Markdown" ,
60- " Python" ,
61- " README" ,
62- " build" ,
63- " converter" ,
64- " documentation" ,
65- " metadata" ,
66- " packaging" ,
67- " pypi" ,
68- " pyproject.toml" ,
46+ " typing-extensions; python_version < '3.12'"
6947]
70- license = " Apache-2.0"
71- license-files = [" LICENSE" ]
72- name = " Pydowndoc"
7348optional-dependencies = { "bin" = [" Pydowndoc-bin" ] }
74- requires-python = " >=3.9"
75-
76- [project .entry-points .hatch ]
77- downdoc-readme = " pydowndoc.hatch_hooks"
49+ dynamic = [" description" , " readme" , " version" ]
7850
7951[project .urls ]
8052Issues = " https://github.com/CarrotManMatt/Pydowndoc/issues"
8153Repository = " https://github.com/CarrotManMatt/Pydowndoc"
8254
55+ [project .entry-points .hatch ]
56+ downdoc-readme = " pydowndoc.hatch_hooks"
57+
58+ [dependency-groups ]
59+ dev = [
60+ { include-group = " lint-format" },
61+ { include-group = " pre-commit" },
62+ { include-group = " test" },
63+ { include-group = " type-check" }
64+ ]
65+ build = [" hatch" , " pip" ]
66+ build-dev = [" auditwheel" , " setuptools-scm" , { include-group = " build" }]
67+ lint-format = [" flake8-carrot>=0.1.2; python_version >= '3.14'" , " ruff>=0.4" ]
68+ pre-commit = [" pre-commit" ]
69+ test = []
70+ type-check = [" mypy>=1.18.1" ]
71+
72+ [build-system ]
73+ requires = [
74+ " hatch-docstring-description" ,
75+ " hatch-vcs" ,
76+ " hatchling" ,
77+ " typing-extensions; python_version < '3.12'"
78+ ]
79+ build-backend = " hatchling.build"
8380
8481[tool .hatch .build ]
8582only-packages = true
@@ -89,13 +86,12 @@ artifacts = ["README.adoc"]
8986
9087[tool .hatch .metadata .hooks ]
9188custom = { readme-path = " README.adoc" }
92- docstring-description = {}
89+ docstring-description = { }
9390
9491[tool .hatch .version ]
9592raw-options = { local_scheme = " no-local-version" , version_scheme = " python-simplified-semver" }
9693source = " vcs"
9794
98-
9995[tool .mypy ]
10096check_untyped_defs = true
10197disallow_any_decorated = true
@@ -118,18 +114,20 @@ enable_error_code = [
118114 " redundant-self" ,
119115 " truthy-bool" ,
120116 " truthy-iterable" ,
121- " unused-awaitable" ,
117+ " unused-awaitable"
122118]
123119extra_checks = true
124120mypy_path = " stubs"
125121no_implicit_reexport = true
122+ strict_bytes = true
126123strict_equality = true
124+ strict_equality_for_none = true # tombi: lint.rules.key-not-allowed.disabled = true
127125warn_redundant_casts = true
128126warn_return_any = true
129127warn_unreachable = true
130128warn_unused_configs = true
131129warn_unused_ignores = true
132-
130+ warn_incomplete_stub = true
133131
134132[tool .ruff ]
135133indent-width = 4
@@ -167,7 +165,7 @@ ignore = [
167165 " TD002" ,
168166 " TD003" ,
169167 " UP037" ,
170- " W191" ,
168+ " W191"
171169]
172170select = [" ALL" , " D204" , " D213" , " D401" ]
173171task-tags = [" BUG" , " DONE" , " FIXME" , " HACK" , " IDEA" , " ISSUE" , " NOBUG" , " NOTE" , " REQ" , " TODO" ]
@@ -183,13 +181,13 @@ strict = true
183181[tool .ruff .lint .pep8-naming ]
184182classmethod-decorators = [
185183 " typed_classproperties.cached_classproperty" ,
186- " typed_classproperties.classproperty" ,
184+ " typed_classproperties.classproperty"
187185]
188186extend-ignore-names = [
189187 " BROKEN_*_MESSAGE" ,
190188 " INVALID_*_MESSAGE" ,
191189 " NO_*_MESSAGE" ,
192- " OUTPUT_CONVERSION_TO_STRING" ,
190+ " OUTPUT_CONVERSION_TO_STRING"
193191]
194192
195193[tool .ruff .lint .pycodestyle ]
@@ -200,7 +198,7 @@ max-doc-length = 95
200198convention = " google"
201199property-decorators = [
202200 " typed_classproperties.cached_classproperty" ,
203- " typed_classproperties.classproperty" ,
201+ " typed_classproperties.classproperty"
204202]
205203
206204[tool .ruff .lint .pylint ]
@@ -212,6 +210,9 @@ max-returns = 10
212210[tool .ruff .lint .pyupgrade ]
213211keep-runtime-typing = true
214212
213+ [tool .tombi .format .rules ]
214+ indent-width = 4
215+ line-width = 95
215216
216217[tool .uv ]
217218default-groups = [" dev" ]
@@ -223,7 +224,7 @@ required-environments = [
223224 " sys_platform == 'darwin' and platform_machine == 'x86_64'" ,
224225 " sys_platform == 'linux' and platform_machine == 'aarch64'" ,
225226 " sys_platform == 'linux' and platform_machine == 'x86_64'" ,
226- " sys_platform == 'win32' and platform_machine == 'AMD64'" ,
227+ " sys_platform == 'win32' and platform_machine == 'AMD64'"
227228]
228229required-version = " >=0.5.21"
229230trusted-publishing = " always"
0 commit comments