From 0143fa8099ceb201dcad24a7159aa44419dc7f99 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:51:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pelican/plugins/seo/seo_enhancer/__init__.py | 6 +++--- pelican/plugins/seo/tests/test_canonical_url_creator.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pelican/plugins/seo/seo_enhancer/__init__.py b/pelican/plugins/seo/seo_enhancer/__init__.py index 012bb40..5655e5c 100644 --- a/pelican/plugins/seo/seo_enhancer/__init__.py +++ b/pelican/plugins/seo/seo_enhancer/__init__.py @@ -46,9 +46,9 @@ def launch_html_enhancer( html_enhancements["open_graph"] = html_enhancer.open_graph.create_tags() if twitter_cards: - html_enhancements[ - "twitter_cards" - ] = html_enhancer.twitter_cards.create_tags() + html_enhancements["twitter_cards"] = ( + html_enhancer.twitter_cards.create_tags() + ) return html_enhancements diff --git a/pelican/plugins/seo/tests/test_canonical_url_creator.py b/pelican/plugins/seo/tests/test_canonical_url_creator.py index 995e638..3280e30 100644 --- a/pelican/plugins/seo/tests/test_canonical_url_creator.py +++ b/pelican/plugins/seo/tests/test_canonical_url_creator.py @@ -57,9 +57,9 @@ def test_create_url_with_external_canonical_and_save_as_metadata( ): """Test that canonical URL is build with :external_canonical: metadata value, even when :save_as: metadata is filled.""" - fake_article.metadata[ - "external_canonical" - ] = "https://www.example.com/external_canonical_article.html" + fake_article.metadata["external_canonical"] = ( + "https://www.example.com/external_canonical_article.html" + ) fake_article.metadata["save_as"] = "custom_file_name.html" html_enhancements = fake_seo_enhancer.launch_html_enhancer(