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] [build-system]
requires = ["hatchling"] requires = ["setuptools>=68", "wheel"]
build-backend = "hatchling.build" build-backend = "setuptools.build_meta"
[project] [project]
name = "doc-forge" name = "doc-forge"
version = "0.1.0" version = "0.1.0"
description = "A renderer-agnostic Python documentation compiler" description = "A renderer-agnostic Python documentation compiler"
readme = "README.md" readme = "README.md"
license = {text = "MIT"} requires-python = ">=3.10"
license = { text = "MIT" }
authors = [ authors = [
{name = "doc-forge team"}, { name = "Aetos Skia", email = "dev@aetoskia.com" }
]
maintainers = [
{ name = "Aetos Skia", email = "dev@aetoskia.com" }
] ]
classifiers = [ classifiers = [
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
] ]
requires-python = ">=3.8"
dependencies = [ dependencies = [
"griffe>=0.45.0", "griffe>=0.45.0",
"click>=8.0.0", "click>=8.0.0",
"pydantic>=2.0.0", "pydantic>=2.0.0",
] ]
[project.scripts]
doc-forge = "docforge.cli.main:main"
[project.optional-dependencies] [project.optional-dependencies]
mkdocs = [ mkdocs = [
"mkdocs>=1.5.0", "mkdocs>=1.5.0",
@@ -49,38 +60,28 @@ dev = [
"mypy>=1.0.0", "mypy>=1.0.0",
] ]
[project.scripts]
doc-forge = "docforge.cli.main:main"
[project.urls] [project.urls]
Homepage = "https://github.com/doc-forge/doc-forge" Homepage = "https://git.aetoskia.com/aetos/doc-forge"
Repository = "https://github.com/doc-forge/doc-forge" Documentation = "https://git.aetoskia.com/aetos/doc-forge#readme"
Documentation = "https://doc-forge.readthedocs.io" 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] [tool.setuptools]
line-length = 88 packages = { find = { include = ["docforge*"] } }
target-version = ['py38']
[tool.setuptools.package-data]
docforge = ["templates/**/*"]
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 100
target-version = "py38" target-version = "py310"
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"]
[tool.mypy] [tool.mypy]
python_version = "3.8" python_version = "3.10"
warn_return_any = true strict = true
warn_unused_configs = true ignore_missing_imports = 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