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 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-_" )