generated from tweag/project
-
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
extract_declared_dependencies
parser APIs in preparation for
#227 (#229) * test_extract_declared_dependencies_succes: Harmless test refactoring Move the dependency_factory() call into the test case instead of in the parametrized test data. Also remove unnecessary "__" prefix from test ids. * extract_declared_dependencies: Refactor API of parser functions Take a single Path argument instead of separate contents + source. This allows the parser function itself to choose how to open the file and pass it to the underlying parser. This is also necessary for the upcoming rewrite of our requirements.txt parser (#227). * test_extract_declared_dependencies_pyproject_toml: Remove unnecessary dedent() * extract_declared_dependencies: Rename parser functions The rename reflects that these now parse file paths, and not extracted file contents. --------- Co-authored-by: Vince Reuter <vince.reuter@gmail.com>
- Loading branch information
Showing
5 changed files
with
323 additions
and
365 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
Oops, something went wrong.