-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify dependency specification detector (#654)
* refactor(spec-detector): dataclass + clearer branches * refactor(dependency-spec): set `requirements_files` default to empty tuple. We already pass the real default value from the CLI, so this avoids duplciating the default. * refactor(dependency-spec): directly return `DependencyGetter` instance * refactor(dependency-spec): rename and move to `dependency_getter` * perf(dependency-getter): load `pyproject.toml` once * refactor(dependency-spec): use `.get()` in `_project_uses_pep_621` * test(dependency-getter): assert debug logs
- Loading branch information
1 parent
b8fd0e3
commit 5494d09
Showing
4 changed files
with
106 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters