Skip to content

Commit 7c36cab

Browse files
committed
Improve brownie support
Build on top of #240
1 parent 2210f32 commit 7c36cab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crytic_compile/platform/brownie.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ def is_supported(target: str, **kwargs: str) -> bool:
9898
return False
9999
# < 1.1.0: brownie-config.json
100100
# >= 1.1.0: brownie-config.yaml
101-
return os.path.isfile(os.path.join(target, "brownie-config.json")) or os.path.isfile(
102-
os.path.join(target, "brownie-config.yaml")
103-
) or os.path.isfile(os.path.join(target, "brownie-config.yml"))
101+
return (
102+
os.path.isfile(os.path.join(target, "brownie-config.json"))
103+
or os.path.isfile(os.path.join(target, "brownie-config.yaml"))
104+
or os.path.isfile(os.path.join(target, "brownie-config.yml"))
105+
)
104106

105107
def is_dependency(self, _path: str) -> bool:
106108
"""Check if the path is a dependency (not supported for brownie)

0 commit comments

Comments
 (0)