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