Skip to content

Commit

Permalink
Fixed formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Nov 26, 2024
1 parent 0ce264b commit e1b8e25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/mkslides/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

FRONTMATTER_ALLOWED_KEYS = ["slides", "revealjs", "plugins"]


@dataclass
class Index:
favicon: Optional[str] = None
Expand Down
8 changes: 4 additions & 4 deletions src/mkslides/markupgenerator.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from copy import deepcopy
import datetime
import logging
import shutil
import time
from copy import deepcopy
from importlib import resources
from importlib.resources.abc import Traversable
from pathlib import Path
Expand All @@ -15,7 +15,7 @@
from natsort import natsorted
from omegaconf import DictConfig, OmegaConf

from mkslides.config import FRONTMATTER_ALLOWED_KEYS, Config
from mkslides.config import FRONTMATTER_ALLOWED_KEYS
from mkslides.utils import get_url_type

from .constants import (
Expand Down Expand Up @@ -113,7 +113,7 @@ def __process_markdown_file(
for key in FRONTMATTER_ALLOWED_KEYS:
if key in metadata:
OmegaConf.update(slide_config, key, metadata[key])
logger.debug(f"Detected frontmatter, used config:")
logger.debug("Detected frontmatter, used config:")
logger.debug(OmegaConf.to_yaml(slide_config, resolve=True))
else:
slide_config = self.global_config
Expand Down Expand Up @@ -222,7 +222,7 @@ def __process_markdown_directory(self, md_root_path: Path) -> None:
},
)

slideshows = natsorted(slideshows, key=lambda x: x["location"])
slideshows = natsorted(slideshows, key=lambda x: str(x["location"]))

logger.debug("Generating index")

Expand Down

0 comments on commit e1b8e25

Please sign in to comment.