From 49662a76897183e1de0f24fa558d664109f35b97 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:46:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/commitizen-tools/commitizen: v3.29.0 → v4.1.0](https://github.com/commitizen-tools/commitizen/compare/v3.29.0...v4.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.9.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f50a0f193f..eede48dfbc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace name: trim trailing whitespace @@ -8,7 +8,7 @@ repos: entry: trailing-whitespace-fixer language: python types: [text] - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: end-of-file-fixer name: fix end of files @@ -16,7 +16,7 @@ repos: entry: end-of-file-fixer language: python types: [text] - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: detect-aws-credentials name: detect aws credentials @@ -60,12 +60,12 @@ repos: description: prevents giant files from being committed. entry: check-added-large-files language: python - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] args: ['--maxkb=10240'] # Versioning: Commit messages & changelog - repo: https://github.com/commitizen-tools/commitizen - rev: v3.29.0 + rev: v4.1.0 hooks: - id: commitizen stages: [commit-msg] @@ -73,7 +73,7 @@ repos: # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.6.4" + rev: "v0.9.1" hooks: # Run the linter - id: ruff From e224397295eebb8f612476a72e7c4d973cb88c20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:47:38 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- backend/services/messaging/message_service.py | 4 +++- backend/services/users/authentication_service.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/services/messaging/message_service.py b/backend/services/messaging/message_service.py index ff002aa3e9..cfe93cfb03 100644 --- a/backend/services/messaging/message_service.py +++ b/backend/services/messaging/message_service.py @@ -484,8 +484,10 @@ def send_team_join_notification( team_link = MessageService.get_team_link(team_name, team_id, False) user_link = MessageService.get_user_link(from_username) message.subject = f"You have been added to team {team_link}" - message.message = f"You have been added to the team {team_link} as {role} by {user_link}.\ + message.message = ( + f"You have been added to the team {team_link} as {role} by {user_link}.\ Access the {team_link}'s page to view more info about this team." + ) message.add_message() message.save() diff --git a/backend/services/users/authentication_service.py b/backend/services/users/authentication_service.py index 93fbd3852b..4223348dbd 100644 --- a/backend/services/users/authentication_service.py +++ b/backend/services/users/authentication_service.py @@ -14,7 +14,7 @@ tm = TMAPIDecorators() UNICODE_ASCII_CHARACTER_SET = ( - "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789" "-_" + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_" )