Skip to content

Commit

Permalink
pylint: fix further lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Feb 12, 2024
1 parent ef8e10c commit 39a65a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ logging-not-lazy,
duplicate-code,
import-error,
unsubscriptable-object
unnecessary-lambda-assignment
"""
1 change: 1 addition & 0 deletions slither/solc_parsing/slither_compilation_unit_solc.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def parse_contracts(self) -> None: # pylint: disable=too-many-statements,too-ma
f"No contracts were found in {self._compilation_unit.core.filename}, check the correct compilation"
)
if self._parsed:
# pylint: disable=broad-exception-raised
raise Exception("Contract analysis can be run only once!")

# First we save all the contracts in a dict
Expand Down
1 change: 1 addition & 0 deletions tests/tools/read-storage/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(self, provider: str, eth_address: str, eth_privkey: str):
def fixture_ganache() -> Generator[GanacheInstance, None, None]:
"""Fixture that runs ganache"""
if not shutil.which("ganache"):
# pylint: disable=broad-exception-raised
raise Exception(
"ganache was not found in PATH, you can install it with `npm install -g ganache`"
)
Expand Down

0 comments on commit 39a65a1

Please sign in to comment.