mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix lint issues
This commit is contained in:
parent
7adc87bd3e
commit
e52b20fad5
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import datetime
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
import time
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
import tomllib
|
||||
|
|
@ -31,7 +31,9 @@ extensions = [
|
|||
source_suffix = ".rst"
|
||||
master_doc = "index"
|
||||
project = project_data.get("name").upper()
|
||||
year = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))).year
|
||||
year = datetime.datetime.utcfromtimestamp(
|
||||
int(os.environ.get("SOURCE_DATE_EPOCH", time.time()))
|
||||
).year
|
||||
copyright = f"2010–{year}" # noqa: RUF001
|
||||
exclude_patterns = ["_build"]
|
||||
release = project_data.get("version")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue