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 #887

Open
wants to merge 2 commits into
base: main
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.6
rev: v0.9.2
hooks:
# Run the linter.
- id: ruff
Expand All @@ -21,7 +21,7 @@ repos:
- id: ruff-format

- repo: https://github.com/gitleaks/gitleaks
rev: v8.22.1
rev: v8.23.1
hooks:
- id: gitleaks

Expand Down
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s " "%(process)d %(thread)d %(message)s"}},
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"}},
"handlers": {
"console": {
"level": "DEBUG",
Expand Down
2 changes: 1 addition & 1 deletion config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"()": "maintenance_mode.logging.RequireNotMaintenanceMode503",
},
},
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s " "%(process)d %(thread)d %(message)s"}},
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"}},
"handlers": {
"mail_admins": {
"level": "ERROR",
Expand Down
136 changes: 34 additions & 102 deletions primed/cdsa/tests/test_commands.py

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions primed/duo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,9 @@ def clean(self):
if hasattr(self, "data_use_permission") and self.data_use_permission:
if self.data_use_permission.requires_disease_term and not self.disease_term:
raise ValidationError(
"`disease_term` must not be None " "because data_use_permission requires a disease restriction."
"`disease_term` must not be None because data_use_permission requires a disease restriction."
)
if not self.data_use_permission.requires_disease_term and self.disease_term:
raise ValidationError(
(
"`disease_term` must be None "
"because data_use_permission does not require a disease restriction."
)
("`disease_term` must be None because data_use_permission does not require a disease restriction.")
)
2 changes: 1 addition & 1 deletion primed/primed_anvil/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def __init__(self, *args, **kwargs):
if "authorization_domains" in self.fields:
self.fields["authorization_domains"].disabled = True
self.fields["authorization_domains"].help_text = (
"An authorization domain will be automatically created " "using the name of the workspace."
"An authorization domain will be automatically created using the name of the workspace."
)
2 changes: 1 addition & 1 deletion primed/users/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update_user_info(self, user, extra_data: Dict, apply_update=True):
user_changed = False
if user.name != full_name:
logger.info(
f"[SocialAccountAdatpter:update_user_info] user {user} " f"name updated from {user.name} to {full_name}"
f"[SocialAccountAdatpter:update_user_info] user {user} name updated from {user.name} to {full_name}"
)
user.name = full_name
user_changed = True
Expand Down
Loading