Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #65

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -21,24 +21,24 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 7.1.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.9.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py38-plus]
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
Loading