mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
docs: add pre-commit hooks section to CONTRIBUTING.md and create PRE_COMMIT.md guide
This commit is contained in:
parent
b82c24ad07
commit
5d4012b14f
2 changed files with 244 additions and 0 deletions
|
|
@ -76,6 +76,13 @@ SurfSense consists of three main components:
|
|||
|
||||
## 🧪 Development Guidelines
|
||||
|
||||
### Code Quality & Pre-commit Hooks
|
||||
We use pre-commit hooks to maintain code quality, security, and consistency across the codebase. Before you start developing:
|
||||
|
||||
1. **Install and set up pre-commit hooks** - See our detailed [Pre-commit Guide](./PRE_COMMIT.md)
|
||||
2. **Understand the automated checks** that will run on your code
|
||||
3. **Learn about bypassing hooks** when necessary (use sparingly!)
|
||||
|
||||
### Code Style
|
||||
- **Backend**: Follow Python PEP 8 style guidelines
|
||||
- **Frontend**: Use TypeScript and follow the existing code patterns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue