Initial implementation.
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
[project]
|
||||
name = "setuptools-scm-stub"
|
||||
version = "1.0.0"
|
||||
description = "setuptools-scm stub that uses a hardcoded version"
|
||||
license = "CC0-1.0 OR Apache-2.0"
|
||||
keywords = ["setuptools", "setuptools-scm", "dynamic-version"]
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: System Administrators",
|
||||
"Natural Language :: English",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3 :: Only",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: System :: Software Distribution",
|
||||
"Typing :: Typed",
|
||||
]
|
||||
|
||||
license-files = ["LICENSE-CC0", "LICENSE-APACHE"]
|
||||
requires-python = ">=3.11"
|
||||
dependencies = ["setuptools>=45"]
|
||||
|
||||
[[project.authors]]
|
||||
name = "kat"
|
||||
|
||||
[project.entry-points."setuptools.finalize_distribution_options"]
|
||||
setuptools_scm = "setuptools_scm.stub:set_version"
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["mypy>=2.3", "ruff>=0.16", "types-setuptools>=83"]
|
||||
|
||||
[build-system]
|
||||
# I would use hatchling, but it would be ironic given this is *for setuptools*.
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
|
||||
[tool.ruff]
|
||||
show-fixes = true
|
||||
src = ["src"]
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = true
|
||||
skip-magic-trailing-comma = true
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["ALL"]
|
||||
ignore = ["A002", "ANN401", "COM812", "CPY001", "D", "ERA001", "FIX", "FURB101",
|
||||
"FURB103", "PLR0913", "PTH", "S101", "T201", "TD001", "TD002",
|
||||
"TD003", "TD004", "TD005", "TRY003"]
|
||||
|
||||
[tool.ruff.lint.flake8-annotations]
|
||||
allow-star-arg-any = true
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
combine-as-imports = true
|
||||
known-first-party = ["src", "app"]
|
||||
split-on-trailing-comma = false
|
||||
|
||||
[tool.ruff.lint.pydocstyle]
|
||||
convention = "pep257"
|
||||
|
||||
[tool.ruff.lint.pylint]
|
||||
allow-magic-value-types = ["str", "int"]
|
||||
max-locals = 10
|
||||
|
||||
[tool.ruff.lint.ruff]
|
||||
parenthesize-tuple-in-subscript = true
|
||||
Reference in New Issue
Block a user