Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ repos:
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.9.2"
hooks:
- id: pyproject-fmt
84 changes: 51 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.13", "hatch-vcs>=0.3"]
requires = [
"hatch-vcs>=0.3",
"hatchling>=1.13",
]

[project]
name = "sphinx_autodoc_typehints"
name = "sphinx-autodoc-typehints"
description = "Type hints (PEP 484) support for the Sphinx autodoc extension"
readme.file = "README.md"
readme.content-type = "text/markdown"
keywords = ["virtual", "environments", "isolated", "testing"]
readme.file = "README.md"
keywords = [
"environments",
"isolated",
"testing",
"virtual",
]
license = "MIT"
urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints"
urls.Source = "https://github.com/tox-dev/sphinx-autodoc-typehints"
urls.Tracker = "https://github.com/tox-dev/sphinx-autodoc-typehints/issues"
urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md"
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
requires-python = ">=3.7"
dependencies = ["Sphinx>=5.3"]
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.23.4"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Documentation :: Sphinx",
]
dynamic = [
"version",
]
dependencies = [
"Sphinx>=5.3",
]
optional-dependencies.docs = [
"furo>=2022.12.7",
"sphinx>=6.1.3",
"sphinx-autodoc-typehints>=1.23.4",
]
optional-dependencies.testing = [
"covdefaults>=2.2.2",
"coverage>=7.2",
Expand All @@ -28,23 +51,29 @@ optional-dependencies.testing = [
"sphobjinv>=2.3.1",
"typing-extensions>=4.5",
]
optional-dependencies.type-comment = ['typed-ast>=1.5.4; python_version < "3.8"']
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Documentation :: Sphinx",
optional-dependencies.type-comment = [
'typed-ast>=1.5.4; python_version < "3.8"',
]
urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md"
urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints"
urls.Source = "https://github.com/tox-dev/sphinx-autodoc-typehints"
urls.Tracker = "https://github.com/tox-dev/sphinx-autodoc-typehints/issues"

[tool.hatch]
build.hooks.vcs.version-file = "src/sphinx_autodoc_typehints/version.py"
version.source = "vcs"

[tool.black]
line-length = 120

[tool.isort]
line_length = 120
profile = "black"
known_first_party = ["sphinx_autodoc_typehints", "tests"]

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.coverage]
html.show_contexts = true
html.skip_covered = false
Expand All @@ -61,17 +90,6 @@ report.omit = []
run.parallel = true
run.plugins = ["covdefaults"]

[tool.black]
line-length = 120

[tool.isort]
line_length = 120
profile = "black"
known_first_party = ["sphinx_autodoc_typehints", "tests"]

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.mypy]
python_version = "3.10"
strict = true
Expand Down