Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent f007f08 commit 0143fa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pelican/plugins/seo/seo_enhancer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions pelican/plugins/seo/tests/test_canonical_url_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0143fa8

Please sign in to comment.