Skip to content

Commit

Permalink
fix lint/formatting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Mar 29, 2024
1 parent 1907ace commit 9dee8a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion slither/tools/mutator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions slither/tools/mutator/utils/file_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion slither/tools/mutator/utils/testing_generated_mutant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 9dee8a2

Please sign in to comment.