-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (71 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (71 loc) · 2.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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openwebui-tool-websearch"
version = "3.0.0"
description = "OpenWebUI tool that exposes web_search and fetch_url to the model by querying DuckDuckGo directly over HTTPS."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "Richard Braun" }]
keywords = ["openwebui", "open-webui", "tool", "websearch", "llm", "function-calling"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pydantic>=2",
"httpx>=0.27,<1",
]
[project.optional-dependencies]
dev = [
"black>=24.0",
"pre-commit>=3.7",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.5",
]
[project.urls]
Homepage = "https://github.com/richardbenedikt/openwebui-tool-websearch"
Issues = "https://github.com/richardbenedikt/openwebui-tool-websearch/issues"
Source = "https://github.com/richardbenedikt/openwebui-tool-websearch"
[tool.setuptools]
py-modules = ["websearch"]
[tool.black]
line-length = 120
target-version = ["py311", "py312"]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # simplify
"RUF", # ruff
]
ignore = [
"N802", # OpenWebUI uses dunder kwargs like __request__
"N803", # same as above for argument names
"B008", # FastAPI/OpenWebUI patterns sometimes use Field() defaults
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011", "N802"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = "-q --strict-markers"
asyncio_mode = "auto"
filterwarnings = ["error"]