Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Dec 14, 2024
1 parent 0f02c81 commit 50fb906
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions bencher/bench_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def append_title(self, title: str, new_tab: bool = True):
return self.append_tab(pn.pane.Markdown(f"# {title}", name=title), title)
return self.append_markdown(f"# {title}", title)

def append_markdown(
self, markdown: str, name=None, width=800, **kwargs
) -> pn.pane.Markdown:
def append_markdown(self, markdown: str, name=None, width=800, **kwargs) -> pn.pane.Markdown:
if name is None:
name = markdown
md = pn.pane.Markdown(markdown, name=name, width=width, **kwargs)
Expand Down Expand Up @@ -174,9 +172,7 @@ def publish_args(branch_name) -> Tuple[str, str]:

with tempfile.TemporaryDirectory() as td:
directory = td
report_path = self.save(
directory, filename="index.html", in_html_folder=False
)
report_path = self.save(directory, filename="index.html", in_html_folder=False)
logging.info(f"created report at: {report_path.absolute()}")

cd_dir = f"cd {directory} &&"
Expand All @@ -194,9 +190,7 @@ def publish_args(branch_name) -> Tuple[str, str]:
return publish_url


def publish_github(
github_user: str, repo_name: str, branch_name: str
) -> Tuple[str, str]:
def publish_github(github_user: str, repo_name: str, branch_name: str) -> Tuple[str, str]:
return (

Check warning on line 194 in bencher/bench_report.py

View check run for this annotation

Codecov / codecov/patch

bencher/bench_report.py#L194

Added line #L194 was not covered by tests
f"https://github.com/{github_user}/{repo_name}.git",
f"https://github.com/{github_user}/{repo_name}/blob/{branch_name}",
Expand Down

0 comments on commit 50fb906

Please sign in to comment.