-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (118 loc) · 3.42 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (118 loc) · 3.42 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
[project]
name = "kinexon-handball-api"
version = "0.2.1"
description = "A Python wrapper for accessing and processing Kinexon Handball data."
authors = [
{ name = "Michael Adams", email = "m@ad4ms.de" }
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
# Core dependencies
dependencies = [
"httpx>=0.27.0", # generated client uses httpx
"python-socketio[client]>=5.11.0",
"pydantic>=2.6", # generated models target Pydantic v2
"typing-extensions>=4.8", # safety on older 3.10
"pandas>=2.2.2", # your wrapper/processing
"python-dotenv>=1.1.0",
# requests no longer required (httpx covers auth handling)
"pytest>=8.4.2",
"pytest-order>=1.3.0",
"attrs>=25.3.0",
"pyyaml>=6.0.2",
"tqdm>=4.67.1",
]
# Project metadata
keywords = ["handball", "kinexon", "api", "data", "wrapper"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Development dependencies
[project.optional-dependencies]
dev = [
"pytest>=8.4.1",
"pytest-cov>=5.0",
"requests-mock>=1.12",
"ruff>=0.12.5",
"mypy>=1.8.0",
"types-PyYAML>=6.0.12.20250915",
"types-requests>=2.31.0",
"pre-commit>=4.5.1",
]
lint = [
"ruff>=0.12.5",
"mypy>=1.8.0",
"types-PyYAML>=6.0.12.20250915",
"types-requests>=2.31.0",
]
[project.urls]
Homepage = "https://github.com/mad4ms/KinexonHandballAPI"
Repository = "https://github.com/mad4ms/KinexonHandballAPI"
Issues = "https://github.com/mad4ms/KinexonHandballAPI/issues"
# Build system
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src", "src/_vendor"]
[tool.setuptools.package-data]
"kinexon_handball_api" = ["config/*.yaml", "config/*.yml"]
# =============================================================================
# Code Quality Tools Configuration
# =============================================================================
# Ruff - Linting/formatting
[tool.ruff]
line-length = 88
target-version = "py312"
extend-exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"build",
"dist",
"src/_vendor/kinexon_client",
"src/_vendor/statistics_center_client",
]
[tool.ruff.lint]
select = ["E","F","I","UP","B","SIM","PGH","PL","RUF"]
ignore = ["E203"] # formatter compatibility
[tool.ruff.lint.isort]
known-first-party = ["kinexon_handball_api"]
[tool.ruff.format]
# mypy - Type checking
# --- mypy ---
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
mypy_path = ["src", "src/_vendor"]
exclude = ["^src/_vendor/"]
warn_unused_ignores = true
warn_redundant_casts = true
strict_optional = true
check_untyped_defs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["kinexon_client.*", "statistics_center_client.*"]
follow_imports = "skip"
ignore_errors = true
[[tool.mypy.overrides]]
module = ["yaml", "yaml.*", "tqdm", "tqdm.*"]
ignore_missing_imports = true
# pytest - Testing
[tool.pytest.ini_options]
markers = [
"integration: mark test as integration test (requires live API access)",
]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(name)s: %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"