-
Notifications
You must be signed in to change notification settings - Fork 871
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (58 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
65 lines (58 loc) · 2.21 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
[project]
name = "strands-monorepo-tools"
version = "0.0.0"
description = "Shared Python tooling for the Strands monorepo. Not published."
requires-python = ">=3.10"
dependencies = [
# Build-time codegen: parses WIT and emits Python bindings.
"componentize-py>=0.23.0,<1.0.0",
# Forked wasmtime-py with async component model support.
# Used by ``strandly generate`` (wasmtime.component.bindgen) and at runtime by strands-py-wasm.
"pgrayy-wasmtime @ git+https://github.com/pgrayy/wasm-deps.git@4b5dc41512109ebafe4c4f1edd592c739872c640#subdirectory=wasmtime-py",
# Linter/formatter used by ``strandly check --py`` and ``strandly fmt``.
"ruff>=0.13.0,<0.15.0",
# Type checker used by ``strandly check --py``.
"pyright>=1.1.400",
# Test runner for the shared venv.
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
# Optional runtime extras used by strands-py-wasm integration tests.
"pydantic>=2.13.3",
"docstring-parser>=0.18.0",
"boto3>=1.43.2",
"tenacity>=9.1.4",
]
[tool.setuptools]
# We don't ship a distribution. Suppress the auto-discovery warning.
packages = []
[tool.pytest.ini_options]
asyncio_mode = "auto"
cache_dir = ".pytest_cache"
# Ruff config lives here because ruff walks up from the file it's linting
# and the monorepo has a single style. strands-py-wasm/pyproject.toml does not
# carry its own ruff table.
[tool.ruff]
line-length = 120
include = ["strands-py-wasm/src/**/*.py", "strandly/scripts/**/*.py"]
# _generated/ is machine-written; neither lint nor format enforce rules on it.
extend-exclude = ["strands-py-wasm/src/strands/_generated/"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
# Pyright config lives here for the same reason as ruff: one rule for
# the whole monorepo. Pyright walks up to find the nearest pyproject.
# `exclude` is omitted so pyright inherits its built-in defaults
# (**/node_modules, **/__pycache__, **/.*); setting it would replace
# those, not merge.
[tool.pyright]
include = ["strands-py-wasm/src/strands"]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "standard"
reportMissingTypeStubs = false
reportMissingImports = "warning"