From 63cc3ccef4407011bf257d88cb06a9066f5a2811 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 23:04:53 +0000 Subject: [PATCH 1/2] ci: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/adamchainz/django-upgrade: 1.15.0 → 1.16.0](https://github.com/adamchainz/django-upgrade/compare/1.15.0...1.16.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.2) - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.4.3) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 480f3a204..d6ba81a28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,17 +14,17 @@ fail_fast: true repos: - repo: https://github.com/adamchainz/django-upgrade - rev: '1.15.0' + rev: '1.16.0' hooks: - id: django-upgrade args: [--target-version, "3.2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: ["--py310-plus"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.4.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 5099346dc95e6e9a646526fb79e3f0d6ed8733cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 23:05:01 +0000 Subject: [PATCH 2/2] ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --- core/management/commands/handle_emails.py | 1 + patreonmanager/utils/download.py | 1 + tests/core/test_cron_emails.py | 1 + 3 files changed, 3 insertions(+) diff --git a/core/management/commands/handle_emails.py b/core/management/commands/handle_emails.py index 3d33d42c6..ccf94878c 100644 --- a/core/management/commands/handle_emails.py +++ b/core/management/commands/handle_emails.py @@ -3,6 +3,7 @@ This is run via a scheduled task every hour and checks if there are any emails that need sending. """ + import logging from smtplib import SMTPException diff --git a/patreonmanager/utils/download.py b/patreonmanager/utils/download.py index 308f2c6e0..892a93366 100644 --- a/patreonmanager/utils/download.py +++ b/patreonmanager/utils/download.py @@ -3,6 +3,7 @@ Requires requests and lxml. """ + import logging import re from datetime import datetime diff --git a/tests/core/test_cron_emails.py b/tests/core/test_cron_emails.py index 376f3e719..9dc6dbcf1 100644 --- a/tests/core/test_cron_emails.py +++ b/tests/core/test_cron_emails.py @@ -1,4 +1,5 @@ """Tests for cron-emails sent out by the handle_emails management command.""" + import pytest from click.testing import CliRunner from django.utils import timezone