Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

docs: better doc for dev in api like Claude.md (#24442)

yihong4eba2ee92b71
diff --git a/api/README.md b/api/README.md
index 9e31172ac42..8309a0e69b2 100644
--- a/api/README.md
+++ b/api/README.md
@@ -97,8 +97,16 @@ uv run celery -A app.celery beat
uv sync --dev
```
-1. Run the tests locally with mocked system environment variables in `tool.pytest_env` section in `pyproject.toml`
+1. Run the tests locally with mocked system environment variables in `tool.pytest_env` section in `pyproject.toml`, more can check [Claude.md](../CLAUDE.md)
- ```bash
- uv run -P api bash dev/pytest/pytest_all_tests.sh
+ ```cli
+ uv run --project api pytest # Run all tests
+ uv run --project api pytest tests/unit_tests/ # Unit tests only
+ uv run --project api pytest tests/integration_tests/ # Integration tests
+
+ # Code quality
+ ./dev/reformat # Run all formatters and linters
+ uv run --project api ruff check --fix ./ # Fix linting issues
+ uv run --project api ruff format ./ # Format code
+ uv run --project api mypy . # Type checking
```