diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef30470f..2eaaa879 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,12 @@ ci: skip: ['yesqa', 'no-commit-to-branch'] repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade args: ['--keep-runtime-typing', '--py311-plus'] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.1 + rev: v0.9.2 hooks: - id: ruff args: ['--fix', '--exit-non-zero-on-fix'] @@ -49,7 +49,7 @@ repos: - id: python-check-blanket-type-ignore - id: python-no-log-warn - repo: https://github.com/PyCQA/bandit - rev: 1.8.0 + rev: 1.8.2 hooks: - id: bandit language_version: python3 @@ -57,7 +57,7 @@ repos: additional_dependencies: - bandit[toml] - repo: https://github.com/pycontribs/mirrors-prettier - rev: v3.3.3 + rev: v3.4.2 hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/hasjob/views/login.py b/hasjob/views/login.py index 526d83d6..5016d30a 100644 --- a/hasjob/views/login.py +++ b/hasjob/views/login.py @@ -48,9 +48,7 @@ def lastuser_error(error, error_description=None, error_uri=None): flash("You denied the request to login", category='error') return redirect(get_next_url()) return Response( - "Error: %s\n" - "Description: %s\n" - "URI: %s" % (error, error_description, error_uri), + "Error: %s\nDescription: %s\nURI: %s" % (error, error_description, error_uri), mimetype="text/plain", )