Skip to content

Commit

Permalink
Fix mypy + pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
danjujan committed Oct 25, 2023
1 parent 06a4311 commit 6488b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion varats/varats/data/reports/llvm_coverage_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def parse_instrs(self, ignore_conditions: bool = True) -> None:
self._annotate_vara_instr(vara_instr)

def _annotate_vara_instr(self, vara_instr: VaraInstr) -> None:
source_file = vara_instr.source_file
source_file = str(vara_instr.source_file)
# Convert absolute paths to relative paths when possible
try:
relative_path = Path(source_file).relative_to(self.absolute_path)
Expand Down
2 changes: 1 addition & 1 deletion varats/varats/plots/llvm_coverage_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def _save_plot(
workaround for workaround, value in workarounds.items() if value
).replace('_', '-')

workaround_dir = (binary_dir / f"{name}: {text}")
workaround_dir = binary_dir / f"{name}: {text}"
workaround_dir.mkdir(parents=True)

feature_annotations = \
Expand Down

0 comments on commit 6488b0d

Please sign in to comment.