Skip to content

Commit d8ceb47

Browse files
committed
update(code): apply git hooks with new minimal Python version
1 parent 93a23d3 commit d8ceb47

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

mkdocs_rss_plugin/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from email.utils import formatdate
1212
from pathlib import Path
1313
from re import compile as re_compile
14-
from typing import List, Literal, Optional
14+
from typing import Literal, Optional
1515

1616
# 3rd party
1717
from jinja2 import Environment, FileSystemLoader, select_autoescape
@@ -79,7 +79,7 @@ def on_startup(
7979
# flag used command to disable some actions if serve is used
8080
self.cmd_is_serve = command == "serve"
8181

82-
self.pages_to_filter: List[PageInformation] = []
82+
self.pages_to_filter: list[PageInformation] = []
8383
# prepare output feeds
8484
self.feed_created: dict = {}
8585
self.feed_updated: dict = {}

tests/test_build.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,16 +755,20 @@ def test_json_feed_validation(self):
755755
self.assertIsNone(cli_result.exception)
756756

757757
# created items
758-
with Path(tmpdirname).joinpath(OUTPUT_JSON_FEED_CREATED).open(
759-
"r", encoding="UTF-8"
760-
) as in_json:
758+
with (
759+
Path(tmpdirname)
760+
.joinpath(OUTPUT_JSON_FEED_CREATED)
761+
.open("r", encoding="UTF-8") as in_json
762+
):
761763
json_feed_created_data = json.load(in_json)
762764
jsonfeed.Feed.parse(json_feed_created_data)
763765

764766
# updated items
765-
with Path(tmpdirname).joinpath(OUTPUT_JSON_FEED_UPDATED).open(
766-
"r", encoding="UTF-8"
767-
) as in_json:
767+
with (
768+
Path(tmpdirname)
769+
.joinpath(OUTPUT_JSON_FEED_UPDATED)
770+
.open("r", encoding="UTF-8") as in_json
771+
):
768772
json_feed_updated_data = json.load(in_json)
769773
jsonfeed.Feed.parse(json_feed_updated_data)
770774

0 commit comments

Comments
 (0)