Python Style Guide
General Guidelines
- Follow PEP 8 for Python code style
- Use type hints for all function parameters and return values
- Include comprehensive docstrings for all modules, classes, and functions
- Run
mise lintbefore committing to ensure code quality
Linting and Formatting
Check code quality:Route Handler Best Practices
Route handlers should be thin wrappers around service functions:Service Function Best Practices
Service functions should contain the business logic:TypeScript/JavaScript Style Guide
Frontend Standards
- Use TypeScript for all new code
- Follow ESLint configuration
- Use Prettier for consistent formatting
- Prefer functional components and hooks
Linting and Formatting
Check code quality:Commit Message Format
Follow conventional commits format:feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style changes (formatting, etc.)refactor: Code refactoringtest: Adding or updating testschore: Maintenance tasks
Testing Standards
- Write tests for all new features and bug fixes
- Maintain or improve code coverage
- Both unit and integration tests are encouraged
