This commit is contained in:
Dan Davison
2025-07-29 18:11:34 -04:00
parent fc1f74c6ae
commit e2eb41a3da
2 changed files with 16 additions and 10 deletions

View File

@@ -129,17 +129,15 @@ uv run pytest --cov=workflows --cov=activities
## Linting and Code Quality ## Linting and Code Quality
```bash ```bash
# Format code # Using poe tasks
uv run poe format # Format code with black and isort
uv run poe lint # Check code style and types
uv run poe test # Run test suite
# Manual commands
uv run black . uv run black .
uv run isort . uv run isort .
# Check code style and types
uv run black --check .
uv run isort --check-only .
uv run mypy --check-untyped-defs --namespace-packages . uv run mypy --check-untyped-defs --namespace-packages .
# Run test suite
uv run pytest
``` ```
## Agent Customization ## Agent Customization

View File

@@ -8,14 +8,22 @@ This document provides guidelines for contributing to `temporal-ai-agent`. All s
We use `black` for code formatting and `isort` for import sorting to maintain a consistent codebase. We use `black` for code formatting and `isort` for import sorting to maintain a consistent codebase.
- **Format code:** - **Format code:**
```bash ```bash
uv run poe format
```
Or manually
```
uv run black . uv run black .
uv run isort . uv run isort .
``` ```
Please format your code before committing. Please format your code before committing.
### Linting & Type Checking ### Linting & Type Checking
We use `mypy` for static type checking. We use `mypy` for static type checking and other linters configured via `poe`.
- **Run type checks:** - **Run linters and type checks:**
```bash
uv run poe lint
```
Or manually for type checking:
```bash ```bash
uv run mypy --check-untyped-defs --namespace-packages . uv run mypy --check-untyped-defs --namespace-packages .
``` ```