After cloning the repository, simply run the appropriate setup script for your operating system:
For Linux/Mac:
# Make the script executable
chmod +x setup.sh
# Run the setup script
./setup.shThe setup script will automatically:
- Install Black linter for Python
- Install pre-commit hooks
- Set up the frontend dependencies
- Run initial linting on your codebase
Now, whenever you make changes:
- The code will be automatically linted when you commit
- If any linting errors are found, the commit will be rejected
- Fix the errors and try committing again
You can also manually run these tools at any time:
- For backend:
black backend/ - For frontend:
cd frontend && npm run lint - For all pre-commit hooks:
pre-commit run --all-files