Skip to content

Commit

Permalink
Fix noqa error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Oct 20, 2023
1 parent e42d7c8 commit c37981f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymatgen/io/abinit/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def format_list2d(values, float_decimal=0):
if all(f == 0 or (abs(f) > 1e-3 and abs(f) < 1e4) for f in flattened_list):
fmt_spec = f">{n_dec + 5}.{n_dec}f"
else:
fmt_spec = f">{n_dec + 8}.{n_dec}e" # noqa: F841
fmt_spec = f">{n_dec + 8}.{n_dec}e"

line = "\n"
for lst in values:
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def make_doc(ctx):
ctx.run("rm pymatgen.*.rst", warn=True)
ctx.run("rm pymatgen.*.md", warn=True)
ctx.run("sphinx-apidoc --implicit-namespaces -P -M -d 7 -o . -f ../pymatgen ../**/tests/*")
# ctx.run("rm pymatgen*.html", warn=True)
# ctx.run("sphinx-build -b html . ../docs") # HTML building.
ctx.run("sphinx-build -M markdown . .")
ctx.run("rm *.rst", warn=True)
ctx.run("cp markdown/pymatgen*.md .")
ctx.run("rm pymatgen*tests*.md", warn=True)
ctx.run("rm pymatgen*.html", warn=True)
for fn in glob("pymatgen*.md"):
with open(fn) as f:
lines = [line.rstrip() for line in f if "Submodules" not in line]
Expand Down

0 comments on commit c37981f

Please sign in to comment.