Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 2.02 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (68 loc) · 2.02 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "langgraph-swarm"
version = "0.1.0"
description = "An implementation of a multi-agent swarm using LangGraph"
authors = [
{ name = "Vadym Barda", email = "19161700+vbarda@users.noreply.github.com " },
]
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.10"
dependencies = ["langchain>=1,<2", "langchain-core>=1,<2", "langgraph>=1,<2"]
[dependency-groups]
test = [
"pytest>=9,<10",
"ruff>=0.9,<1",
"mypy>=1,<2",
"pytest-socket>=0.7,<1",
"types-setuptools>=80",
]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q -v"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line-length
"D100",
"D104",
"D203",
"D213",
"UP007",
"COM812",
"ANN",
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"D104",
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"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
"D415", # First line should end with a period, question mark, or exclamation point
]