dependency-updater
Analyze and update Python dependencies in pyproject.toml, checking for compatibility and security vulnerabilities. Use when: updating dependencies, checking security issues, dependency analysis, version pinning, pip-audit, outdated packages.
When & Why to Use This Skill
The Dependency Updater skill is a comprehensive tool for managing Python project environments. it automates the analysis and maintenance of dependencies within pyproject.toml, focusing on security vulnerability detection through pip-audit and version compatibility. By implementing systematic update workflows and strategic version pinning, it helps developers maintain a secure, stable, and modern codebase while reducing the manual overhead of dependency tracking.
Use Cases
- Automated Security Auditing: Periodically scan project dependencies for known vulnerabilities using pip-audit and generate prioritized fix reports.
- Version Compatibility Management: Analyze outdated packages and update pyproject.toml with precise version pinning (minor vs. patch) to prevent breaking changes.
- Dependency Tree Analysis: Visualize and resolve complex version conflicts between nested dependencies using pipdeptree to ensure environment stability.
- Workflow Standardization: Streamline the update process from research and changelog evaluation to testing in clean environments and updating documentation.
| name | dependency-updater |
|---|---|
| description | Analyze and update Python dependencies in pyproject.toml, checking for compatibility and security vulnerabilities. Use when: updating dependencies, checking security issues, dependency analysis, version pinning, pip-audit, outdated packages. |
Dependency Updater
Manage Python dependencies systematically.
Analysis Commands
# List installed packages
pip list
# Check for outdated
pip list --outdated
# Security check
pip-audit
# Dependency tree
pipdeptree
Update Priority
- Critical Security Fixes - Update immediately
- Bug Fixes - Next patch release
- New Features - Evaluate need
- Major Versions - Plan migration
Version Pinning
[project]
dependencies = [
# Core: Pin to minor version
"PySide6>=6.6.0,<6.7.0",
# Infrastructure: Pin to patch
"asyncpg>=0.29.0,<0.30.0",
# Utilities: Allow minor updates
"loguru>=0.7.2",
]
Core Framework
PySide6- Qt GUI frameworkNodeGraphQt- Node graph visualizationPlaywright- Browser automationqasync- Qt + asyncio bridge
Update Workflow
- Research updates (changelogs, breaking changes)
- Update
pyproject.toml - Test in clean environment
- Run full test suite
- Update CHANGELOG.md
Special Cases
Playwright Updates
playwright install chromium
pytest tests/nodes/browser/ -v
Database Drivers
pytest tests/infrastructure/resources/test_database_manager.py -v