Skip to content

Commit df2b356

Browse files
authored
Add tooling information rules for Cursor (#210)
1 parent 318b0b6 commit df2b356

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.cursor/tooling.mdc

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
alwaysApply: true
3+
---
4+
5+
# Development Tooling
6+
7+
This project uses `uv` for dependency management and includes several tools for code quality and testing. These should always pass before a tasks is considered complete.
8+
9+
## Setup
10+
11+
Install dependencies:
12+
```bash
13+
uv sync --group dev
14+
```
15+
16+
## Testing
17+
18+
### Run All Tests
19+
```bash
20+
uv run pytest
21+
```
22+
23+
### Run Specific Tests
24+
```bash
25+
uv run pytest tests/unit_tests/data_types/test_geometry.py
26+
```
27+
28+
### Test Coverage
29+
Coverage reports are generated automatically when running tests. View the HTML report:
30+
```bash
31+
uv run pytest --cov=src/surrealdb --cov-report=term-missing --cov-report=html
32+
```
33+
34+
## Code Quality
35+
36+
### Format Code
37+
Check formatting:
38+
```bash
39+
uv run ruff format --check --diff src/
40+
```
41+
42+
Apply formatting:
43+
```bash
44+
uv run ruff format src/
45+
```
46+
47+
### Lint Code
48+
```bash
49+
uv run ruff check src/
50+
```
51+
52+
## Type Checking
53+
54+
### mypy
55+
Check library:
56+
```bash
57+
uv run mypy --explicit-package-bases src/
58+
```
59+
60+
Check tests:
61+
```bash
62+
uv run mypy --explicit-package-bases tests/
63+
```
64+
65+
### pyright
66+
```bash
67+
uv run pyright src/
68+
```

0 commit comments

Comments
 (0)