1
1
[build-system ]
2
- requires = [" setuptools>=65.3" , " setuptools_scm>=7.0.5" ]
3
- build-backend = ' setuptools.build_meta'
2
+ build-backend = " hatchling.build"
3
+ requires = [" hatchling>=1.9" , " hatch-vcs>=0.2" ]
4
+
5
+ [project ]
6
+ name = " sphinx_autodoc_typehints"
7
+ description = " Type hints (PEP 484) support for the Sphinx autodoc extension"
8
+ readme.file = " README.md"
9
+ readme.content-type = " text/markdown"
10
+ keywords = [" virtual" , " environments" , " isolated" , " testing" ]
11
+ license = " MIT"
12
+ urls.Homepage = " http://pyproject_api.readthedocs.org"
13
+ urls.Source = " https://github.com/tox-dev/sphinx-autodoc-typehints"
14
+ urls.Tracker = " https://github.com/tox-dev/sphinx-autodoc-typehints/issues"
15
+ urls.Changelog = " https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md"
16
+ authors = [{
name =
" Bernát Gábor" ,
email =
" [email protected] " }]
17
+ maintainers = [{
name =
" Bernát Gábor" ,
email =
" [email protected] " }]
18
+ requires-python = " >=3.7"
19
+ dependencies = [" Sphinx>=5.1.1" ]
20
+ optional-dependencies.docs = [" furo>=2022.6.21" , " sphinx>=5.1.1" , " sphinx-autodoc-typehints>=1.19.2" ]
21
+ optional-dependencies.testing = [
22
+ " covdefaults>=2.2" ,
23
+ " coverage>=6.4.4" ,
24
+ " diff-cover>=6.5.1" ,
25
+ " nptyping>=2.3.1" ,
26
+ " pytest>=7.1.3" ,
27
+ " pytest-cov>=3" ,
28
+ " sphobjinv>=2.2.2" ,
29
+ " typing-extensions>=4.3" ,
30
+ ]
31
+ optional-dependencies.type_comment = [' typed-ast>=1.5.4; python_version < "3.8"' ]
32
+ dynamic = [" version" ]
33
+ classifiers = [
34
+ " Development Status :: 5 - Production/Stable" ,
35
+ " Framework :: Sphinx :: Extension" ,
36
+ " Intended Audience :: Developers" ,
37
+ " License :: OSI Approved :: MIT License" ,
38
+ " Programming Language :: Python" ,
39
+ " Programming Language :: Python :: 3" ,
40
+ " Programming Language :: Python :: 3 :: Only" ,
41
+ " Topic :: Documentation :: Sphinx" ,
42
+ ]
43
+
44
+ [tool .hatch ]
45
+ build.hooks.vcs.version-file = " src/sphinx_autodoc_typehints/version.py"
46
+ version.source = " vcs"
47
+
48
+ [tool .coverage ]
49
+ html.show_contexts = true
50
+ html.skip_covered = false
51
+ paths.source = [
52
+ " src" ,
53
+ " .tox*/*/lib/python*/site-packages" ,
54
+ " .tox*/pypy*/site-packages" ,
55
+ " .tox*\\ *\\ Lib\\ site-packages" ,
56
+ " */src" ,
57
+ " *\\ src" ,
58
+ ]
59
+ report.fail_under = 81
60
+ report.omit = []
61
+ run.parallel = true
62
+ run.plugins = [" covdefaults" ]
4
63
5
64
[tool .black ]
6
65
line-length = 120
@@ -10,9 +69,6 @@ line_length = 120
10
69
profile = " black"
11
70
known_first_party = [" sphinx_autodoc_typehints" , " tests" ]
12
71
13
- [tool .setuptools_scm ]
14
- write_to = " src/sphinx_autodoc_typehints/version.py"
15
-
16
72
[tool .pytest .ini_options ]
17
73
testpaths = [" tests" ]
18
74
0 commit comments