Skip to content

Commit 64e294c

Browse files
Update pre-commit hook PyCQA/bandit to v1.8.3 (#736)
* Update pre-commit hook PyCQA/bandit to v1.8.3 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Ignore a Bandit warning: the input is safe Signed-off-by: Aurélien Bompard <[email protected]> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Aurélien Bompard <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Aurélien Bompard <[email protected]>
1 parent 66fa23f commit 64e294c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
args: ["-c", "--df"]
2626

2727
- repo: https://github.com/PyCQA/bandit
28-
rev: 1.8.2
28+
rev: 1.8.3
2929
hooks:
3030
- id: bandit
3131
args: ["-ll", "-x", "tests"]

datagrepper/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def preload_docs(endpoint):
188188

189189
api_docs = modify_html(api_docs)
190190

191-
api_docs = markupsafe.Markup(api_docs)
191+
api_docs = markupsafe.Markup(api_docs) # nosec B704
192192
return api_docs
193193

194194

@@ -201,7 +201,7 @@ def load_docs(page):
201201
URL = app.config.get("DATAGREPPER_BASE_URL", flask.request.url_root)
202202
docs = htmldocs[page]
203203
docs = jinja2.Template(docs).render(URL=URL)
204-
return markupsafe.Markup(docs)
204+
return markupsafe.Markup(docs) # nosec B704
205205

206206

207207
def count_all_messages():

0 commit comments

Comments
 (0)