diff --git a/pymatgen/io/abinit/variable.py b/pymatgen/io/abinit/variable.py index 00d10566c1e..cf1192f26d7 100644 --- a/pymatgen/io/abinit/variable.py +++ b/pymatgen/io/abinit/variable.py @@ -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: diff --git a/tasks.py b/tasks.py index 0ed5cc052a8..0b58f1a7d7c 100644 --- a/tasks.py +++ b/tasks.py @@ -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]