-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (117 loc) · 4.34 KB
/
pyproject.toml
File metadata and controls
133 lines (117 loc) · 4.34 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tpcli-pi-tools"
version = "0.1.0"
description = "PI Planning tools for TargetProcess - ART leadership dashboards and analysis"
readme = "scripts/README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Shalom Bhooshi", email = "s.bbooshi@gmail.com"}
]
dependencies = [
"click>=8.1.0", # CLI framework
"pydantic>=2.0.0", # Data validation and settings
"pyyaml>=6.0.0", # YAML config file parsing
"requests>=2.31.0", # HTTP client (not needed yet, tpcli handles it)
"rich>=13.0.0", # Terminal formatting (tables, colors)
"typer>=0.9.0", # Alternative CLI (Optional, can use click)
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0", # Testing framework
"pytest-cov>=4.1.0", # Coverage reporting
"pytest-mock>=3.11.0", # Mocking for pytest
"vcrpy>=4.4.0", # Record/replay HTTP interactions (golden files)
"mypy>=1.5.0", # Static type checking
"ruff>=0.1.0", # Linter and formatter
"black>=23.0.0", # Code formatter (optional with ruff)
"behave>=1.2.6", # BDD test runner (Cucumber for Python)
"pytest-bdd>=6.1.1", # Alternative BDD for pytest
"pip-audit>=2.6.0", # Security: audit dependencies
"safety>=2.3.0", # Security: check for known vulnerabilities
"semgrep>=1.40.0", # Security: static analysis
"radon>=6.0.0", # Quality: code complexity
"pylint>=3.0.0", # Quality: check for duplication
"types-PyYAML", # Mypy stubs for PyYAML
"types-requests", # Mypy stubs for requests
]
[tool.hatch.build.targets.wheel]
packages = ["tpcli_pi"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
check_untyped_defs = false
disallow_untyped_defs = false
warn_return_any = false
warn_unused_configs = false
[[tool.mypy.overrides]]
module = "behave.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C90", # mccabe
"S", # flake8-bandit
"T10", # flake8-debugger
"PIE", # flake8-pie
"Q", # flake8-quotes
]
ignore = ["E501"] # Line too long (handled by formatter)
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["S101", "S105", "S106", "S108", "E741", "S602", "B904", "B007", "F841", "B017", "S603", "E402"]
"tpcli_pi/cli/*.py" = ["C901"]
"tpcli_pi/core/change_tracker.py" = ["C901"]
[tool.ruff.lint.isort]
known-first-party = ["tpcli_pi"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--cov=tpcli_pi --cov-report=html --cov-report=term-missing"
markers = [
"unit: unit tests (fast, no external dependencies)",
"bdd: BDD scenario tests (pytest-bdd)",
"slow: slow tests (marked @slow)",
"e2e: end-to-end tests requiring live services",
"P0: critical priority tests",
"P1: high priority tests",
"P2: medium priority tests",
"plan: plan domain tests",
"config: config domain tests",
"list: list domain tests",
]
[tool.black]
line-length = 100
target-version = ["py311"]
[project.scripts]
# ART-level scripts
art-dashboard = "tpcli_pi.cli.art_dashboard:main"
# PI/Release-level scripts (collate together)
pi-list = "tpcli_pi.cli.pi_list:main"
pi-objectives = "tpcli_pi.cli.objective_deep_dive:main"
pi-status = "tpcli_pi.cli.release_status:main"
# Team-level scripts (collate together)
team-dashboard = "tpcli_pi.cli.team_dashboard:main"
team-objectives = "tpcli_pi.cli.team_objectives:main"
team-features = "tpcli_pi.cli.team_features:main"
team-capacity = "tpcli_pi.cli.team_capacity:main"
team-risks = "tpcli_pi.cli.team_risks:main"
team-dependencies = "tpcli_pi.cli.team_dependencies:main"
team-analysis = "tpcli_pi.cli.team_deep_dive:main"
# Legacy aliases for backwards compatibility
objective-deep-dive = "tpcli_pi.cli.objective_deep_dive:main"
release-status = "tpcli_pi.cli.release_status:main"
team-deep-dive = "tpcli_pi.cli.team_deep_dive:main"