Audit Python dependency declarations for unused, missing, and transitive imports before release
Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then tur
What it does
Audit Python dependency declarations for unused, missing, and transitive imports before release
Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then turns the findings into cleanup commits or release blockers.
Prerequisites
Python plus Deptry configured against the target repository
Installation
Use the upstream install or setup path that matches your environment:
- uv add --dev deptry
- pip install deptry
Requirements and caveats from upstream:
- deptry is a command line tool to check for issues with dependencies in a Python project, such as unused or missing
- using Poetry, pip, PDM, uv,
Basic usage or getting-started notes:
-
To add deptry to your project, run one of the following commands:
-
shell
-
poetry add --dev deptry
-
Extracted from upstream docs: https://raw.githubusercontent.com/osprey-oss/deptry/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,522 chars)