Skip to content

Commit

Permalink
blacken stray file
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Feb 17, 2023
1 parent 91d3a5e commit fa703e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/scripts/asv_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@


def format(element):

if is_float(element):

f = float(element)

return "{0:.3}".format(f)
Expand All @@ -14,7 +12,6 @@ def format(element):


def is_float(element):

try:
float(element)
except ValueError:
Expand All @@ -24,7 +21,6 @@ def is_float(element):


def to_markdown(data):

preamble = """# {tests} ([diff](https://github.com/dedupeio/dedupe/compare/{base_commit}...{head_commit})):
| | before | after | ratio | benchmark |
|- |-: |-: |-: |-|\n""".format(
Expand All @@ -39,7 +35,6 @@ def to_markdown(data):


def parse(asv_input):

result = re.match(
r"^\n(?P<tests>.*?):\n\n before after ratio\n \[(?P<base_commit>.+)\] \[(?P<head_commit>.+)\]\n <(?P<base_branch>.+)> <(?P<head_branch>.+)> *\n(?P<raw_comparisons>.*)",
asv_input,
Expand Down

0 comments on commit fa703e2

Please sign in to comment.