Skip to content

Commit

Permalink
chore: release 1.0.0 (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored and Coobaha committed Dec 16, 2023
1 parent 7d4e10c commit 7ea8d1f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: |
cd anki
python -m pip install --upgrade mypy aqt pipenv pyqt5 pyqt5-stubs wheel
python -m pip install --upgrade mypy aqt pipenv pyqt6 wheel
mypy .
./package.sh
mv AnkiFinnish.zip AnkiFinnish-${{ steps.release.outputs.tag_name }}.zip
Expand Down
24 changes: 24 additions & 0 deletions anki/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## [1.0.0](https://www.github.com/Coobaha/suomea/compare/v0.4.0...v1.0.0) (2023-12-16)


### ⚠ BREAKING CHANGES

* upgrade plugin to qt6

### Features

* add base url to anki ([a443b7c](https://www.github.com/Coobaha/suomea/commit/a443b7c516568df047bc4c585c95f56899af6681))
* **anki:** add support for v3 scheduler ([a3bb593](https://www.github.com/Coobaha/suomea/commit/a3bb5930e0c7fe0980be4c5ad193eed108b2855e))
* **anki:** suomea.xyz ([1be65bb](https://www.github.com/Coobaha/suomea/commit/1be65bbe0880fd0e8922bf9cee79bb6fd8c7e11b))


### Bug Fixes

* **anki:** fix html render for other decks ([12b9ef4](https://www.github.com/Coobaha/suomea/commit/12b9ef4948f47590c8534339e1778778982bbbff))
* **anki:** fix out of range error for sched v3 ([513aeaa](https://www.github.com/Coobaha/suomea/commit/513aeaa20e4b39e268955de8ce5cc60ad5a0706a))
* bump anki plugin for newer aqt ([8faa6cc](https://www.github.com/Coobaha/suomea/commit/8faa6cc698bc8d7e0d4c594e61ced7fe867f19c4))
* dump changes ([754da92](https://www.github.com/Coobaha/suomea/commit/754da92a24e230729343d86ff500d612ddcadcee))
* rename plugin to AnkiFinnish ([ea7cd8b](https://www.github.com/Coobaha/suomea/commit/ea7cd8be331f4c29a84c2d3aeafca8491f2c2759))
* testing release ([2870623](https://www.github.com/Coobaha/suomea/commit/28706239cd5f479fdbfc042ee24b509c2b50bc15))
* upgrade plugin to qt6 ([7d4e10c](https://www.github.com/Coobaha/suomea/commit/7d4e10c5ee68a7aa954cbf74cfeba2d150a9f98d))

## [0.4.0](https://www.github.com/Coobaha/suomea/compare/v0.3.0...v0.4.0) (2023-01-30)


Expand Down
2 changes: 2 additions & 0 deletions anki/mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
ignore_missing_imports = True
5 changes: 3 additions & 2 deletions anki/plugin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from PyQt6.QtWidgets import QDialog, QLayout, QComboBox
from anki.httpclient import HttpClient
from aqt import mw, addons
from aqt.addons import AddonsDialog
from aqt.utils import showInfo, tooltip, showCritical

from .gui.settings_ui import Ui_Settings # type: ignore
from .gui.settings_ui import Ui_Settings

assert mw is not None

Expand Down Expand Up @@ -119,7 +120,7 @@ def handler(_): # type: ignore

# extends Qdialog
class SettingsModal(QDialog):
def __init__(self, parent: QDialog):
def __init__(self, parent: Optional[AddonsDialog] = None):
super().__init__(parent=parent)

assert mw is not None
Expand Down
4 changes: 2 additions & 2 deletions anki/plugin/suomea.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from aqt.reviewer import Reviewer
from aqt.webview import WebContent

from .settings import settings, SettingsModal, anki_connect_setup
from .settings import settings, SettingsModal, anki_connect_setup # type: ignore


def prepare(html: str, card: Card, context: str) -> str:
Expand All @@ -33,7 +33,7 @@ def prepare(html: str, card: Card, context: str) -> str:
next_card = None

if sched.version == 3:
sched_v3 = sched # type: Any
sched_v3: Scheduler = sched # type: ignore
cards = sched_v3.get_queued_cards(fetch_limit=2)
if len(cards.cards) > 1:
queued_card = cards.cards[1]
Expand Down

0 comments on commit 7ea8d1f

Please sign in to comment.