standardize toml as per existing libs

This commit is contained in:
2026-01-20 20:54:10 +05:30
parent 778a986262
commit 09aca78ba1

View File

@@ -1,34 +1,45 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "doc-forge"
version = "0.1.0"
description = "A renderer-agnostic Python documentation compiler"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{name = "doc-forge team"},
{ name = "Aetos Skia", email = "dev@aetoskia.com" }
]
maintainers = [
{ name = "Aetos Skia", email = "dev@aetoskia.com" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
]
requires-python = ">=3.8"
dependencies = [
"griffe>=0.45.0",
"click>=8.0.0",
"pydantic>=2.0.0",
]
[project.scripts]
doc-forge = "docforge.cli.main:main"
[project.optional-dependencies]
mkdocs = [
"mkdocs>=1.5.0",
@@ -49,38 +60,28 @@ dev = [
"mypy>=1.0.0",
]
[project.scripts]
doc-forge = "docforge.cli.main:main"
[project.urls]
Homepage = "https://github.com/doc-forge/doc-forge"
Repository = "https://github.com/doc-forge/doc-forge"
Documentation = "https://doc-forge.readthedocs.io"
Homepage = "https://git.aetoskia.com/aetos/doc-forge"
Documentation = "https://git.aetoskia.com/aetos/doc-forge#readme"
Repository = "https://git.aetoskia.com/aetos/doc-forge.git"
Issues = "https://git.aetoskia.com/aetos/doc-forge/issues"
Versions = "https://git.aetoskia.com/aetos/doc-forge/tags"
[tool.hatch.build.targets.wheel]
packages = ["docforge"]
[tool.black]
line-length = 88
target-version = ['py38']
[tool.setuptools]
packages = { find = { include = ["docforge*"] } }
[tool.setuptools.package-data]
docforge = ["templates/**/*"]
[tool.ruff]
line-length = 88
target-version = "py38"
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SIM", "TID", "TCH", "ARG", "PTH", "ERA", "PGH", "PL", "TRY", "NPY", "RUF"]
ignore = ["E501"]
line-length = 100
target-version = "py310"
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
python_version = "3.10"
strict = true
ignore_missing_imports = true