Modernized build tooling

This commit is contained in:
2025-08-01 05:00:24 +00:00
committed by Your Name
parent 8a93f794d6
commit f7a5d26c41
71 changed files with 6685 additions and 813 deletions
+86
View File
@@ -0,0 +1,86 @@
[build-system]
requires = ["hatchling>=1.21.0"]
build-backend = "hatchling.build"
[project]
name = "boilerplate"
version = "0.1.0"
description = "A modern Python 3.13 micro-service starter"
readme = "README.md"
requires-python = ">=3.13"
license = {text = "Apache-2.0"}
authors = [
{name = "CleverThis", email = "jeffrey.freeman@cleverthis.com"},
]
keywords = ["starter", "template"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"click>=8.1.7",
]
[project.optional-dependencies]
dev = [
"uv>=0.8.0",
"ruff>=0.4.0",
"pyright>=1.1.400",
"behave>=1.2.6",
"hypothesis>=6.136.6",
"nox>=2025.4.22",
"mkdocs-material>=9.6.0",
"mike>=2.0.0",
"pre-commit>=3.8.0",
]
[project.urls]
Homepage = "https://git.cleverthis.com/cleverthis/base/base-python"
Documentation = "https://cleverthis.github.io/boilerplate"
Repository = "https://git.cleverthis.com/cleverthis/base/base-python"
Issues = "https://git.cleverthis.com/cleverthis/base/base-python/issues"
[project.scripts]
boilerplate = "boilerplate.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/boilerplate"]
[tool.ruff]
line-length = 120
target-version = "py313"
src = ["src", "features"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true