File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,19 @@ Verify that your changes pass the tests:
2121uv run py.test
2222```
2323
24+ For continuous testing during development, use pytest-watch:
25+
26+ ```
27+ # Watch all tests
28+ uv run ptw .
29+
30+ # Watch and run tests immediately, including doctests
31+ uv run ptw . --now --doctest-modules
32+
33+ # Watch specific files or directories
34+ uv run ptw . --now --doctest-modules src/libtmux/_internal/
35+ ```
36+
2437## 3. Commit Initial Changes
2538
2639Make an atomic commit for your changes using conventional commits.
@@ -50,7 +63,8 @@ uv run py.test
5063
5164## 6. Final Commit
5265
53- If all tests pass, make your final commit.
66+ Make a final commit with any linting/typing fixes.
67+ Use `@git-commits.mdc` for assistance with commit message standards.
5468
5569## Development Loop Guidelines
5670
@@ -125,3 +139,9 @@ For doctests in `src/**/*.py` files:
1251394. **Keep doctests simple and focused** on demonstrating usage rather than comprehensive testing.
126140
1271415. **Add blank lines between test sections** for improved readability.
142+
143+ 6. **Test your doctests continuously** using pytest-watch during development:
144+ ```
145+ # Watch specific modules for doctest changes
146+ uv run ptw . --now --doctest-modules src/path/to/module.py
147+ ```
You can’t perform that action at this time.
0 commit comments