Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/contract dependencies #271

Merged
merged 9 commits into from
Aug 19, 2022
Merged

Feat/contract dependencies #271

merged 9 commits into from
Aug 19, 2022

Conversation

angrybayblade
Copy link

Proposed changes

Update ContractConfig class to return contracts as dependencies instead of empty set.

Types of changes

What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING doc
  • I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Lint and unit tests pass locally with my changes and CI passes too
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that code coverage does not decrease.
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Copy link

@DavidMinarsch DavidMinarsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a small test & update HISTORY.md

DavidMinarsch
DavidMinarsch previously approved these changes Aug 19, 2022
@@ -185,7 +185,7 @@ def _extract_imported_packages_as_ids(
# import packages.{author}.{type_plural}.{name}
#
import_statements = re.findall(
rf"^(from|import) ({PACKAGES}\.[A-Za-z0-9_]+\.{cls.package_type_plural_regex}\.[A-Za-z0-9_]+)",
rf"^( from|from| import|import) ({PACKAGES}\.[A-Za-z0-9_]+\.{cls.package_type_plural_regex}\.[A-Za-z0-9_]+)",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can generalise this a bit more, now it at least covers try/except patterns too!

@DavidMinarsch DavidMinarsch merged commit 166c9a9 into main Aug 19, 2022
@DavidMinarsch DavidMinarsch deleted the feat/contract-dependencies branch August 19, 2022 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants