diff --git a/pyproject.toml b/pyproject.toml index 179220ca3..e7cf3567d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,5 +17,6 @@ logging-fstring-interpolation, logging-not-lazy, duplicate-code, import-error, -unsubscriptable-object +unsubscriptable-object, +unnecessary-lambda-assignment """ diff --git a/slither/solc_parsing/slither_compilation_unit_solc.py b/slither/solc_parsing/slither_compilation_unit_solc.py index c733e5a86..f93533ec7 100644 --- a/slither/solc_parsing/slither_compilation_unit_solc.py +++ b/slither/solc_parsing/slither_compilation_unit_solc.py @@ -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 diff --git a/tests/tools/read-storage/conftest.py b/tests/tools/read-storage/conftest.py index 6d8a71b58..726448b13 100644 --- a/tests/tools/read-storage/conftest.py +++ b/tests/tools/read-storage/conftest.py @@ -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`" )