diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 001d15b..06a1d9b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest pytest-cov pytest-mock + pip install -e ".[dev]" pip install -r requirements.txt - name: Install package diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 0e2bb10..f69b6f2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -54,7 +54,7 @@ jobs: - name: Run unit tests run: | - pip install pytest pytest-mock + pip install -e ".[dev]" pytest tests/ -v - name: Lint Python code with ruff diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b7fc584..c841a73 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -134,21 +134,16 @@ Unsure where to begin? Look for issues labeled: 3. **Install dependencies**: ```bash - pip install -e . + pip install -e ".[dev]" pip install -r requirements.txt ``` -4. **Install development dependencies**: - ```bash - pip install pytest pytest-cov black isort flake8 mypy - ``` - -5. **Install external tools** (optional, for full testing): +4. **Install external tools** (optional, for full testing): ```bash python -m docksec.setup_external_tools ``` -6. **Set up environment variables**: +5. **Set up environment variables**: ```bash cp .env.example .env # Edit .env and add your OpenAI API key if testing AI features diff --git a/setup.py b/setup.py index 2085594..d31d407 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,15 @@ "ruamel.yaml>=0.18.6", ], extras_require={ + "dev": [ + "pytest", + "pytest-cov", + "pytest-mock", + "black", + "isort", + "flake8", + "mypy", + ], "ai": [ "langchain-core>=1.3,<2", "langchain>=1.2,<2",