-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (73 loc) · 2.94 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (73 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[project]
name = "claude-code-python-setup"
version = "1.3.0"
description = "Ready-to-use .claude configuration for Python projects with Claude Code"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Andrea Cadeddu", email = "skateddu@users.noreply.github.com" },
]
keywords = ["claude", "claude-code", "python", "setup", "template", "ai", "anthropic"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/skateddu/claude-code-python-setup"
Repository = "https://github.com/skateddu/claude-code-python-setup"
Issues = "https://github.com/skateddu/claude-code-python-setup/issues"
Changelog = "https://github.com/skateddu/claude-code-python-setup/blob/main/CHANGELOG.md"
# Dev tooling for the .claude setup. PEP 735 dependency groups — see
# https://docs.astral.sh/uv/concepts/dependencies/#dependency-groups
[dependency-groups]
# Core: used by always-on hooks (auto-lint) and the CLAUDE.md verification flow.
# Installed by default with `uv sync`; run via `uv run`.
dev = [
"ruff", # lint + format (auto-lint hook, enforce-uv hook, verification)
"pytest", # test runner (verification, testing rule, [tool.pytest])
"pytest-cov", # coverage reporting (`uv run pytest --cov=src`, test-coverage command)
]
# Optional: only invoked by on-demand agents (security-reviewer, refactor-cleaner,
# code-reviewer). Install when needed: `uv sync --group agents`.
agents = [
"mypy", # static type checking (code-reviewer agent, enforce-uv redirect)
"bandit", # security linting (security-reviewer, code-reviewer agents)
"pip-audit", # dependency vulnerability audit (security-reviewer, refactor-cleaner)
"safety", # dependency safety DB check (security-reviewer agent)
"vulture", # dead-code detection (refactor-cleaner agent)
"autoflake", # unused import/variable removal (refactor-cleaner agent)
]
[tool.ruff]
line-length = 99
src = ["src"]
include = ["pyproject.toml", "src/**/*.py"]
[tool.ruff.lint]
extend-select = ["I"] # Add import sorting
select = ["E", "F", "W", "I", "UP"]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["src"]
force-sort-within-sections = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"slow: marks tests as slow",
"integration: marks tests requiring external services",
]
addopts = "-v --strict-markers"