-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (113 loc) 路 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (113 loc) 路 3.09 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
[project]
name = "oddsharvester"
version = "0.10.0"
description = "A Python application to scrape and manage odds data from OddsPortal website."
authors = [{ name = "Jordan TETE", email = "tetej171@gmail.com" }]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.txt"]
requires-python = ">=3.12"
keywords = [
"odds",
"oddsportal",
"scraper",
"betting",
"sports-betting",
"web-scraping",
"playwright",
"football",
"tennis",
"basketball",
"bookmaker",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"beautifulsoup4>=4.14.3",
"boto3>=1.42.21",
"click>=8.1.0",
"lxml>=6.0.2",
"playwright>=1.57.0",
"pytz>=2025.2",
"tzdata>=2025.2"
]
[project.optional-dependencies]
dev = [
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.10",
]
[project.scripts]
oddsharvester = "oddsharvester.cli.cli:main"
[project.urls]
Homepage = "https://github.com/jordantete/OddsHarvester"
Repository = "https://github.com/jordantete/OddsHarvester"
Issues = "https://github.com/jordantete/OddsHarvester/issues"
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-m 'not integration'"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"integration: marks tests as integration tests (deselected by default, run with: pytest -m integration)",
"slow: marks tests as slow (>30 seconds)",
"asyncio: marks tests as async tests",
]
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src/oddsharvester", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"S", # flake8-bandit (security)
"T20", # flake8-print
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
"PT", # flake8-pytest-style
"Q", # flake8-quotes
]
ignore = [
"S101", # assert used (OK in tests)
"T201", # print found (OK for CLI tool)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[tool.ruff.lint.isort]
known-first-party = ["oddsharvester"]
force-sort-within-sections = true
[tool.ruff.lint.per-file-ignores]
# Tests can use more flexible patterns
"tests/**" = ["S101", "S105", "S106", "S108", "PT011", "SIM117"]
# Lambda handler may need different patterns
"src/oddsharvester/lambda_handler.py" = ["T201"]
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools]
include-package-data = true