Skip to content

Commit b33cb46

Browse files
committed
docs(cursor[rules]) Add dev-loop rule
See also: https://docs.cursor.com/context/rules-for-ai
1 parent 6236cbe commit b33cb46

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.cursor/rules/dev-loop.mdc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
description: QA every edit
3+
globs: *.py
4+
---
5+
6+
# First: QA Every edit
7+
8+
Run these commands between edits:
9+
10+
Check typings:
11+
12+
```
13+
uv run mypy
14+
```
15+
16+
Lint:
17+
18+
```
19+
uv run ruff check . --fix; uv run ruff format .;
20+
```
21+
22+
Check tests:
23+
24+
```
25+
uv run py.test
26+
```
27+
28+
Between every edit, rerun:
29+
- Type checks
30+
- Lint
31+
- Tests
32+
33+
If there's any failures *due to the edits*, fix them first, then:
34+
35+
# When your edit is complete: Commit it
36+
37+
Make an atomic commit for the edit, using conventional commits.

0 commit comments

Comments
 (0)