Overview of deptry rules and violations
maindeptry checks your Python project against five specific dependency rules to ensure your dependency list is accurate, minimal, and correctly categorized.
Managing Violations
- Disable a rule: Use the
ignoreconfiguration flag. - Ignore specific items: Use the
per-rule-ignoresconfiguration flag to ignore specific dependencies or modules for a rule. - Exclude specific lines: Use inline ignore comments to exclude individual import lines from being checked.
| Code | Description | More information |
|--------|------------------------------------| ----------------------------------------------------|
| DEP001 | Project should not contain missing dependencies | [link](#missing-dependencies-dep001) |
| DEP002 | Project should not contain unused dependencies | [link](#unused-dependencies-dep002) |
| DEP003 | Project should not use transitive dependencies | [link](#transitive-dependencies-dep003) |
| DEP004 | Project should not use development dependencies in non-development code | [link](#misplaced-development-dependencies-dep004) |
| DEP005 | Project should not contain dependencies that are in the standard library | [link](#standard-library-dependencies-dep005) |