Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (87 loc) · 2.67 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "browserless-bap"
dynamic = ["version"]
description = "Python async and sync client for Browserless's Browser Automation Protocol"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE"]
authors = [{name = "Browserless", email = "eng@browserless.io"}]
keywords = ["browserless", "browserql", "browser-automation", "playwright"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = ["websockets>=14.0"]
[project.optional-dependencies]
dev = [
"build>=1.2",
"graphql-core>=3.2",
"griffe>=1.0",
"mypy>=1.14",
"pytest>=8.3",
"pytest-asyncio>=0.25",
"pytest-timeout>=2.3",
"ruff>=0.9",
"twine>=6.0",
]
[project.urls]
Homepage = "https://github.com/browserless/bap-py"
Documentation = "https://docs.browserless.io/bap/python/reference"
Source = "https://github.com/browserless/bap-py"
Changelog = "https://github.com/browserless/bap-py/releases"
Issues = "https://github.com/browserless/bap-py/issues"
[tool.hatch.version]
path = "src/browserless_bap/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/.release-please-manifest.json",
"/AGENTS.md",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/LICENSE",
"/README.md",
"/llms.txt",
"/pyproject.toml",
"/schema.lock",
"/scripts",
"/src",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["src/browserless_bap"]
exclude = ["src/browserless_bap/mutations.graphql"]
[tool.hatch.build.targets.wheel.force-include]
"src/browserless_bap/py.typed" = "browserless_bap/py.typed"
[tool.pytest.ini_options]
addopts = "--timeout=60 --timeout-method=thread"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = ["error::RuntimeWarning"]
markers = ["e2e: tests that require a live Browserless service"]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = ["ASYNC", "B", "E", "F", "I", "RUF", "UP"]
[tool.ruff.lint.per-file-ignores]
"src/browserless_bap/_page_generated.py" = ["E501"]
"src/browserless_bap/graphql/mutations.py" = ["E501"]
"src/browserless_bap/graphql/subscriptions.py" = ["E501"]
"src/browserless_bap/sync_api/_page_generated.py" = ["E501"]
"src/browserless_bap/types/*.py" = ["E501"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src/browserless_bap", "scripts", "tests"]