fix lint/formatting problems

pull/2302/head
bohendo 8 months ago
parent 1907ace9ca
commit 9dee8a2a50
No known key found for this signature in database
  1. 2
      slither/tools/mutator/__main__.py
  2. 4
      slither/tools/mutator/utils/file_handling.py
  3. 2
      slither/tools/mutator/utils/testing_generated_mutant.py

@ -255,7 +255,7 @@ def main() -> None: # pylint: disable=too-many-statements,too-many-branches,too
if contract.name in contract_names and contract.name not in mutated_contracts:
target_contract = contract
break
elif not contract_names and contract.name.lower() == file_name.lower():
if not contract_names and contract.name.lower() == file_name.lower():
target_contract = contract
break

@ -42,7 +42,7 @@ def transfer_and_delete(files_dict: Dict[str, HashedPath]) -> None:
del backuped_files[original_path]
except FileNotFoundError as e: # pylint: disable=broad-except
logger.error(f"Error transferring content: %s", e)
logger.error("Error transferring content: %s", e)
global_counter = {}
@ -92,7 +92,7 @@ def reset_file(file: str) -> None:
source_file.write(duplicate_content)
except Exception as e: # pylint: disable=broad-except
logger.error(f"Error resetting file: %s", e)
logger.error("Error resetting file: %s", e)
def get_sol_file_list(codebase: Path, ignore_paths: Union[List[str], None]) -> List[str]:

@ -35,7 +35,7 @@ def run_test_cmd(cmd: str, timeout: int | None, target_file: str | None, verbose
elif "hardhat test" in cmd or "truffle test" in cmd and "--bail" not in cmd:
cmd += " --bail"
if timeout is None and "hardhat" not in cmd: # hardhat doesn't support --force flag on tests
if timeout is None and "hardhat" not in cmd: # hardhat doesn't support --force flag on tests
# if no timeout, ensure all contracts are recompiled w/out using any cache
cmd += " --force"

Loading…
Cancel
Save