Skip to content

Commit e041e12

Browse files
authored
Use datetime to avoid updating copyright year (#1112)
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 <[email protected]>
1 parent 5b16b6a commit e041e12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
2+
from datetime import datetime
23
import os
34
import sys
45

@@ -27,7 +28,7 @@
2728

2829
# General information about the project.
2930
project = "Bandit"
30-
copyright = "2023, Bandit Developers"
31+
copyright = f"{datetime.now():%Y}, Bandit Developers"
3132

3233
# If true, '()' will be appended to :func: etc. cross-reference text.
3334
add_function_parentheses = True

0 commit comments

Comments
 (0)