From d3b2c0c4716c06bdcfe8f3b3fc1e5c7bc56c1804 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:50:00 +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.12.1 → 24.3.0](https://github.com/psf/black/compare/23.12.1...24.3.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.2) --- .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 68c0aef..7ab0fcf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,12 +20,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 args: [--max-line-length=88] @@ -37,7 +37,7 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py36-plus] From cd93fd289acb99d82b4a8bdcce76c0e698009a86 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:50:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pelican/plugins/liquid_tags/audio.py | 1 + pelican/plugins/liquid_tags/b64img.py | 1 + pelican/plugins/liquid_tags/flickr.py | 1 + pelican/plugins/liquid_tags/generic.py | 1 + pelican/plugins/liquid_tags/giphy.py | 1 + pelican/plugins/liquid_tags/gram.py | 1 + pelican/plugins/liquid_tags/img.py | 1 + pelican/plugins/liquid_tags/include_code.py | 1 + pelican/plugins/liquid_tags/literal.py | 1 + pelican/plugins/liquid_tags/mdx_liquid_tags.py | 1 + pelican/plugins/liquid_tags/notebook.py | 1 + pelican/plugins/liquid_tags/soundcloud.py | 1 + pelican/plugins/liquid_tags/speakerdeck.py | 1 + pelican/plugins/liquid_tags/spotify.py | 1 + pelican/plugins/liquid_tags/video.py | 1 + pelican/plugins/liquid_tags/vimeo.py | 1 + pelican/plugins/liquid_tags/youtube.py | 1 + 17 files changed, 17 insertions(+) diff --git a/pelican/plugins/liquid_tags/audio.py b/pelican/plugins/liquid_tags/audio.py index 521e1ba..a960376 100644 --- a/pelican/plugins/liquid_tags/audio.py +++ b/pelican/plugins/liquid_tags/audio.py @@ -18,6 +18,7 @@ [1] https://github.com/getpelican/pelican-plugins/blob/master/liquid_tags/video.py """ + import os import re diff --git a/pelican/plugins/liquid_tags/b64img.py b/pelican/plugins/liquid_tags/b64img.py index 114cc77..85073f3 100644 --- a/pelican/plugins/liquid_tags/b64img.py +++ b/pelican/plugins/liquid_tags/b64img.py @@ -22,6 +22,7 @@ [1] https://github.com/imathis/octopress/blob/master/plugins/image_tag.rb """ + import base64 import re diff --git a/pelican/plugins/liquid_tags/flickr.py b/pelican/plugins/liquid_tags/flickr.py index 4d51d43..eeb587a 100644 --- a/pelican/plugins/liquid_tags/flickr.py +++ b/pelican/plugins/liquid_tags/flickr.py @@ -19,6 +19,7 @@ ------ Fichte """ + import json import re diff --git a/pelican/plugins/liquid_tags/generic.py b/pelican/plugins/liquid_tags/generic.py index c9c79b8..ead2543 100644 --- a/pelican/plugins/liquid_tags/generic.py +++ b/pelican/plugins/liquid_tags/generic.py @@ -18,6 +18,7 @@ of variables are from the LIQUID_CONFIGS setting, which is a list of variables to pass to the liquid tags. """ + from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/giphy.py b/pelican/plugins/liquid_tags/giphy.py index f919ce4..861f84f 100644 --- a/pelican/plugins/liquid_tags/giphy.py +++ b/pelican/plugins/liquid_tags/giphy.py @@ -19,6 +19,7 @@ ------ ive had some free time """ + import json import re diff --git a/pelican/plugins/liquid_tags/gram.py b/pelican/plugins/liquid_tags/gram.py index 32bf4f9..cd1c893 100644 --- a/pelican/plugins/liquid_tags/gram.py +++ b/pelican/plugins/liquid_tags/gram.py @@ -37,6 +37,7 @@ alt text """ + import re try: diff --git a/pelican/plugins/liquid_tags/img.py b/pelican/plugins/liquid_tags/img.py index d3a9385..eb66849 100644 --- a/pelican/plugins/liquid_tags/img.py +++ b/pelican/plugins/liquid_tags/img.py @@ -36,6 +36,7 @@ [1] https://github.com/imathis/octopress/blob/master/plugins/image_tag.rb """ + import re from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/include_code.py b/pelican/plugins/liquid_tags/include_code.py index 31f6aaa..166e837 100644 --- a/pelican/plugins/liquid_tags/include_code.py +++ b/pelican/plugins/liquid_tags/include_code.py @@ -37,6 +37,7 @@ [1] https://github.com/imathis/octopress/blob/master/plugins/include_code.rb """ + import os import re import sys diff --git a/pelican/plugins/liquid_tags/literal.py b/pelican/plugins/liquid_tags/literal.py index 947f4b0..5459904 100644 --- a/pelican/plugins/liquid_tags/literal.py +++ b/pelican/plugins/liquid_tags/literal.py @@ -15,6 +15,7 @@ This is useful when the resulting line would be interpreted as another liquid-style tag. """ + from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/mdx_liquid_tags.py b/pelican/plugins/liquid_tags/mdx_liquid_tags.py index a5ccc52..bde7cff 100644 --- a/pelican/plugins/liquid_tags/mdx_liquid_tags.py +++ b/pelican/plugins/liquid_tags/mdx_liquid_tags.py @@ -9,6 +9,7 @@ These result in a preprocess step within markdown that produces either markdown or html. """ + import itertools import re import warnings diff --git a/pelican/plugins/liquid_tags/notebook.py b/pelican/plugins/liquid_tags/notebook.py index 3fae921..e1ee665 100644 --- a/pelican/plugins/liquid_tags/notebook.py +++ b/pelican/plugins/liquid_tags/notebook.py @@ -47,6 +47,7 @@ that this CSS will not override formats within the blog theme, but there may still be some conflicts. """ + from copy import deepcopy from functools import partial import os diff --git a/pelican/plugins/liquid_tags/soundcloud.py b/pelican/plugins/liquid_tags/soundcloud.py index 785a173..b47f26f 100644 --- a/pelican/plugins/liquid_tags/soundcloud.py +++ b/pelican/plugins/liquid_tags/soundcloud.py @@ -25,6 +25,7 @@ ``` """ + import json import re diff --git a/pelican/plugins/liquid_tags/speakerdeck.py b/pelican/plugins/liquid_tags/speakerdeck.py index 42079a5..2e43881 100644 --- a/pelican/plugins/liquid_tags/speakerdeck.py +++ b/pelican/plugins/liquid_tags/speakerdeck.py @@ -21,6 +21,7 @@ src="//speakerdeck.com/assets/embed.js"> """ + import re from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/spotify.py b/pelican/plugins/liquid_tags/spotify.py index 6f03ce7..9e316cc 100644 --- a/pelican/plugins/liquid_tags/spotify.py +++ b/pelican/plugins/liquid_tags/spotify.py @@ -19,6 +19,7 @@ width='300' height='380' frameborder='0' allowtransparency='true'> """ + import re from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/video.py b/pelican/plugins/liquid_tags/video.py index c5e9ed7..e56dfcf 100644 --- a/pelican/plugins/liquid_tags/video.py +++ b/pelican/plugins/liquid_tags/video.py @@ -22,6 +22,7 @@ [1] https://github.com/imathis/octopress/blob/master/plugins/video_tag.rb """ + import os import re diff --git a/pelican/plugins/liquid_tags/vimeo.py b/pelican/plugins/liquid_tags/vimeo.py index 47a940b..d4263ab 100644 --- a/pelican/plugins/liquid_tags/vimeo.py +++ b/pelican/plugins/liquid_tags/vimeo.py @@ -25,6 +25,7 @@ [1] https://gist.github.com/jamieowen/2063748 """ + import re from .mdx_liquid_tags import LiquidTags diff --git a/pelican/plugins/liquid_tags/youtube.py b/pelican/plugins/liquid_tags/youtube.py index ad7b65e..7e9380b 100644 --- a/pelican/plugins/liquid_tags/youtube.py +++ b/pelican/plugins/liquid_tags/youtube.py @@ -51,6 +51,7 @@ [1] https://gist.github.com/jamieowen/2063748 """ + import re from .mdx_liquid_tags import LiquidTags