1
0
Fork 0
forked from github/pelican

Fixes in files for ruff T201, RUF001, PLR2004, B904, SLOT000, PYI024, PIE800

This commit is contained in:
boxydog 2024-05-31 10:41:24 -05:00
commit 82b48fcfa1
8 changed files with 18 additions and 20 deletions

View file

@ -1040,7 +1040,7 @@ class StaticGenerator(Generator):
save_as = os.path.join(self.output_path, staticfile.save_as)
s_mtime = os.path.getmtime(source_path)
d_mtime = os.path.getmtime(save_as)
return s_mtime - d_mtime > 0.000001
return s_mtime - d_mtime > 0.000001 # noqa: PLR2004
def _link_or_copy_staticfile(self, sc):
if self.settings["STATIC_CREATE_LINKS"]: