This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (152 loc) · 5.11 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (152 loc) · 5.11 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "langchain-parallel-web"
version = "0.1.0"
description = "A LangChain integration for Parallel Web AI services, including Chat and Search."
authors = ["Parallel Team <support@parallel.ai>"]
readme = "README.md"
repository = "https://github.com/parallel-web/langchain-parallel-web"
license = "MIT"
[tool.mypy]
disallow_untyped_defs = true
# Ignore type errors from the Parallel SDK
[[tool.mypy.overrides]]
module = "parallel.*"
ignore_missing_imports = true
ignore_errors = true
# Relax type checking for our SDK client wrapper
[[tool.mypy.overrides]]
module = "langchain_parallel_web._client"
disable_error_code = ["arg-type"]
# Relax type checking for extract tool's SDK interaction
[[tool.mypy.overrides]]
module = "langchain_parallel_web.extract_tool"
disable_error_code = ["assignment"]
# Allow string to SecretStr in integration tests
[[tool.mypy.overrides]]
module = "tests.integration_tests.*"
disable_error_code = ["arg-type"]
[tool.poetry.urls]
"Source Code" = "https://github.com/parallel-web/langchain-parallel-web"
"Release Notes" = "https://github.com/parallel-web/langchain-parallel-web/releases"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = "^0.3.76"
openai = "^1.88.0"
pydantic = "^2.11.7"
httpx = "^0.27.0"
parallel-web = "^0.3.3"
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"E", # pycodestyle error
"EM", # flake8-errmsg
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FLY", # flake8-flynt
"I", # isort
"ICN", # flake8-import-conventions
"INT", # flake8-gettext
"ISC", # isort-comprehensions
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PERF", # flake8-perf
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-rst-docstrings
"RUF", # ruff
"S", # flake8-bandit
"SLF", # flake8-self
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # Incompatible with D211 (blank line before class)
"D213", # Incompatible with D212 (multi-line summary)
"COM812", # Messes with the formatter
"ISC001", # Messes with the formatter
"PERF203", # Rarely useful
"S112", # Rarely useful
"RUF012", # Doesn't play well with Pydantic
"SLF001", # Private member access
"UP007", # pyupgrade: non-pep604-annotation-union
"UP045", # pyupgrade: non-pep604-annotation-optional
]
unfixable = ["B028"] # People should intentionally tune the stacklevel
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # Tests need assertions
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
"examples/*.py" = ["T201"] # Allow print statements in examples
"docs/*.ipynb" = ["T201", "E501"] # Allow print statements and long lines in documentation
"scripts/*.py" = ["SIM105", "S110"] # Allow try-except-pass in scripts
"langchain_parallel_web/extract_tool.py" = [
"FBT001", # Boolean-typed positional argument (matches Extract API design)
"FBT002", # Boolean default positional argument (matches Extract API design)
]
"langchain_parallel_web/_client.py" = [
"FBT001", # Boolean-typed positional argument (matches Extract API design)
]
[tool.coverage.run]
omit = ["tests/*"]
[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config --durations=5"
markers = [
"compile: mark placeholder test used to compile integration tests without running them",
]
asyncio_mode = "auto"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.codespell]
optional = true
[tool.poetry.group.test_integration]
optional = true
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
[tool.poetry.group.test.dependencies]
pytest = "^7.4.3"
pytest-asyncio = "^0.23.2"
pytest-socket = "^0.7.0"
pytest-watcher = "^0.3.4"
langchain-tests = "^0.3.8"
pytest-mock = "^3.14.1"
freezegun = "^1.2.2"
syrupy = "^4.0.2"
[tool.poetry.group.codespell.dependencies]
codespell = "^2.2.6"
[tool.poetry.group.test_integration.dependencies]
[tool.poetry.group.lint.dependencies]
ruff = "<0.13,>=0.12.2"
[tool.poetry.group.typing.dependencies]
mypy = "^1.10"
types-requests = "^2.31.0"
langchain-core = "^0.3.76"