Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.51 KB

File metadata and controls

62 lines (47 loc) · 1.51 KB

🤝 Contributing to CorpLens AI

Thank you for your interest in contributing to CorpLens AI Enterprise Edition!


1. Development Environment Setup

Prerequisites

  • Python 3.11+
  • Node.js 18+ & npm 9+
  • Docker & Docker Compose v2.20+

Local Setup Steps

# 1. Clone repository
git clone https://github.com/Yamn2905/CorpLens-AI.git
cd CorpLens-AI

# 2. Setup Backend Virtual Environment
cd backend
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On Linux/macOS:
source venv/bin/activate

pip install -r requirements.txt

# 3. Setup Frontend Dependencies
cd ../frontend
npm install

2. Coding Standards & Conventions

Python (Backend)

  • Adhere to PEP 8 style guidelines.
  • Ensure strict type annotations on all FastAPI route parameters and service functions.
  • Run pytest inside the backend/ directory before committing code:
    pytest -v

TypeScript / React (Frontend)

  • Use functional components with React hooks.
  • Maintain type safety without using any.
  • Check TypeScript types prior to committing:
    npx tsc --noEmit

3. Pull Request Guidelines

  1. Create a feature branch off main: git checkout -b feature/my-new-feature.
  2. Commit your changes with conventional commit messages (e.g., feat: add sanction fuzzy matching engine, fix: resolve graph canvas rendering bug).
  3. Ensure all 22 backend Pytest tests pass and TypeScript check is clean.
  4. Submit a Pull Request targeting the main branch with a clear summary of changes.