Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Sep 23, 2024
1 parent 5c15c97 commit 05ea63b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ extra_checks = true
disable_error_code = "attr-defined"
[[tool.mypy.overrides]]
module = [
"bbcode",
"enlighten",
"frontmatter",
"puremagic",
Expand Down
6 changes: 5 additions & 1 deletion src/formats/zettelkasten.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
def bbcode_to_markdown(
bbcode_str: str,
) -> tuple[str, list[imf.NoteLink], list[imf.Resource]]:
# pylint: disable=unused-argument
note_links = []
images = []

Expand Down Expand Up @@ -130,6 +131,8 @@ def parse_attributes(self, zettel, note_imf: imf.Note):
self.logger.warning(f"ignoring attribute {key}={value}")

def convert(self, file_or_folder: Path):
# TODO
# pylint: disable=too-many-branches,too-many-locals
self.root_path = self.prepare_input(file_or_folder)

attachments_folder = file_or_folder.parent / "attachments"
Expand Down Expand Up @@ -177,7 +180,8 @@ def convert(self, file_or_folder: Path):
if images_available:
for image in images:
image.filename = images_folder / image.filename
# Set manually, because with invalid path its set to False.
# Set manually, because with invalid path it's
# set to False.
image.is_image = True
note_imf.resources.append(image)
case "author":
Expand Down

0 comments on commit 05ea63b

Please sign in to comment.