docs+ci: document ruff format --check; format app.py

This commit is contained in:
2026-07-17 17:57:00 +08:00
parent 844220e013
commit a282231082
4 changed files with 17 additions and 9 deletions
+5 -3
View File
@@ -62,15 +62,17 @@ pdm sync # after pull
pdm run plyngent --help
```
Dev checks:
Dev checks (same order as CI):
```bash
pdm run basedpyright .
pdm run ruff check .
pdm run ruff format .
pdm run ruff format --check . # or: pdm run ruff format . to apply
pdm run basedpyright .
pdm run pytest
```
CI fails if sources are not Ruff-formatted (`ruff format --check`). Run `pdm run ruff format .` before push.
## Basic usage
```bash