-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
pyproject.toml
169 lines (151 loc) · 4.75 KB
/
pyproject.toml
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
requires = ["pdm-pep517"]
build-backend = "pdm.pep517.api"
[project]
name = "sports-betting"
description = "Python sports betting toolbox."
authors = [{name = "Georgios Douzas", email = "[email protected]"}]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10, <3.13"
keywords = []
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"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",
"Topic :: Documentation",
"Topic :: Software Development",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"nptyping>=2.5.0",
"pandas>=2.0.0",
"scikit-learn>=1.6.0",
"cloudpickle>=2.0.0",
"beautifulsoup4>=4.0.0",
"typing-extensions>=4.5.0",
"click>=8.1.3",
"rich>=13.3.3",
"aiohttp>=3.8.4",
]
[project.urls]
Homepage = "https://georgedouzas.github.io/sports-betting"
Documentation = "https://georgedouzas.github.io/sports-betting"
Changelog = "https://georgedouzas.github.io/sports-betting/changelog"
Repository = "https://github.com/georgedouzas/sports-betting"
Issues = "https://github.com/georgedouzas/sports-betting/issues"
Discussions = "https://github.com/georgedouzas/sports-betting/discussions"
Gitter = "https://gitter.im/sports-betting/community"
Funding = "https://github.com/sponsors/georgedouzas"
[project.scripts]
sportsbet = "sportsbet.cli:main"
[tool.pdm]
version = {source = "scm"}
build = {package-dir = "src", editable-backend = "editables"}
[tool.pdm.scripts]
clean = {shell = """rm -rf .mypy_cache .pytest_cache tests/.pytest_cache build dist \
htmlcov pip-wheel-metadata site __pycache__ docs/generated .nox .ruff_cache pdm.lock \
&& find . -type d -name __pycache__ | xargs rm -rf \
&& find . -name '*.rej' -delete \
&& find . -name '.coverage*' -delete"""}
docs = "nox --error-on-external-run -R -s docs -- {args:serve}"
formatting = "nox --error-on-external-run -R -s formatting -- {args:all}"
checks = "nox --default-venv-backend uv --error-on-external-run -R -s checks -- {args:all}"
tests = "nox --default-venv-backend uv --error-on-external-run -R -s tests"
changelog = "nox --error-on-external-run -R -s changelog"
release = "nox --error-on-external-run -R -s release"
[tool.pdm.dev-dependencies]
maintenance = [
"nox[uv]>=2024.4.15",
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-coverage>=1.0.0",
"mkdocs-gen-files>=0.4.0",
"mkdocs-literate-nav>=0.6.0",
"mkdocs-material>=9.5.20",
"mkdocs-gallery>=0.10.0",
"mkdocs-section-index>=0.3.8",
"mkdocstrings[python]>=0.25.0",
"markdown-callouts>=0.3",
"markdown-exec>=1.9.0",
"plotly>=5.17.0",
"pillow>=10.3.0",
"pandas>=2.0.0",
]
formatting = [
"black>=24.4.2",
"docformatter>=1.7.5",
]
checks = [
"ruff>=0.5.0",
"safety>=3.2.3",
"mypy[install-types]>=1.10.1",
"types-markdown>=3.6.0.20240316",
"types-toml>=0.10.8.20240310",
"types-pytz"
]
tests = [
"pytest>=8.2.2",
"pytest-cov>=5.0.0",
"pytest-randomly>=3.15.0",
"pytest-xdist>=3.6.1",
]
changelog = [
"git-changelog>=2.5.2",
]
release = [
"twine>=5.1.1",
]
[tool.black]
line-length = 120
extend-exclude = "(tests/fixtures|docs/generated)"
skip-string-normalization = true
[tool.docformatter]
in-place = true
recursive = true
close-quotes-on-newline = true
wrap-descriptions = 120
[tool.ruff]
extend-exclude = ["docs/generated"]
force-exclude = true
line-length = 120
target-version = "py310"
[tool.ruff.lint]
ignore = ["D202", "N806", "N803", "S101", "INP001", "Q000", "TRY002", "PLR0913", "EXE001", "EXE002", "E741"]
select = ["C", "E", "F", "W", "B", "I", "D", "N", "UP", "YTT", "ANN", "S",
"BLE", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G",
"INP", "PIE", "T20", "PT", "Q", "RET501", "RET502", "RET503", "SIM",
"PTH", "PD", "PGH", "PL", "TRY", "RUF", "PLE", "PLR", "PLW", "TRY", "RUF"]
[tool.ruff.lint.per-file-ignores]
"docs/examples/*" = ["ANN", "D", "B018"]
"docs/generated/*" = ["ANN", "D"]
"test_*" = ["ANN"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true
exclude = ["tests/fixtures/", "docs/examples/", "docs/generated/"]
warn_unused_ignores = true
show_error_codes = true
[tool.pytest.ini_options]
addopts = ["--cov", "--doctest-modules", "--dist=loadgroup", "-n=auto"]
testpaths = ["src", "tests"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src", "tests"]
[tool.coverage.paths]
equivalent = ["src", "__pypackages__"]
[tool.coverage.report]
precision = 2
omit = ["src/*/__init__.py", "tests/__init__.py"]
[tool.coverage.json]
output = "htmlcov/coverage.json"