Skip to content

Commit

Permalink
Clean up ruff complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousik committed Nov 28, 2023
1 parent 683a2eb commit 0965ff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/pudl_output_differ/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ def main() -> int:

if args.html_report:
md = task_queue.to_markdown()
with fsspec.open(args.html_report, "w") as f:
fs, report_path = fsspec.core.url_to_fs(args.html_report.removesuffix(".html"))
with fs.open(f"{report_path}.html", "w") as f:
f.write(MARKDOWN_CSS_STYLE)
f.write('<article class="markdown-body">')
f.write(markdown.markdown(md, extensions=[GithubFlavoredMarkdownExtension()]))
f.write('</article>')
with fsspec.open(args.html_report + ".markdown", "w") as f:
f.write(md)
with fs.open(f"{report_path}.markdown", "w") as f:
f.write(markdown.markdown(md, extensions=[GithubFlavoredMarkdownExtension()]))

# TODO(rousik): for the proper output, sort the
# analyses by their object_path and construct the
Expand Down
1 change: 0 additions & 1 deletion src/pudl_output_differ/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ def compare_pk_tables(
rdb: connection to the right database
pk_cols: primary key columns
"""
md = StringIO()
overlap_index = None
ldf = pd.DataFrame()
rdf = pd.DataFrame()
Expand Down

0 comments on commit 0965ff4

Please sign in to comment.