Skip to content

Commit

Permalink
more ruff fixes
Browse files Browse the repository at this point in the history
one extra future removal
  • Loading branch information
alexlancaster committed Jan 5, 2025
1 parent 48cb5e8 commit 9ba5e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/PyPop/citation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def convert_citation_formats(build_lib, citation_path):
shutil.copy(citation_path, target_dir)

# load the CITATION.cff content
cff = Citation(cffstr=open(citation_path).read())
with open(citation_path) as f:
cff = Citation(cffstr=f.read())

# remove 'cff' from generated list - since we don't generate that
citation_output_formats.remove("cff")
Expand Down
2 changes: 0 additions & 2 deletions src/PyPop/xslt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
"""

from __future__ import annotations

from math import floor, inf, log10

from lxml import etree
Expand Down

0 comments on commit 9ba5e75

Please sign in to comment.