build: restructure dependency groups and add watchdog

Split flat dev group into named groups (build, lint, test) so CI
and production installs can pull only what they need. Add watchdog
for the live-reload preview target.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-18 18:28:19 +08:00
parent 266a6b6b6c
commit 74bba50785
2 changed files with 32 additions and 9 deletions

View File

@@ -3,21 +3,21 @@ name = "awesome-python"
version = "0.1.0"
description = "An opinionated list of awesome Python frameworks, libraries, software and resources."
requires-python = ">=3.13"
dependencies = [
"httpx==0.28.1",
"jinja2==3.1.6",
"markdown-it-py==4.0.0",
]
dependencies = []
[dependency-groups]
build = ["httpx==0.28.1", "jinja2==3.1.6", "markdown-it-py==4.0.0"]
lint = ["ruff==0.15.6"]
test = ["pytest==9.0.2"]
dev = [
"pytest==9.0.2",
"ruff==0.15.6",
{ include-group = "build" },
{ include-group = "lint" },
{ include-group = "test" },
"watchdog==6.0.0",
]
[tool.pytest.ini_options]
testpaths = ["website/tests"]
[tool.ruff]
target-version = "py313"
line-length = 100
line-length = 200