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(