Skip to main content

dev-setup

Set up the local development environment for APIView Copilot. Use for: dev setup, environment setup, install dependencies, create venv, configure env, permissions, get started, onboarding, new developer, RBAC setup, .env file.

소스 정보

저장소
Azure/azure-sdk-tools
최근 소스 활동
2026년 4월 6일 20:16
감지된 SKILL.md 언어
영어
스타
135
포크
260

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
dev-setup
description
Set up the local development environment for APIView Copilot. Use for: dev setup, environment setup, install dependencies, create venv, configure env, permissions, get started, onboarding, new developer, RBAC setup, .env file.
# Development Environment Setup ## Procedure ### 1. Create and activate a virtual environment ```bash # Windows python -m venv .venv .venv\Scripts\activate # Linux/macOS python -m venv .venv source .venv/bin/activate ``` ### 2. Install dependencies ```bash # Runtime + dev + eval dependencies pip install -r dev_requirements.txt # Runtime only pip install -r requirements.txt ``` ### 3. Create the `.env` file Create a `.env` file in the project root with: ``` ENVIRONMENT_NAME="staging" ``` All other settings (Cosmos DB, Search, Key Vault, etc.) are resolved from App Configuration at runtime. ### 4. Grant Azure RBAC permissions ```bash avc ops grant ``` This grants your identity the required roles: - **App Configuration Data Reader** on `avc-appconfig-staging` - **Search Index Data Reader** on Azure AI Search - **Cosmos DB Contributor** on `avc-cosmos-staging` - **Key Vault access** on `avc-vault-staging` - **Cognitive Services OpenAI User** on `azsdk-engsys-openai` - **Azure AI User** on `azsdk-engsys-ai` Pass `--assignee-id <ID>` to grant to a specific user instead of yourself. ### 5. Verify the setup ```bash # Run unit tests pytest tests # Generate a review (needs a test API view file in scratch/apiviews/<lang>/) avc review generate -l python -t scratch/apiviews/python/test.txt # Health check the deployed service avc ops check ``` ## Gotchas - **Always activate the venv** before running any commands (`avc`, `pytest`, `pylint`, etc.) - **`avc` not found?** Use `.\avc` on Windows PowerShell, or ensure the project root is in your PATH - **`ModuleNotFoundError: prompty`** — You're running outside the venv. Activate it first. - **Azure auth errors** — Run `az login` first, then `avc ops grant` to set up RBAC - **Staging vs production** — The `.env` defaults to staging. To use production, swap to the production App Config endpoint and set `ENVIRONMENT_NAME="production"`
GitHub에서 보기