Skip to content

Commit

Permalink
Use datetime to avoid updating copyright year (#1112)
Browse files Browse the repository at this point in the history
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 <eric_wade_brown@yahoo.com>
  • Loading branch information
ericwb committed Feb 24, 2024
1 parent 5b16b6a commit e041e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/source/conf.py
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
from datetime import datetime
import os
import sys

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e041e12

Please sign in to comment.