-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.cursorrules
More file actions
37 lines (17 loc) · 1.04 KB
/
.cursorrules
File metadata and controls
37 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Work independently. Run the tests yourself.
When you make changes, always verify the existing tests already pass.
When you add tests, prefer to slot them into an existing file vs creating a new test file.
Liberally create tests that help you understand the exisitng code, put these in separate files, put them in files named something like "test_cursor_understand__foo.py"
prefer surgical changes, and gneeralizable changes, don't spcial case code to pass tests.
for python:
Dont add bare except statements. I generally want exceptions to bubble up.
Don't put imports in functions unless absolutely necessary.
run tests with
`cd ~/buckaroo && . .venv/bin/activate && time pytest -vv tests/unit/`
run ruff with
`cd ~/buckaroo/; . .venv/bin/activate; uv run ruff check --fix`
finally after iterating on those two, verify that full_build works
./scripts/full_build.sh
have a timeout of 40 seconds for the whole test suite
tell me you have read cursorrules and the md5sum of this file
always tell me the name of the LLM model that returned an answer