chore(release): 0.0.7
Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
This commit is contained in:
112
pyproject.toml
112
pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "openapi-first"
|
||||
version = "0.0.6"
|
||||
version = "0.0.7"
|
||||
description = "Strict OpenAPI-first application bootstrap for FastAPI."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
@@ -37,9 +37,11 @@ classifiers = [
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Framework :: FastAPI",
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
||||
"Typing :: Typed",
|
||||
]
|
||||
|
||||
|
||||
@@ -66,9 +68,15 @@ openapi-first = "openapi_first.cli:main"
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=8.0.0",
|
||||
"pytest-asyncio>=0.21.0",
|
||||
"pytest-cov>=4.1.0",
|
||||
"black>=23.0.0",
|
||||
"ruff>=0.3.0",
|
||||
"mypy>=1.8.0",
|
||||
"build>=1.0.0",
|
||||
"twine>=4.0.0",
|
||||
"pre-commit>=3.4.0",
|
||||
"doc-forge[mcp,mkdocs]>=0.0.6",
|
||||
]
|
||||
|
||||
docs = [
|
||||
@@ -77,6 +85,10 @@ docs = [
|
||||
"mkdocstrings[python]>=0.24.0",
|
||||
]
|
||||
|
||||
all = [
|
||||
"openapi-first[dev,docs]",
|
||||
]
|
||||
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://git.aetoskia.com/aetos/openapi-first"
|
||||
@@ -90,15 +102,109 @@ Versions = "https://git.aetoskia.com/aetos/openapi-first/tags"
|
||||
packages = { find = { include = ["openapi_first*"] } }
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
openapi_first = ["templates/**/*"]
|
||||
openapi_first = ["py.typed", "templates/**/*", '\.pyi?$']
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
asyncio_mode = "auto"
|
||||
python_files = ["test_*.py"]
|
||||
python_classes = ["Test*"]
|
||||
python_functions = ["test_*"]
|
||||
addopts = [
|
||||
"--strict-markers",
|
||||
"--strict-config",
|
||||
"--cov=openapi_first",
|
||||
"--cov-report=term-missing",
|
||||
"--cov-report=html",
|
||||
"--cov-report=xml",
|
||||
]
|
||||
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ["py310", "py311", "py312", "py313"]
|
||||
include = '\.pyi?$'
|
||||
extend-exclude = '''
|
||||
/(
|
||||
\.eggs
|
||||
| \.git
|
||||
| \.hg
|
||||
| \.mypy_cache
|
||||
| \.tox
|
||||
| \.venv
|
||||
| build
|
||||
| dist
|
||||
| openapi_first/templates
|
||||
)/
|
||||
'''
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
line-length = 88
|
||||
target-version = "py310"
|
||||
exclude = ["openapi_first/templates"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E",
|
||||
"W",
|
||||
"F",
|
||||
"I",
|
||||
"B",
|
||||
"C4",
|
||||
"UP",
|
||||
]
|
||||
ignore = [
|
||||
"E501",
|
||||
"B008",
|
||||
"C901",
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"__init__.py" = ["F401", "I001"]
|
||||
"tests/*" = ["B008"]
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
strict = true
|
||||
exclude = [
|
||||
"openapi_first/templates/",
|
||||
"tests/",
|
||||
]
|
||||
files = ["openapi_first"]
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"openapi_spec_validator.*",
|
||||
"datamodel_code_generator.*",
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
|
||||
[tool.pydoclint]
|
||||
style = "google"
|
||||
exclude = '\.pyi$|tests/'
|
||||
allow-init-docstring = true
|
||||
skip-checking-raises = true
|
||||
check-class-attributes = false
|
||||
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["openapi_first"]
|
||||
omit = [
|
||||
"*/tests/*",
|
||||
"*/test_*.py",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
exclude_lines = [
|
||||
"pragma: no cover",
|
||||
"def __repr__",
|
||||
"if __name__ == .__main__.:",
|
||||
"raise AssertionError",
|
||||
"raise NotImplementedError",
|
||||
"if TYPE_CHECKING:",
|
||||
"@abstractmethod",
|
||||
]
|
||||
Reference in New Issue
Block a user