docs: add code quality and type checking workflows to master index
Some checks failed
Documentation Validation / validate-docs (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Package Tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk]) (push) Has been cancelled
Package Tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core]) (push) Has been cancelled
Package Tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto]) (push) Has been cancelled
Package Tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk]) (push) Has been cancelled
Package Tests / test-javascript-packages (map[name:aitbc-sdk-js path:packages/js/aitbc-sdk]) (push) Has been cancelled
Package Tests / test-javascript-packages (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled

- Add Code Quality Module section with pre-commit hooks and quality checks
- Add Type Checking CI/CD Module section with MyPy workflow and coverage
- Update README with code quality achievements and project structure
- Migrate FastAPI apps from deprecated on_event to lifespan context manager
- Update pyproject.toml files to reference consolidated dependencies
- Remove unused app.py import in coordinator-api
- Add type hints to agent
This commit is contained in:
aitbc
2026-03-31 21:45:43 +02:00
parent 26592ddf55
commit 9db720add8
308 changed files with 34194 additions and 34575 deletions

125
scripts/install-profiles.sh Executable file
View File

@@ -0,0 +1,125 @@
#!/bin/bash
# AITBC Installation Profiles
# Install specific dependency sets for different use cases
set -euo pipefail
AITBC_ROOT="/opt/aitbc"
cd "$AITBC_ROOT"
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
log_info() {
echo -e "${BLUE}[INFO]${NC} $1"
}
log_success() {
echo -e "${GREEN}[SUCCESS]${NC} $1"
}
# Installation profiles
install_web() {
log_info "Installing web profile..."
./venv/bin/pip install fastapi==0.115.6 uvicorn[standard]==0.32.1 gunicorn==22.0.0 "starlette>=0.40.0,<0.42.0"
}
install_database() {
log_info "Installing database profile..."
./venv/bin/pip install sqlalchemy==2.0.47 sqlmodel==0.0.37 alembic==1.18.0 aiosqlite==0.20.0 asyncpg==0.29.0
}
install_blockchain() {
log_info "Installing blockchain profile..."
./venv/bin/pip install cryptography==46.0.0 pynacl==1.5.0 ecdsa==0.19.0 base58==2.1.1 bech32==1.2.0 web3==6.11.0 eth-account==0.13.0
}
install_ml() {
log_info "Installing ML profile..."
./venv/bin/pip install torch==2.10.0 torchvision==0.15.0 numpy==1.26.0 pandas==2.2.0
}
install_cli() {
log_info "Installing CLI profile..."
./venv/bin/pip install click==8.1.0 rich==13.0.0 typer==0.12.0 click-completion==0.5.2 tabulate==0.9.0 colorama==0.4.4 keyring==23.0.0
}
install_monitoring() {
log_info "Installing monitoring profile..."
./venv/bin/pip install structlog==24.1.0 sentry-sdk==2.0.0 prometheus-client==0.24.0
}
install_image() {
log_info "Installing image processing profile..."
./venv/bin/pip install pillow==10.0.0 opencv-python==4.9.0
}
install_all() {
log_info "Installing all profiles..."
if [ -f "requirements-consolidated.txt" ]; then
./venv/bin/pip install -r requirements-consolidated.txt
else
log_info "Installing profiles individually..."
install_web
install_database
install_blockchain
install_cli
install_monitoring
# ML and Image processing are optional - install separately if needed
fi
}
install_minimal() {
log_info "Installing minimal profile..."
./venv/bin/pip install fastapi==0.115.6 pydantic==2.12.0 python-dotenv==1.2.0
}
# Main menu
case "${1:-all}" in
"web")
install_web
;;
"database")
install_database
;;
"blockchain")
install_blockchain
;;
"ml")
install_ml
;;
"cli")
install_cli
;;
"monitoring")
install_monitoring
;;
"image")
install_image
;;
"all")
install_all
;;
"minimal")
install_minimal
;;
*)
echo "Usage: $0 {web|database|blockchain|ml|cli|monitoring|image|all|minimal}"
echo ""
echo "Profiles:"
echo " web - Web framework dependencies"
echo " database - Database and ORM dependencies"
echo " blockchain - Cryptography and blockchain dependencies"
echo " ml - Machine learning dependencies"
echo " cli - CLI tool dependencies"
echo " monitoring - Logging and monitoring dependencies"
echo " image - Image processing dependencies"
echo " all - All dependencies (default)"
echo " minimal - Minimal set for basic operation"
exit 1
;;
esac
log_success "Installation completed"