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

Skip to content

Commit 77f5fa7

Browse files
authored
docs: update contributing guide to manage python env with hatch shell (strands-agents#46)
1 parent cb4da3c commit 77f5fa7

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
@@ -117,6 +117,11 @@ extra-args = [
117117
"-vv",
118118
]
119119

120+
[tool.hatch.envs.dev]
121+
dev-mode = true
122+
features = ["dev", "docs", "anthropic", "litellm", "llamaapi", "ollama"]
123+
124+
120125

121126
[[tool.hatch.envs.hatch-test.matrix]]
122127
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