Skip to content

Commit e1a695a

Browse files
authored
Merge pull request #259 from crytic/dev-improve-brownie
Improve brownie support
2 parents 04d0a49 + 7c36cab commit e1a695a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crytic_compile/platform/brownie.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ 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")
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"))
103105
)
104106

105107
def is_dependency(self, _path: str) -> bool:

0 commit comments

Comments
 (0)