| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 1 | 1 | 0% |
| Commands | 0 | 1 | 0 | 0% |
| Section tags | 0 | 1 | 2 | 0% |
What each file covers
Sections
0 shared · 1 only in A · 1 only in B- − Tests (Backend + Frontend)
- + Backend Logging Standard
Commands
0 shared · 1 only in A · 0 only in B- − make test
Section tags
0 shared · 1 only in A · 2 only in B- − test
- + code-style
- + do-not
Line diff
weirdfingers/boards · .cursor/rules/test.mdc
@@ −1 @@
1---
2description: Run backend and frontend tests via the project Makefile
3alwaysApply: false
4---
5
6# Tests (Backend + Frontend)
7
8Use the root Makefile target to run all tests across the monorepo.
9
10- Backend: Python tests via pytest (run under uv-managed envs)
11- Frontend: Workspace test scripts via Turbo/pnpm
12
13Command (run at repository root):
14
15```bash
16make test
17```
18
19Reference: [Makefile](mdc:Makefile) target `test`.
20
weirdfingers/boards · .cursor/rules/backend-logging.mdc
@@ +1 @@
1---
2description: Backend logging should use the centralized logger utilities
3globs: packages/backend/**/*.py
4---
5
6# Backend Logging Standard
7
8Always use the centralized logging utilities in [packages/backend/src/boards/logging.py](mdc:packages/backend/src/boards/logging.py).
9
10- Use `get_logger(__name__)` to create module loggers
11- Do not use `print(...)` or `logging.getLogger(...)` directly in backend code
12- Configure once at app startup using `configure_logging(debug=settings.debug)`
13- Prefer structured logs; include request/user context via provided helpers
14- unless logging errors, never use `exc_info=True`
15
16Example (module usage):
17
18```python
19from boards.logging import get_logger
20
21logger = get_logger(__name__)
22
23async def handler():
24 logger.info("processing", step="start")
25```
26
27Example (app setup):
28
29```python
30from boards.logging import configure_logging
31
32configure_logging(debug=settings.debug)
33```
34
@@ −1 +1 @@
11 ---
2−description: Run backend and frontend tests via the project Makefile
3−alwaysApply: false
2+description: Backend logging should use the centralized logger utilities
3+globs: packages/backend/**/*.py
44 ---
55
6−# Tests (Backend + Frontend)
6+# Backend Logging Standard
77
8−Use the root Makefile target to run all tests across the monorepo.
8+Always use the centralized logging utilities in [packages/backend/src/boards/logging.py](mdc:packages/backend/src/boards/logging.py).
99
10−- Backend: Python tests via pytest (run under uv-managed envs)
11−- Frontend: Workspace test scripts via Turbo/pnpm
10+- Use `get_logger(__name__)` to create module loggers
11+- Do not use `print(...)` or `logging.getLogger(...)` directly in backend code
12+- Configure once at app startup using `configure_logging(debug=settings.debug)`
13+- Prefer structured logs; include request/user context via provided helpers
14+- unless logging errors, never use `exc_info=True`
1215
13−Command (run at repository root):
16+Example (module usage):
1417
15−```bash
16−make test
18+```python
19+from boards.logging import get_logger
20+
21+logger = get_logger(__name__)
22+
23+async def handler():
24+ logger.info("processing", step="start")
1725 ```
1826
19−Reference: [Makefile](mdc:Makefile) target `test`.
27+Example (app setup):
28+
29+```python
30+from boards.logging import configure_logging
31+
32+configure_logging(debug=settings.debug)
33+```
2034
