-
Notifications
You must be signed in to change notification settings - Fork 108
/
pyproject.toml
145 lines (127 loc) · 2.83 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
[tool.poetry]
name = "soccerdata"
version = "1.8.4"
description = "A collection of wrappers over soccer data from various websites / APIs."
authors = ["Pieter Robberechts <[email protected]>"]
license = "Apache-2.0"
readme = 'README.rst'
homepage = "https://github.com/probberechts/soccerdata"
repository = "https://github.com/probberechts/soccerdata"
documentation = "https://soccerdata.readthedocs.io"
keywords = ["soccer", "football", "soccer data", "web scraping", "soccer analytics"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
[tool.poetry.urls]
Changelog = "https://github.com/probberechts/soccerdata/releases"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
PySocks = "^1.7.1"
Unidecode = "^1.2.0"
cloudscraper = "^1.2.71"
html5lib = "^1.1"
pandas = "^2.0.0, !=2.1.0"
requests = "^2.23"
rich = "^13.0.0"
undetected-chromedriver = "^3.5.0"
unicode = "^2.7"
lxml = "^4.9.3"
socceraction = {version="^1.5.3", optional=true}
packaging = "^24.1"
[tool.poetry.extras]
socceraction = ["socceraction"]
[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
pytest-deadfixtures = "^2.2.1"
pytest-mock = "^3.10.0"
coverage = {version = "^7.0", extras = ["toml"]}
time-machine = "^2.8.2"
[tool.poetry.group.dev.dependencies]
Pygments = "^2.13.0"
bumpversion = "^0.6.0"
darglint = "^1.8.1"
ruff = "*"
mypy = "*"
pep8-naming = "^0.14.0"
pre-commit = "^4.0.0"
pre-commit-hooks = "^5.0.0"
[tool.poetry.group.docs.dependencies]
Sphinx = "^7.0.0"
furo = "^2024.0.0"
nbsphinx = "^0.9.0"
sphinx-autobuild = "^2024.0.0"
[tool.coverage.paths]
source = ["soccerdata", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["soccerdata", "tests"]
[tool.coverage.report]
show_missing = true
ignore_errors = true
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
check_untyped_defs = true
show_error_codes = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[tool.ruff]
src = ['soccerdata', 'tests']
line-length = 99
target-version = 'py39'
[tool.ruff.lint]
select = [
'A',
'ARG',
'B',
'B9',
'C',
'C4',
'D',
'DTZ',
'E',
'F',
'I',
'N',
'PIE',
'PT',
'PTH',
'Q',
'RET',
'RUF',
'SIM',
'SLF',
'T10',
'TCH',
'UP',
'W',
]
ignore = ['B904']
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ['F401']
"tests/*" = [
'S',
'D212',
'D415',
'D205',
'D103',
'D104',
'N999',
'SLF001',
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = 'numpy'
[tool.ruff.lint.isort]
known-first-party = ["soccerdata", "tests"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"