mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Enable flake8-builtins Ruff rule.
This commit is contained in:
parent
9f6cc9f0d7
commit
f44ec52427
7 changed files with 49 additions and 43 deletions
|
|
@ -34,7 +34,7 @@ project = project_data.get("name").upper()
|
|||
year = datetime.datetime.fromtimestamp(
|
||||
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())), datetime.timezone.utc
|
||||
).year
|
||||
copyright = f"2010–{year}" # noqa: RUF001
|
||||
project_copyright = f"2010–{year}" # noqa: RUF001
|
||||
exclude_patterns = ["_build"]
|
||||
release = project_data.get("version")
|
||||
version = ".".join(release.split(".")[:1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue