The shared workflow tests on 3.12 and 3.13 by default and runs lowest on 3.12; the template declares requires-python >=3.12 with ruff and mypy on 3.12, and the tool itself needs 3.12. netOrk runs every driver on 3.12 in its own containers. check keeps accepting a 3.10 floor until every driver has moved; part B raises it.
51 lines
1.2 KiB
TOML
51 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-standard"
|
|
version = "0.1.0"
|
|
description = "Rules, CI and release tooling shared by the drivers of the NAPALM org"
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.12"
|
|
authors = [{ name = "Christian Manivong", email = "christian@manivong.de" }]
|
|
dependencies = ["packaging>=23"]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8", "pytest-cov>=5", "ruff>=0.6", "mypy>=1.11"]
|
|
|
|
[project.scripts]
|
|
napalm-standard = "napalm_standard.cli:main"
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/driver-standard"
|
|
Issues = "https://git.netork.io/NAPALM/driver-standard/issues"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["napalm_standard*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
napalm_standard = ["py.typed"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
strict = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "--cov=napalm_standard --cov-report=term-missing"
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 95
|
|
|
|
[tool.coverage.run]
|
|
omit = ["napalm_standard/__main__.py"]
|