Skip to content

Commit

Permalink
misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Nov 18, 2023
1 parent 47a1c58 commit c877343
Show file tree
Hide file tree
Showing 40 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SRC_PATH = src/personal_mnemonic_medium
APPLICATION_PATH = application
SRC_PATH = personal_mnemonic_medium

deploy:
./docker_cmd.sh
Expand All @@ -21,7 +20,6 @@ lint: ## Format code
--extend-select F841

type-check: ## Type-check code
pyright $(APPLICATION_PATH)
pyright $(SRC_PATH)

validate: ## Run all checks
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion application/main.py → personal_mnemonic_medium/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import sentry_sdk
import typer
from wasabi import Printer

from personal_mnemonic_medium.card_pipeline import CardPipeline
from personal_mnemonic_medium.exporters.anki.card_types.base import (
AnkiCard,
Expand All @@ -22,7 +24,6 @@
from personal_mnemonic_medium.prompt_extractors.qa_extractor import (
QAPromptExtractor,
)
from wasabi import Printer

msg = Printer(timestamp=True)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_qa_uuid_generation():
).run(input_path=file_path)
notes = [c.to_genanki_note() for c in cards]

field_guids = {note.guid for note in notes}
field_guids: set[str] = {note.guid for note in notes} # type: ignore
reference_guids = {9315717920, 3912828915, 6300568814}
generated_guids = {card.card_uuid for card in cards}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c877343

Please sign in to comment.