Contributing to AIEO¶
Thank you for your interest in contributing to AIEO! This document provides guidelines and instructions for contributing.
Code of Conduct¶
By participating in this project, you agree to abide by our Code of Conduct.
How to Contribute¶
Reporting Bugs¶
If you find a bug, please open an issue with: - A clear, descriptive title - Steps to reproduce the bug - Expected behavior vs actual behavior - Environment details (OS, Python version, etc.) - Relevant logs or error messages
Suggesting Features¶
Feature suggestions are welcome! Please open an issue with: - A clear description of the feature - Use cases and examples - Potential implementation approach (if you have ideas)
Pull Requests¶
- Fork the repository
- Create a feature branch from
main: - Make your changes
- Follow the coding standards (see below)
- Add tests for new features
- Update documentation as needed
- Commit your changes: Use Conventional Commits format.
- Push to your fork:
- Open a Pull Request with a clear description
Development Setup¶
Prerequisites¶
- Python 3.9+
- Node.js 18+
- Docker and Docker Compose
- Git
Initial Setup¶
-
Clone the repository:
-
Run installation script:
-
Set up environment variables:
-
Start development servers:
Coding Standards¶
Python (Backend)¶
- Follow PEP 8 style guide
- Use type hints
- Maximum line length: 100 characters
- Use
blackfor formatting: - Use
rufffor linting:
TypeScript/React (Frontend)¶
- Follow ESLint rules
- Use TypeScript for type safety
- Use functional components with hooks
- Format with Prettier:
Commit Messages¶
Use Conventional Commits format:
feat:New featurefix:Bug fixdocs:Documentation changesstyle:Code style changes (formatting, etc.)refactor:Code refactoringtest:Adding or updating testschore:Maintenance tasks
Examples:
feat: add comparison table detection
fix: resolve scoring engine edge case
docs: update API documentation
Testing¶
Backend Tests¶
Frontend Tests¶
Integration Tests¶
Documentation¶
- Update relevant documentation when adding features
- Add docstrings to new functions/classes
- Update API docs if changing endpoints
- Update README if changing setup/usage
Project Structure¶
aieo/
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── api/ # API endpoints
│ │ ├── core/ # Core utilities
│ │ ├── models/ # Database models
│ │ └── services/ # Business logic
│ └── tests/ # Backend tests
├── frontend/ # React frontend
├── cli/ # CLI tool
├── docs/ # Documentation
├── scripts/ # Setup scripts
└── tools/ # Testing tools
Review Process¶
- All PRs require at least one review
- CI checks must pass
- Code coverage should not decrease
- Documentation must be updated
Questions?¶
- Open an issue for questions
- Check existing documentation in
docs/ - Review ARCHITECTURE.md for system design
Thank you for contributing! 🎉