From e238a91f394a135e2b73fc07d2e671c5a70b9b30 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Fri, 23 Feb 2024 17:34:47 -0800 Subject: [PATCH] Use datetime to avoid updating copyright year This is a convenience change to make it so we don't have to update conf.py with the new copyright year every January. Instead, we just use the value from datetime. Signed-off-by: Eric Brown --- doc/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 869c1b3a8..f2a991c11 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 +from datetime import datetime import os import sys @@ -27,7 +28,7 @@ # General information about the project. project = "Bandit" -copyright = "2023, Bandit Developers" +copyright = f"{datetime.now():%Y}, Bandit Developers" # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True