Skip to content

Commit

Permalink
Sort imports [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Jul 31, 2023
1 parent d40f0e3 commit 9d95a58
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions _generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
import sys
import time
from collections import namedtuple
from datetime import datetime, timezone, timedelta
from datetime import datetime, timedelta, timezone
from functools import cmp_to_key
from math import ceil
from pathlib import Path
from timeit import default_timer as timer
from typing import List, Dict, Optional
from urllib.parse import urljoin, urlencode
from typing import Dict, List, Optional
from urllib.parse import urlencode, urljoin
from xml.dom import minidom

import humanize # type: ignore
import requests # type: ignore
from bleach import linkify

from _opds import init_feed, simple_tag, extension_contenttype_map
from _recipe_utils import sort_category, Recipe, is_windows
from _opds import extension_contenttype_map, init_feed, simple_tag
from _recipe_utils import Recipe, is_windows, sort_category
from _recipes import (
recipes as default_recipes,
categories_sort as default_categories_sort,
recipes as default_recipes,
)
from _recipes_custom import (
recipes as custom_recipes,
categories_sort as custom_categories_sort,
recipes as custom_recipes,
)
from _utils import generate_cover, slugify

Expand Down
2 changes: 1 addition & 1 deletion _opds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Helpers to generate opds xml - extremely minimal
from datetime import datetime
from typing import Optional, Dict
from typing import Dict, Optional
from xml.dom import minidom

extension_contenttype_map = {
Expand Down
4 changes: 2 additions & 2 deletions _recipe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import sys
from calendar import monthrange
from dataclasses import dataclass, field
from datetime import datetime, timezone, timedelta
from typing import List, Union, Callable, Dict
from datetime import datetime, timedelta, timezone
from typing import Callable, Dict, List, Union

# adapted from calibre.constants.iswindows
_plat = sys.platform.lower()
Expand Down
8 changes: 4 additions & 4 deletions _recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
from typing import List

from _recipe_utils import (
Recipe,
CoverOptions,
onlyon_days,
onlyat_hours,
onlyon_weekdays,
Recipe,
first_n_days_of_month,
last_n_days_of_month,
onlyat_hours,
onlyon_days,
onlyon_weekdays,
)

# Only mobi work as periodicals on the Kindle
Expand Down
2 changes: 1 addition & 1 deletion _utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import textwrap
import unicodedata
from pathlib import Path
from typing import Tuple, Optional
from typing import Optional, Tuple

import requests
from PIL import Image, ImageDraw, ImageFont # type: ignore
Expand Down

0 comments on commit 9d95a58

Please sign in to comment.