Skip to content

Commit

Permalink
Merge pull request #887 from UW-GAC/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
amstilp authored Feb 5, 2025
2 parents 552dea6 + 801fee7 commit 390edd7
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 115 deletions.
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.4
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.3
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.")
)
6 changes: 3 additions & 3 deletions primed/primed_anvil/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*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."
)
self.fields[
"authorization_domains"
].help_text = "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

0 comments on commit 390edd7

Please sign in to comment.