Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 24, 2024
1 parent 9bd5f76 commit 547cba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/mqt/qao/karp/karp_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def three_sat(
try:
with Path(filename).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down Expand Up @@ -356,7 +356,7 @@ def integer_programming(
try:
with Path(filename).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down Expand Up @@ -476,7 +476,7 @@ def knapsack(
try:
with Path(filename).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down Expand Up @@ -602,7 +602,7 @@ def number_partition(
try:
with Path(filename).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down
4 changes: 2 additions & 2 deletions src/mqt/qao/karp/karp_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def set_packing(
try:
with Path(input_data).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down Expand Up @@ -403,7 +403,7 @@ def hitting_set(
try:
with Path(input_data).open(encoding="utf-8") as file:
lines = file.readlines()
except FileNotFoundError as err:
except FileNotFoundError as err:
print(f"Error: File {input_data} not found.")
msg = f"Error: File {input_data} not found."
raise FileNotFoundError(msg) from err
Expand Down

0 comments on commit 547cba4

Please sign in to comment.