diff --git a/coldfront/core/utils/common.py b/coldfront/core/utils/common.py index 9fd84a2de3..975a02ca24 100644 --- a/coldfront/core/utils/common.py +++ b/coldfront/core/utils/common.py @@ -46,5 +46,5 @@ def su_login_callback(user): if user.is_active and user.is_superuser: return True - logger.warning("User {} requested to login as another user but does not have permissions", user) + logger.warning("User %s requested to login as another user but does not have permissions", user) return False diff --git a/coldfront/plugins/auto_compute_allocation/utils.py b/coldfront/plugins/auto_compute_allocation/utils.py index 653cf97117..394a19206d 100644 --- a/coldfront/plugins/auto_compute_allocation/utils.py +++ b/coldfront/plugins/auto_compute_allocation/utils.py @@ -109,7 +109,7 @@ def allocation_auto_compute_fairshare_institute(project_obj, allocation_obj): {project_obj.institution}, ) logger.info( - "Additional message - this issue was encountered with project pk", + "Additional message - this issue was encountered with project pk: %s", {project_obj.pk}, ) return None diff --git a/pyproject.toml b/pyproject.toml index 33bf9873f8..f15169f6f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,7 @@ indent-width = 4 target-version = "py312" [tool.ruff.lint] -select = ["E4", "E7", "E9", "F", "I"] +select = ["E4", "E7", "E9", "F", "I", "PLE"] [tool.ruff.format] indent-style = "space"