-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor repository and developer tool API
Import some API functions from repository_lib and securesystemslib directly into repository_tool and developer_tool, instead of providing them via wrapper. Also short-circuit some functions that used to point to securesystemslib through repository_lib. This reverts parts of 6f7ba76, which introduced some of the wrappers to appease the linter. Here we just disable that specific linter check (unused-import). The advantage of importing over wrapping is: - no duplication of hardcoded defaults for keyword arguments - no duplication of docstrings - less code --> easier maintenance This should also pave the way for more serious refactoring of the repository- and developer-tools: #840 Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
91 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