8000 docs: update contributing guide to manage python env with hatch shell · strands-agents/sdk-python@b0ab6d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0ab6d8

Browse files
committed
docs: update contributing guide to manage python env with hatch shell
1 parent 221d004 commit b0ab6d8

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ This project uses [hatchling](https://hatch.pypa.io/latest/build/#hatchling) as
3131

3232
### Setting Up Your Development Environment
3333

34-
1. Install development dependencies:
34+
1. Entering virtual environment using `hatch` (recommended), then launch your IDE in the new shell.
35+
```bash
36+
hatch shell dev
37+
```
38+
39+
Alternatively, install development dependencies in a manually created virtual environment:
3540
```bash
3641
pip install -e ".[dev]" && pip install -e ".[litellm]
3742
```
3843
44+
3945
2. Set up pre-commit hooks:
4046
```bash
4147
pre-commit install -t pre-commit -t commit-msg

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ extra-args = [
114114
"-vv",
115115
]
116116

117+
[tool.hatch.envs.dev]
118+
dev-mode = true
119+
features = ["dev", "docs", "anthropic", "litellm", "llamaapi", "ollama"]
120+
121+
117122

118123
[[tool.hatch.envs.hatch-test.matrix]]
119124
python = ["3.13", "3.12", "3.11", "3.10"]

src/strands/handlers/tool_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def preprocess(
4646
def process(
4747
self,
4848
tool: Any,
49+
*,
4950
model: Model,
5051
system_prompt: Optional[str],
5152
messages: List[Any],

0 commit comments

Comments
 (0)
0