Breaking changes
Previously, deptry always searched for a pyproject.toml file in the root directory passed as a positional argument to the deptry command. Since this is not in line with what most other tools in the ecosystem do, this is changed in release 0.7.0.
In previous releases, when running:
deptry srcdeptry would search for both a pyproject.toml and for Python files to scan in the src directory.
Since this release, when running:
deptry srcdeptry will search for pyproject.toml in the location it is run from, and for Python files to scan in the src directory.
The downside of the changes outlined above, is that this could break some projects that did explicitly want to find pyproject.toml in a directory other than the positional argument specified as root. For this purpose, release 0.7.0 adds a --config argument that can be used to explicitly pass the location of pyproject.toml.
What's Changed
- refactor: use generic types instead of
typingby @mkniewallner in #217 - Use
rufffor import sorting and add more rules by @mkniewallner in #232 - chore: move
renovate-config-validatorto GH Actions by @mkniewallner in #233 - changed badge url by @fpgmaas in #235
- ci: fix
toxworkflow by @mkniewallner in #241 - perf(core): only load local modules once by @mkniewallner in #242
- perf(finder): more efficient Python files retrieval by @mkniewallner in #243
- Separate
pyproject.tomllocation fromrootargument by @mkniewallner in #244 - Expose and handle
--configargument by @mkniewallner in #245
Full Changelog: 0.6.6...0.7.0