Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smenzel authored and LarsAsplund committed Nov 7, 2022
1 parent 28777b3 commit 95d039e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vunit/vivado/vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ def _read_compile_order(file_name, fail_on_non_hdl_files):
for line in ifile.readlines():
library_name, file_type, file_name = line.strip().split(",", 2)

if not file_type in ("Verilog", "VHDL", "Verilog Header"):
if file_type not in ("Verilog", "VHDL", "Verilog Header"):
if fail_on_non_hdl_files:
raise RuntimeError("Unsupported compile order file: %s" % file_name)
else:
print("Compile order file ignored: %s" % file_name)
continue
raise RuntimeError(f"Unsupported compile order file: {file_name}")
print(f"Compile order file ignored: {file_name}")
continue

libraries.add(library_name)

Expand Down

0 comments on commit 95d039e

Please sign in to comment.