From d0d47f463a12eb881874136bb7dc0b28528c1002 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 00:59:39 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.0 → 24.10.0](https://github.com/psf/black/compare/23.10.0...24.10.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/6.1.0...7.1.1) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98cc0a4..aa382b8 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: 24.10.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.1.1 hooks: - id: flake8 - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort From 5d946c33cbfed43762df7841891e2f3fd8020537 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 00:59:46 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- app/routes/account/hosting/vhost.py | 8 +++++--- app/utils/cache.py | 1 + app/utils/celery.py | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) 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