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 20, 2024
1 parent 40a1594 commit ff0db03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ logging-fstring-interpolation,
logging-not-lazy,
duplicate-code,
import-error,
unsubscriptable-object
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 @@ -417,6 +417,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 ff0db03

Please sign in to comment.