Add pre-commit framework and hooks config #13

Merged
mdaleo404 merged 2 commits from update_resrm_20251115 into main 2025-11-15 08:06:31 +00:00
Showing only changes of commit 80fb24b7c5 - Show all commits

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.