forked from swar/nba_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (131 loc) · 4.17 KB
/
pyproject.toml
File metadata and controls
148 lines (131 loc) · 4.17 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 = "nba_api"
version = "1.11.4"
description = "An API Client package to access the APIs for NBA.com"
requires-python = ">=3.10"
license = "MIT"
authors = [ {name = "Swar Patel", email = "<swar.m.patel@gmail.com>"}]
maintainers = [
{name = "Swar Patel", email = "<swar.m.patel@gmail.com>"},
]
keywords = [
"api",
"basketball",
"data",
"nba",
"sports",
"stats"
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development",
'Programming Language :: Python',
'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",
]
dependencies = [
"numpy >=1.26.0 ; python_version < '3.13'",
"numpy >=2.1.0 ; python_version >= '3.13'",
"pandas >=2.1.0; python_version < '3.12'",
"pandas >=2.2.0 ; python_version >= '3.12'",
"requests (>=2.32.3,<3.0.0)"
]
readme = "README.md"
[project.urls]
repository = "https://github.com/swar/nba_api"
"Bug Tracker" = "https://github.com/swar/nba_api/issues"
documentation = "https://github.com/swar/nba_api/blob/master/README.md"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "^4.0"
python-semantic-release = "^9.0.0"
pandas = [
{version = ">=2.2.0", python = ">=3.12"},
{version = "<2.2.0", python = "<3.12"}
]
ruff = "^0.15.2"
pre-commit = "^4.0.0"
pytest-recording = "^0.13.4"
[tool.pytest.ini_options]
markers = [
"live: test makes real HTTP requests to the NBA Stats API; skip in CI unless cassettes are present",
"vcr: test uses a pre-recorded VCR cassette and does not require network access",
"canary: lightweight smoke test suitable for rapid health checks",
"deprecated_endpoint: marks a test for an endpoint known to be deprecated or unstable",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes (unused imports, undefined names, etc.)
"I", # isort (import ordering)
"UP", # pyupgrade (modernize syntax for target Python version)
"B", # flake8-bugbear (common bugs and design issues)
"C4", # flake8-comprehensions (simplify comprehensions)
"SIM", # flake8-simplify (simplify code patterns)
]
ignore = [
"E501", # line too long — handled by ruff format
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # re-exports are intentional in __init__.py
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
build_command = "poetry build"
dist_path = "dist/"
upload_to_pypi = true
upload_to_release = true
commit_subject = "chore: release v{version}"
commit_message = "chore: release v{version}\n\n{changelog}"
tag_format = "v{version}"
changelog_placeholder = "# NBA API Change Log"
[tool.semantic_release.remote]
type = "github"
token = { env = "GITHUB_TOKEN" }
[tool.semantic_release.branches.master]
match = "(master|main)"
prerelease = false
[tool.semantic_release.branches.release]
match = "(release|release/.*)"
prerelease = false
[tool.semantic_release.branches.test]
match = "test-release"
prerelease = true
prerelease_token = "rc"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"^Bump .*",
"^Update .*",
"^Merge pull request.*"
]
changelog_file = "CHANGELOG.MD"
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false