Skip to content

Commit

Permalink
docs: revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 26, 2024
1 parent 3c7ebf0 commit 14993f5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ape/plugins/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
]
# Hardcoded for performance reasons. Functionality in plugins commands
# and functions won't use this; they use GitHub to check directly.
# This hardcoded list is useful for `ape --help` for performance reasons;
# If ApeWorX adds a new trusted plugin, it should be added to this list
# or else it may just show-up as un-trusted in `ape --help`.
# This hardcoded list is useful for `ape --help`. If ApeWorX adds a new
# trusted plugin, it should be added to this list; else it will show
# as 3rd-party in `ape --help`.
TRUSTED_PLUGINS = [
"addressbook",
"alchemy",
Expand Down Expand Up @@ -419,10 +419,16 @@ def is_installed(self) -> bool:

@property
def is_third_party(self) -> bool:
return self.is_installed and not self.is_available
"""
``True`` when is an installed plugin that is not from ApeWorX.
"""
return self.is_installed and not self.is_trusted

@cached_property
def is_trusted(self) -> bool:
"""
``True`` when is a plugin from ApeWorX.
"""
return self.check_trusted()

@property
Expand Down

0 comments on commit 14993f5

Please sign in to comment.