Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #6567

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
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
description: trims trailing whitespace.
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
description: ensures that a file is either empty, or ends with one newline.
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
Expand Down Expand Up @@ -60,20 +60,20 @@ 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]

# 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
Expand Down
4 changes: 3 additions & 1 deletion backend/services/messaging/message_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion backend/services/users/authentication_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
tm = TMAPIDecorators()

UNICODE_ASCII_CHARACTER_SET = (
"abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789" "-_"
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
)


Expand Down
Loading