-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating Review Diff Check Based on Diff Check Implementation (#17)
* first try * Update git_manager.py * Auto change version. * Yoav CR * Auto change version. * Update README.md * Auto change version. * Update README.md * Auto change version. --------- Co-authored-by: liav-certora <liav-certora@users.noreply.github.com>
- Loading branch information
1 parent
7f618a1
commit 23cef17
Showing
10 changed files
with
85 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
**.ipynb | ||
**__pycache__ | ||
**/.vscode | ||
**/local* | ||
**/local* | ||
build/ | ||
*.egg-info | ||
CustomerClones/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .diff import DiffCheck | ||
from .review_diff import ReviewDiffCheck | ||
from .global_variables import GlobalVariableCheck | ||
from .feed_price import FeedPriceCheck | ||
from .new_listing import NewListingCheck | ||
|
||
all = ["DiffCheck", "GlobalVariableCheck", "FeedPriceCheck", "NewListingCheck"] | ||
all = ["DiffCheck", "ReviewDiffCheck", "GlobalVariableCheck", "FeedPriceCheck", "NewListingCheck"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from Quorum.checks.diff import DiffCheck | ||
from Quorum.apis.block_explorers.source_code import SourceCode | ||
from Quorum.utils.chain_enum import Chain | ||
import Quorum.utils.pretty_printer as pp | ||
|
||
|
||
class ReviewDiffCheck(DiffCheck): | ||
def __init__(self, customer: str, chain: Chain, proposal_address: str, source_codes: list[SourceCode]): | ||
super().__init__(customer, chain, proposal_address, source_codes) | ||
self.target_repo = self.customer_folder / "review_module" | ||
|
||
def find_diffs(self) -> list[SourceCode]: | ||
pp.pretty_print(f'Verifying missing files against {self.customer} review repo ' | ||
f'(cloned under {self.target_repo})', pp.Colors.INFO) | ||
return super().find_diffs() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"Aave": [ | ||
"https://github.com/bgd-labs/aave-helpers", | ||
"https://github.com/bgd-labs/aave-address-book", | ||
"https://github.com/aave-dao/aave-v3-origin" | ||
] | ||
"Aave": | ||
{ | ||
"dev_repos": | ||
[ | ||
"https://github.com/bgd-labs/aave-helpers", | ||
"https://github.com/bgd-labs/aave-address-book", | ||
"https://github.com/aave-dao/aave-v3-origin" | ||
], | ||
"review_repo": "https://github.com/bgd-labs/aave-proposals-v3" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20241105.182030.187611 | ||
20241110.154442.714477 |