PROJECT_DESCRIPTION
- 📖 Getting Started Guide - Quick setup and development guide
# Clone the repository
git clone https://github.com/__GITHUB_REPOSITORY__.git
cd __REPO_NAME__
# Install pre-commit hooks
pip install pre-commit
pre-commit install
# Start development
bench startThis project enforces strict code quality standards using automated tools:
- Python Code Formatting:
black,isort,autoflake - Security Scanning:
bandit,safety - Code Quality:
flake8,mypy,pylint - Frappe Standards: Custom hooks for Frappe-specific patterns
- Commit Standards: Conventional commits with
commitlint - Documentation: Automatic documentation generation
# Install pre-commit
pip install pre-commit
# Install hooks
pre-commit install
# Run all hooks manually
pre-commit run --all-filesWe follow Conventional Commits specification:
# Format: type(scope): description
feat(user): add user authentication module
fix(api): resolve data validation issue
docs(readme): update installation instructions
test(auth): add unit tests for login flowAllowed commit types:
feat- New featuresfix- Bug fixesdocs- Documentation changesstyle- Code style improvementsrefactor- Code refactoringtest- Adding/updating testschore- Maintenance tasksperf- Performance improvementsci- CI/CD changesbuild- Build system changesrevert- Reverting changesdeprecate- Deprecation decisions
- Python: 3.8+ (3.13 recommended)
- Node.js: 18+ (22 recommended)
- Frappe Framework: Latest stable version
- Database: MariaDB 10.6+ or PostgreSQL 13+
-
Create Feature Branch
git checkout -b feat/your-feature-name
-
Make Changes
- Follow code quality standards
- Write tests for new features
- Update documentation
-
Commit Changes
git add . git commit -m "feat(module): add new feature description"
-
Pre-commit Hooks Run Automatically
- Code formatting
- Security scanning
- Quality checks
- Documentation updates
-
Push and Create PR
git push origin feat/your-feature-name
# Run all tests
bench --site test_site run-tests
# Run specific app tests
bench --site test_site run-tests --app your_app_name
# Run with coverage
bench --site test_site run-tests --coverage# Create new site
bench new-site your-site-name
# Install the app
bench --site your-site-name install-app __APP_NAME__# Get the app
bench get-app __APP_NAME__ https://github.com/__GITHUB_REPOSITORY__.git
# Create new site
bench new-site development.localhost
# Install app
bench --site development.localhost install-app __APP_NAME__
# Start development server
bench startThis project is licensed under the MIT License - see the LICENSE file for details.
Powered by Dhwani RIS