Add pre-commit section to README

This commit is contained in:
2025-11-15 08:04:30 +00:00
parent 5f8d6c03d8
commit 80fb24b7c5

View File

@@ -86,3 +86,13 @@ resrm --empty
Normal users: `~/.local/share/resrm/files`
Root user: `/root/.local/share/resrm/files`
## pre-commit
This project uses [**pre-commit**](https://pre-commit.com/) to run automatic formatting and security checks before each commit (Black, Bandit, and various safety checks).
To enable it:
```
poetry install
poetry run pre-commit install
```
This ensures consistent formatting, catches common issues early, and keeps the codebase clean.