Skip to content

docs: update contributing guide to manage python env with hatch shell #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ This project uses [hatchling](https://hatch.pypa.io/latest/build/#hatchling) as

### Setting Up Your Development Environment

1. Install development dependencies:
1. Entering virtual environment using `hatch` (recommended), then launch your IDE in the new shell.
```bash
hatch shell dev
```

Alternatively, install development dependencies in a manually created virtual environment:
```bash
pip install -e ".[dev]" && pip install -e ".[litellm]
```


2. Set up pre-commit hooks:
```bash
pre-commit install -t pre-commit -t commit-msg
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ extra-args = [
"-vv",
]

[tool.hatch.envs.dev]
dev-mode = true
features = ["dev", "docs", "anthropic", "litellm", "llamaapi", "ollama"]



[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10"]
Expand Down
1 change: 1 addition & 0 deletions src/strands/handlers/tool_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def preprocess(
def process(
self,
tool: Any,
*,
model: Model,
system_prompt: Optional[str],
messages: List[Any],
Expand Down