-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 1.83 KB
/
pyproject.toml
File metadata and controls
87 lines (78 loc) · 1.83 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[project]
name = "brightdata-sdk"
version = "2.2.1"
description = "Modern async-first Python SDK for Bright Data APIs"
authors = [{name = "Bright Data", email = "support@brightdata.com"}]
license = {text = "MIT"}
requires-python = ">=3.9"
readme = "README.md"
dependencies = [
"aiohttp>=3.9.0",
"requests>=2.31.0",
"python-dotenv>=1.0.0",
"tldextract>=5.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"aiolimiter>=1.1.0",
"click>=8.1.0",
]
[project.scripts]
brightdata = "brightdata.cli.main:main"
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"pre-commit>=3.4.0",
]
browser = [
"playwright>=1.40.0",
]
all = ["brightdata-sdk[dev,browser]"]
[tool.black]
line-length = 100
target-version = ['py39']
[tool.ruff]
line-length = 100
target-version = "py39"
exclude = [
"probe_tests",
"notebooks",
"examples",
".git",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
ignore = [
"E402", # Module level import not at top of file (common in notebooks/scripts)
"F841", # Local variable assigned but never used (common in tests)
]
[tool.mypy]
python_version = "3.9"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
no_strict_optional = true
allow_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]