|
4 | 4 |
|
5 | 5 | - Lint & format: `ruff check --fix && ruff format` |
6 | 6 | - Type checking: `mypy src/` |
7 | | -- Run all tests: `pytest` |
8 | | -- Run single test: `pytest path/to/test.py::test_function` |
9 | | -- Run integration tests: `pytest -m integration` |
10 | | -- Run pyright tests: `pytest -m pyright` |
| 7 | +- Run tests: `pytest` |
11 | 8 |
|
12 | 9 | ## Code Style Guidelines |
13 | 10 |
|
14 | | -- Python: 3.12+ required, use `from __future__ import annotations` |
15 | | -- Imports: Use isort (handled by ruff), group stdlib, third-party, local imports |
16 | | -- Formatting: Double quotes, space indentation (handled by ruff format) |
17 | | -- Types: Full type annotations required, use `lsp_type` alias for LSP types |
18 | | -- Naming: snake_case for variables/functions, PascalCase for classes |
19 | | -- Error handling: Use tenacity for retries, anyio.fail_after for timeouts |
20 | | -- Async: Use async/await, asyncer.TaskGroup for concurrency |
21 | | -- Structure: Follow capability-based protocol pattern in capability/ module |
| 11 | +- Python: 3.12+ required |
| 12 | +- Imports & Formatting: use ruff |
| 13 | +- Types: Full type annotations required, use `lsp_client.utils.types.lsp_type` for standard LSP types |
| 14 | +- Error handling: Use tenacity for retries, `anyio.fail_after` for timeouts |
| 15 | +- Async: Use async/await, `asyncer.TaskGroup` for concurrency |
| 16 | +- Structure: Follow capability-based protocol pattern in capability/ module |
0 commit comments