-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (136 loc) · 3.56 KB
/
pyproject.toml
File metadata and controls
155 lines (136 loc) · 3.56 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
149
150
151
152
153
154
155
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[project]
name = "statline"
version = "2.0.5"
description = "StatLine — weighted player scoring, efficiency modeling, CLI + adapter tooling"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = { file = "LICENSE" }
authors = [{ name = "StatLine LLC" }]
keywords = [
"statline", "pri", "adapters", "analytics", "esports", "basketball",
"mvp", "efg", "google-sheets", "cli"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Environment :: Console",
]
# Core runtime deps for local scoring + CLI
dependencies = [
"typer>=0.12",
"pyyaml>=6",
'typing-extensions>=4.7; python_version < "3.11"',
"pydantic>=2.0,<3.0",
"httpx>=0.27",
]
[project.optional-dependencies]
# Google Sheets ingestion
sheets = ["gspread>=6.0.0", "google-auth>=2.0.0"]
# Pretty CLI output
cli-pretty = ["rich>=13.0"]
# Extra CLI conveniences / types
cli = [
"httpx>=0.27",
"types-requests; python_version<'3.14'"
]
# SLAPI (serve the API). Kept optional to avoid forcing FastAPI on core users.
api = [
"fastapi>=0.110,<1.0",
"uvicorn[standard]>=0.30",
]
dev = [
"pytest>=8.1",
"pytest-cov>=4.1",
"ruff>=0.5",
"mypy>=1.11",
"coverage>=7.5",
"hypothesis>=6.100",
"types-PyYAML",
"types-requests",
]
[project.scripts]
statline = "statline.cli:main"
# If/when you expose a server entrypoint:
# slapi = "statline.slapi.__main__:main"
[project.urls]
Homepage = "https://github.com/amillolive/StatLine"
Repository = "https://github.com/amillolive/StatLine"
Issues = "https://github.com/amillolive/StatLine/issues"
Docs = "https://github.com/amillolive/StatLine#readme"
Security = "https://github.com/amillolive/StatLine/security/policy"
# ------------------------
# Tooling
# ------------------------
[tool.ruff]
line-length = 100
target-version = "py310"
extend-select = ["I"]
src = ["statline", "tests"]
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
pretty = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
plugins = ["pydantic.mypy"]
mypy_path = ["typings"]
[[tool.mypy.overrides]]
module = ["fastapi.*", "uvicorn.*"]
ignore_missing_imports = true
[tool.pyright]
typeCheckingMode = "strict"
stubPath = "typings"
reportMissingTypeStubs = "none"
exclude = [
".venv",
"**/__pycache__",
"**/.mypy_cache",
"**/.pytest_cache",
"typings/fastapi",
]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
# fail_on_empty = true # enable when you actually add tests
# ------------------------
# Hatch build config
# ------------------------
[tool.hatch.build]
# ensure non-code assets get included in wheels by default
include = [
"statline/py.typed",
"statline/**/*.yaml",
"statline/**/*.yml",
"statline/**/*.json",
"statline/**/*.sql",
"statline/data/**/*",
"statline/core/adapters/defs/*",
"statline/data/migrations/*.sql",
]
[tool.hatch.build.targets.wheel]
packages = ["statline"]
[tool.hatch.build.targets.sdist]
include = [
"statline",
"tests",
"README.md",
"LICENSE",
"pyproject.toml",
"statline/py.typed",
"TRADEMARKS.md",
"CLA.md",
"legal/**.md",
]