# Clone the repository
git clone https://github.com/yourusername/gitprobe.git
cd gitprobe
# Create virtual environment
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate
# Install in editable mode with dev dependencies
pip install -e ".[dev]"Once installed, you can use GitProbe from anywhere:
# Analyze a repository
gitprobe analyze microsoft/vscode
# Start the server
gitprobe server
# Start server with custom settings
gitprobe server --port 8080 --reloadIf you prefer not to install the package:
# Set Python path and run directly
PYTHONPATH=src python -m gitprobe.cli analyze user/repo
PYTHONPATH=src python -m gitprobe.web.servergitprobe/
├── src/gitprobe/ # Main package
│ ├── analyzers/ # Language-specific analyzers
│ ├── analysis/ # Business logic & orchestration
│ ├── core/ # Shared utilities
│ ├── models/ # Data models
│ ├── utils/ # Helper functions
│ ├── web/ # FastAPI server
│ └── cli.py # Command-line interface
├── pyproject.toml # Package configuration
├── requirements.txt # Dependencies
└── README.md # User documentation
# Run tests
pytest
# Format code
black src/
isort src/
# Type checking
mypy src/
# Install pre-commit hooks
pre-commit install- Create analyzer in
src/gitprobe/analyzers/ - Add language limits in
src/gitprobe/core/analysis_limits.py - Update
src/gitprobe/analysis/call_graph_analyzer.py - Add tests and documentation