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 src
deptry
would search for both a pyproject.toml
and for Python files to scan in the src
directory.
Since this release, when running:
deptry src
deptry
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
typing
by @mkniewallner in #217 - Use
ruff
for import sorting and add more rules by @mkniewallner in #232 - chore: move
renovate-config-validator
to GH Actions by @mkniewallner in #233 - changed badge url by @fpgmaas in #235
- ci: fix
tox
workflow 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.toml
location fromroot
argument by @mkniewallner in #244 - Expose and handle
--config
argument by @mkniewallner in #245
Full Changelog: 0.6.6...0.7.0