File: code-review.prompt.md

package info (click to toggle)
python-bsblan 5.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,184 kB
  • sloc: python: 7,035; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
---
agent: agent
description: Review code changes for python-bsblan library
---

# Code Review Checklist

Review the changes against the python-bsblan coding standards.

## Checklist

### Code Quality
- [ ] Type hints on all functions
- [ ] Docstrings on public methods
- [ ] Line length under 88 characters
- [ ] Consistent parameter naming (snake_case)

### Testing
- [ ] Tests added for new functionality
- [ ] Test coverage 95%+ total
- [ ] Patch coverage 100%

### Patterns
- [ ] Uses `pydantic` `BaseModel` for validation and serialization
- [ ] Uses `aiohttp` for async HTTP
- [ ] Follows existing parameter naming conventions
- [ ] Error handling uses custom exceptions (`BSBLANError`, `BSBLANConnectionError`)

### Prek
- [ ] Ruff passes (linting + formatting)
- [ ] MyPy passes (type checking)
- [ ] Pylint passes (code analysis)
- [ ] Pytest passes (tests)

## Run Validation

```bash
uv run prek run --all-files
uv run pytest --cov=src/bsblan --cov-report=term-missing
```