Fix issues as reported by bandit or mark as nosec

Nothing worrying, but good to have checked this regardless
and important to have a green pipeline.

Fix #175
This commit is contained in:
Klaas van Schelven
2025-07-30 12:16:34 +02:00
parent 6266f15aa1
commit 354af7ea0a
27 changed files with 174 additions and 75 deletions

View File

@@ -1,7 +1,7 @@
import time
import random
import logging
from bugsink.utils import nc_rnd
from .decorators import shared_task
# for the example tasks, we pick a non-snappea logger on purpose, to check that non-snappea logs are written in the
@@ -12,7 +12,7 @@ logger = logging.getLogger("bugsink")
@shared_task
def random_duration():
logger.info("Starting something of a random duration")
time.sleep(random.random() * 10)
time.sleep(nc_rnd.random() * 10)
@shared_task