Skip to content

Contributing to CodeDox

Thank you for your interest in contributing to CodeDox!

Getting Started

  1. Fork the repository
  2. Clone your fork
  3. Create a feature branch
  4. Make your changes
  5. Submit a pull request

Development Setup

# Clone the repo
git clone https://github.com/yourusername/codedox.git
cd codedox

# Set up Python environment
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt

# Set up frontend
cd frontend
npm install
cd ..

# Initialize database
python cli.py init

# Run tests
pytest tests/

Code Style

  • Python: Follow PEP 8, use Black formatter
  • TypeScript: Use Prettier
  • No unnecessary comments
  • Follow DRY principles

Testing

Run tests before submitting:

# Python tests
pytest tests/ -v

# Frontend tests
cd frontend
npm test

Pull Request Process

  1. Update tests for new features
  2. Update documentation if needed
  3. Ensure all tests pass
  4. Update CHANGELOG.md
  5. Submit PR with clear description

Reporting Issues

Use GitHub Issues to report bugs or suggest features.

Include: - Clear description - Steps to reproduce - Expected behavior - Actual behavior - System information