diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98cc0a4..4bc79bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 23.10.0 + rev: 25.1.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -31,10 +31,10 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.2.0 hooks: - id: flake8 - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort diff --git a/app/routes/account/hosting/vhost.py b/app/routes/account/hosting/vhost.py index 32ea679..0a44a52 100644 --- a/app/routes/account/hosting/vhost.py +++ b/app/routes/account/hosting/vhost.py @@ -123,9 +123,11 @@ def request_vhost( try: settings = get_settings() send_mail( - "hostmaster@ocf.berkeley.edu" - if not settings.debug - else current_user_formatted_email(), + ( + "hostmaster@ocf.berkeley.edu" + if not settings.debug + else current_user_formatted_email() + ), subject, message, sender=data.email, diff --git a/app/utils/cache.py b/app/utils/cache.py index ebcb743..4e1563b 100644 --- a/app/utils/cache.py +++ b/app/utils/cache.py @@ -1,4 +1,5 @@ """Caching decorators for ocfweb.""" + import logging import math from collections import namedtuple diff --git a/app/utils/celery.py b/app/utils/celery.py index 863e2e2..de6a667 100644 --- a/app/utils/celery.py +++ b/app/utils/celery.py @@ -4,6 +4,7 @@ creation using our special credentials. Other modules should import from here, rather than from ocflib directly. """ + import ssl from celery import Celery