forked from github/pelican
Fixes in files for ruff T201, RUF001, PLR2004, B904, SLOT000, PYI024, PIE800
This commit is contained in:
parent
fc45791da4
commit
82b48fcfa1
8 changed files with 18 additions and 20 deletions
|
|
@ -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"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue