Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (86 loc) · 3.35 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (86 loc) · 3.35 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
[build-system]
requires = ["uv_build>=0.13.1,<0.14"]
build-backend = "uv_build"
[project]
name = "python-espncricinfo"
version = "1.1.0"
description = "Python client for ESPNcricinfo match, series, season, team and player data"
readme = "README.md"
requires-python = ">=3.13"
license = "MIT"
license-files = ["LICENSE.txt"]
authors = [
{name = "Derek Willis", email = "dwillis@gmail.com"},
{name = "Gaurav Sood"},
]
keywords = ["espncricinfo", "cricket", "t20", "odi", "test cricket", "scorecard", "sports data"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["requests", "beautifulsoup4", "dateparser", "lxml", "playwright>=1.48.0"]
[project.urls]
Homepage = "https://github.com/outside-edge/python-espncricinfo"
Repository = "https://github.com/outside-edge/python-espncricinfo"
Documentation = "https://outside-edge.github.io/python-espncricinfo/"
Changelog = "https://github.com/outside-edge/python-espncricinfo/blob/master/CHANGELOG.md"
Issues = "https://github.com/outside-edge/python-espncricinfo/issues"
[dependency-groups]
dev = ["ruff", {include-group = "test"}, "pyright>=1.1.390", "pre-commit>=4"]
docs = ["sphinx>=8", "furo", "myst-parser", "sphinx-copybutton", "py-canon @ git+https://github.com/gojiplus/py-canon@v1"]
test = ["pytest>=8", "pytest-cov>=6"]
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
external = ["DOC"]
select = ["E", "W", "F", "I", "B", "C4", "UP", "N", "D", "S", "SIM", "T20", "PT", "RUF", "PTH", "RET", "PIE", "FURB", "PERF", "DTZ", "LOG", "G", "TC", "FLY", "RSE", "SLOT", "FA", "A", "EXE", "ICN", "PGH", "PLE", "ARG", "SLF", "E4", "E7", "E9"]
# D203/D213: the google convention the fleet standard picks. W191/D206/D300:
# ruff's own docs list these as always incompatible with `ruff format`, which
# the standard also runs.
ignore = ["D203", "D213", "W191", "D206", "D300"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "D", "ARG", "SLF"]
"docs/**" = ["D"]
# A command-line maintenance script: printing progress is its interface.
"scripts/**" = ["T201"]
[tool.pyright]
include = ["espncricinfo"]
typeCheckingMode = "standard"
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-yield-types = false
check-class-attributes = false
allow-init-docstring = true
exclude = '\.venv|tests|docs'
[tool.codespell]
builtin = "clear,rare,en-GB_to_en-US"
# "centre" is a key in ESPN's match JSON, not prose.
ignore-words-list = "centre"
# Fixtures are recorded ESPN responses; their spelling is data.
skip = "./tests/fixtures,./uv.lock,./.venv"
[tool.uv.build-backend]
module-name = "espncricinfo"
module-root = ""
[tool.pytest.ini_options]
minversion = "8"
testpaths = ["tests"]
addopts = ["-ra", "--strict-config", "--strict-markers"]
xfail_strict = true
log_level = "INFO"
filterwarnings = ["error"]
markers = ["integration: requires the live ESPN site (run with --live)"]
[tool.preen]
src_layout = false