From 669c2f49856ff17e5e9cb40ae35a0e5de8af79a8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:03:12 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#16) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/psf/black: 23.3.0 → 24.3.0](https://github.com/psf/black/compare/23.3.0...24.3.0) - [github.com/PyCQA/flake8: 6.0.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.0.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/asottile/pyupgrade: v3.8.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.15.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 10 +++++----- pelican/plugins/feed_filter/feed_filter.py | 1 + pelican/plugins/feed_filter/test_feed_filter.py | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5cfbad4..c30c33b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: # See https://pre-commit.com/hooks.html for info on hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast @@ -20,24 +20,24 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 args: [--max-line-length=88] language_version: python3 - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.8.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/pelican/plugins/feed_filter/feed_filter.py b/pelican/plugins/feed_filter/feed_filter.py index bb892a9..e1703e3 100644 --- a/pelican/plugins/feed_filter/feed_filter.py +++ b/pelican/plugins/feed_filter/feed_filter.py @@ -4,6 +4,7 @@ A plugin to filter feed elements using custom filters. """ + from datetime import datetime from fnmatch import fnmatch from logging import warning diff --git a/pelican/plugins/feed_filter/test_feed_filter.py b/pelican/plugins/feed_filter/test_feed_filter.py index 6582df4..6d261c2 100644 --- a/pelican/plugins/feed_filter/test_feed_filter.py +++ b/pelican/plugins/feed_filter/test_feed_filter.py @@ -1,4 +1,5 @@ """Tests for the Feed Filter Plugin.""" + from datetime import datetime, timedelta import unittest