| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 1 | 1 | 0% |
| Commands | 0 | 0 | 3 | 0% |
| Section tags | 0 | 1 | 3 | 0% |
What each file covers
Sections
0 shared · 1 only in A · 1 only in B- − Pydantic Rules
- + Testing Guidelines
Commands
0 shared · 0 only in A · 3 only in B- + pytest
- + pytest-asyncio
- + uv run pytest test
Section tags
0 shared · 1 only in A · 3 only in B- − do-not
- + test
- + code-style
- + testing-strategy
Line diff
growgraph/ontocast · .cursor/rules/pydantic-usage.mdc
@@ −1 @@
1---
2description: "Conventions for using Pydantic models and settings"
3globs:
4 - "**/*.py"
5alwaysApply: false
6---
7
8# Pydantic Rules
9- Use `pydantic.BaseModel` for request/response schemas.
10- For configuration, use `pydantic_settings.BaseSettings` (v2).
11- Always provide default values or use `...` for required fields.
12- Use model validators (`@field_validator`, `@model_validator`) instead of custom init logic.
13- Keep models small and focused on one purpose.
14
growgraph/ontocast · .cursor/rules/tests.mdc
@@ +1 @@
1---
2description: "Testing guidelines"
3globs:
4 - "test/**/*.py"
5alwaysApply: false
6---
7
8# Testing Guidelines
9- Use `pytest` with descriptive test function names.
10- Prefer fixtures over global state.
11- For async code, use `pytest-asyncio`.
12- Ensure test coverage for:
13 - Pydantic model validation
14 - Env config via `BaseSettings`
15 - Error cases and edge cases
16- Run tests with `uv run pytest test`.
17
@@ −1 +1 @@
11 ---
2−description: "Conventions for using Pydantic models and settings"
2+description: "Testing guidelines"
33 globs:
4− - "**/*.py"
4+ - "test/**/*.py"
55 alwaysApply: false
66 ---
77
8−# Pydantic Rules
9−- Use `pydantic.BaseModel` for request/response schemas.
10−- For configuration, use `pydantic_settings.BaseSettings` (v2).
11−- Always provide default values or use `...` for required fields.
12−- Use model validators (`@field_validator`, `@model_validator`) instead of custom init logic.
13−- Keep models small and focused on one purpose.
8+# Testing Guidelines
9+- Use `pytest` with descriptive test function names.
10+- Prefer fixtures over global state.
11+- For async code, use `pytest-asyncio`.
12+- Ensure test coverage for:
13+ - Pydantic model validation
14+ - Env config via `BaseSettings`
15+ - Error cases and edge cases
16+- Run tests with `uv run pytest test`.
1417
