-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (125 loc) · 3.92 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (125 loc) · 3.92 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[project]
name = "insight-blueprint"
version = "0.6.0"
description = "MCP server for data science analysis design management"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "insight-blueprint contributors"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
"Framework :: FastAPI",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"fastmcp>=2.0",
"pydantic>=2.10",
"ruamel.yaml>=0.18",
"click>=8.1",
"fastapi>=0.115",
"uvicorn[standard]>=0.41.0",
"packaging>=23.0",
"filelock>=3.24.2",
]
[project.scripts]
insight-blueprint = "insight_blueprint.cli:main"
[project.urls]
Homepage = "https://github.com/etoyama/insight-blueprint"
Repository = "https://github.com/etoyama/insight-blueprint"
"Bug Tracker" = "https://github.com/etoyama/insight-blueprint/issues"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=6.0",
"ruff>=0.8",
"ty>=0.0.1",
"poethepoet>=0.31",
"pre-commit>=4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/insight_blueprint"]
artifacts = ["src/insight_blueprint/static/**"]
[tool.hatch.build.targets.sdist]
artifacts = ["src/insight_blueprint/static/**"]
# ============================================================
# ruff
# ============================================================
[tool.ruff]
target-version = "py311"
line-length = 88
exclude = [".claude/"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
# ============================================================
# pytest
# ============================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "tests", "."]
addopts = "-v --tb=short"
# ============================================================
# poethepoet
# ============================================================
[tool.poe.tasks.lint]
shell = "uv run ruff check . && uv run ruff format --check ."
[tool.poe.tasks.format]
shell = "uv run ruff check --fix . && uv run ruff format ."
[tool.poe.tasks.typecheck]
cmd = "uv run ty check src/"
[tool.poe.tasks.test]
cmd = "uv run pytest -v"
[tool.poe.tasks.install-frontend]
cmd = "npm --prefix frontend ci"
help = "Install frontend dependencies"
[tool.poe.tasks.build-frontend]
sequence = ["install-frontend", {cmd = "npm --prefix frontend run build"}]
help = "Install deps and build frontend assets"
[tool.poe.tasks.build]
sequence = ["build-frontend"]
[tool.poe.tasks.all]
sequence = ["lint", "typecheck", "test"]
[tool.poe.tasks.ci]
sequence = ["lint", "typecheck", "test", "build-frontend"]
help = "Run the full CI pipeline locally (Python + frontend)"
[tool.poe.tasks.verify-wheel]
cmd = "uv run python scripts/verify_wheel.py"
help = "Verify wheel contains frontend assets and py.typed"
[tool.poe.tasks.check-tag-version]
cmd = "uv run python scripts/check_tag_version.py"
help = "Check git tag matches pyproject.toml version"
[tool.poe.tasks.release-dry-run]
sequence = ["build-frontend", {shell = "rm -rf dist/ && uv build"}, "verify-wheel", {shell = "uvx --from twine twine check dist/*"}]
help = "Full release dry-run: build frontend, build wheel, verify, twine check"
[dependency-groups]
dev = [
"httpx>=0.27",
"marimo>=0.21.1",
"matplotlib>=3.10.8",
"pandas>=3.0.1",
"scikit-learn>=1.8.0",
"statsmodels>=0.14.6",
"ty>=0.0.17",
]