feat(build): configure project tooling and update dependencies

- Replace placeholder deps with click, pygnmi, and rich for CLI functionality
- Add fabric-orch CLI entry point via project.scripts
- Configure hatchling as build backend with wheel/sdist targets
- Add ruff linter configuration for code quality
- Add dev dependency group with ruff
- Alphabetize yang module imports
This commit is contained in:
darnodo
2025-12-31 09:36:00 +01:00
parent 3e76eba46a
commit e041dab724
9 changed files with 1524 additions and 25 deletions

View File

@@ -5,6 +5,33 @@ description = "Declarative Network Fabric Orchestrator - Terraform-like infrastr
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"dataclasses>=0.8",
"typing>=3.10.0.0",
"click>=8.1.0",
"pygnmi>=0.8.0",
"rich>=13.0.0",
]
[project.scripts]
fabric-orch = "src.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.hatch.build.targets.sdist]
include = ["src"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[dependency-groups]
dev = [
"ruff>=0.14.10",
]