Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent 9900930 commit 43767dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/schemacode/src/bidsschematools/render/tsv.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import io

import markdown
import pandas as pd
from tabulate import tabulate

import markdown


def fence(
source: str,
Expand All @@ -17,7 +16,7 @@ def fence(
try:
df = pd.read_csv(io.StringIO(source), sep="\t")
md_table = tabulate(df, headers="keys", tablefmt="github", showindex=False) # type: ignore
return markdown.markdown(md_table, extensions=['tables'])
return markdown.markdown(md_table, extensions=["tables"])
except Exception:
import traceback

Expand Down

0 comments on commit 43767dd

Please sign in to comment.