Commit Graph

2372 Commits

Author SHA1 Message Date
Damien Elmes
da2ba2366b make sure failures stop the build 2019-12-16 21:04:32 +10:00
Damien Elmes
65c802b69e do type checking on 3.7, linting on 3.6
- python 3.6 chokes on the pyqt .pyi files
- need to check unit tests on 3.6 as well, as anki/ must run on 3.6
2019-12-16 21:02:10 +10:00
Damien Elmes
9c64ce19f7 avoid specifying python version 2019-12-16 20:33:50 +10:00
Damien Elmes
d7cb7eaea0 avoid recalculating reqs in actions like adding cards 2019-12-16 20:27:58 +10:00
Damien Elmes
eee099c0b2 add a few hints to some commonly used code
and add the extra hints mypy wanted
2019-12-16 19:46:40 +10:00
Damien Elmes
2fcc78f218 avoid importing Collection from root module
even with this change, sadly we can't use pytype on the GUI code for
now - it does not support external .pyi files at the moment.
2019-12-16 19:07:22 +10:00
Damien Elmes
86d6352047 add pytype conf file 2019-12-16 18:27:26 +10:00
Damien Elmes
81e3acd599 fixes cycles in template imports 2019-12-16 18:16:26 +10:00
Damien Elmes
2d6173a631 don't try to decode str 2019-12-16 18:08:17 +10:00
Damien Elmes
5c008a328e clarify hasIllegal() arg 2019-12-16 17:54:57 +10:00
Damien Elmes
67d8284a33 mpv was passing separators incorrectly and unnecessarily 2019-12-16 17:54:40 +10:00
Damien Elmes
d4145d1f04 fix type inference in scheduler 2019-12-16 17:54:17 +10:00
Damien Elmes
6f7c8915fe fix mplayer typecheck 2019-12-16 17:54:04 +10:00
Damien Elmes
21108650fc handle invalid field mod regex 2019-12-16 17:53:43 +10:00
Damien Elmes
b06b2f26f0 Sniffer technically expects a string, not a list 2019-12-16 17:53:20 +10:00
Damien Elmes
b935c7e89b work around some typing inference issues 2019-12-16 17:52:51 +10:00
Damien Elmes
d2f4450dc0 platform-specific imports 2019-12-16 17:51:33 +10:00
Damien Elmes
c9820fae99 ignore missing props in the supermemo importer 2019-12-16 17:50:43 +10:00
Damien Elmes
b4b8717a20 set instance vars in __init__() 2019-12-16 17:49:32 +10:00
Damien Elmes
1da52f89fe be explicit in our not-None assumptions to appease type checker 2019-12-16 17:47:07 +10:00
Damien Elmes
6757b30e72 pytype is confused by import from parent module
this change prevents the cache from constantly being rebuilt
2019-12-16 17:41:47 +10:00
Damien Elmes
54bfb486e1 enable pytype for anki/ 2019-12-16 17:38:43 +10:00
Damien Elmes
4f3bd476d5 fix incorrect marks not showing properly when typing answer
https://anki.tenderapp.com/discussions/ankidesktop/37513-thai-superscripts-not-checked
2019-12-16 14:39:54 +10:00
Damien Elmes
a2c9b160ca don't try to remove tmp folder if it's already been removed 2019-12-16 10:07:20 +10:00
Damien Elmes
ac57174fc0 add missing mock req 2019-12-16 10:03:57 +10:00
Damien Elmes
e84b3256e5 add extra qt import back to fix linting 2019-12-16 10:02:48 +10:00
Damien Elmes
b88de95cd8 bundle sip-generated stubs
the PyQt5-stubs package that's floating around depends on an old
Qt, and throws a bunch of errors
2019-12-16 09:59:18 +10:00
Damien Elmes
c508498ba8 add aqt/ 2019-12-16 08:51:38 +10:00
Damien Elmes
4e377a3b33 fix travis build 2019-12-16 08:22:47 +10:00
Damien Elmes
37a239cf38 add basic type checking for anki/ 2019-12-16 08:17:28 +10:00
Damien Elmes
81bdd860f3 bump version 2019-12-15 15:32:24 +10:00
Damien Elmes
4bc33e2f19 save local timezone to conf
saves the user needing to visit AnkiWeb when their timezone has changed
2019-12-12 11:30:01 +11:00
Damien Elmes
a735ed19ae clearer name for invalid column
https://github.com/dae/anki/pull/360
2019-12-12 09:54:26 +10:00
Damien Elmes
7f2fecb944 sort due in filtered decks by ordinal, like normal review
https://anki.tenderapp.com/discussions/ankidesktop/37419-card-order-of-siblings-not-preserved-in-filtered-deck#comment_47910714
2019-12-11 08:12:50 +10:00
Damien Elmes
bb62a3c1af fix unit tests 2019-12-09 13:00:15 +10:00
Damien Elmes
3f80c62942 tweak v2 label 2019-12-09 13:00:09 +10:00
Damien Elmes
b1ab681571 preserve contextual formatting when wrapping text
https://anki.tenderapp.com/discussions/ankidesktop/37385-cloze-is-stripping-formatting-enlarging-text

any formatting inside the selection is removed, but formatting that
starts and ends outside the selection will be preserved
2019-12-09 12:52:18 +10:00
Damien Elmes
5a5be92d09 add a token 1 day bonus so easy on a relearn card differs from good
https://anki.tenderapp.com/discussions/beta-testing/1589-anki-2116-beta#comment_47905454
2019-12-09 12:12:29 +10:00
Damien Elmes
4f4a05e1ae fix bold/italics/underline regression 2019-12-09 09:46:16 +10:00
Damien Elmes
9d6523e4dc allow importing scheduling-inclusive v1 imports into v2 2019-12-06 19:03:57 +10:00
Damien Elmes
15a9a6005e enable scheduling-inclusive exports from 2.1 2019-12-06 18:51:42 +10:00
Damien Elmes
3b5f8fec4c default to v2 scheduler on new installs, remove warning 2019-12-06 18:37:39 +10:00
Damien Elmes
bceb4feb5b
Merge pull request #359 from Arthur-Milchior/noDefaultInDeckList2
list of decks contains default iff deck chooser contains default
2019-12-06 15:01:15 +10:00
Damien Elmes
87dc87ee12 clear undo when adding card
https://anki.tenderapp.com/discussions/ankidesktop/36541-anki-nuked-all-entered-notes-on-undo
2019-12-06 14:28:57 +10:00
Damien Elmes
b1267028e3 flagging requires a current card
https://anki.tenderapp.com/discussions/ankidesktop/37324-bug-report
2019-12-06 14:23:54 +10:00
Damien Elmes
0df937061e add hack to fix go>note
https://anki.tenderapp.com/discussions/ankidesktop/37328-browsergo-note
2019-12-06 14:22:49 +10:00
Damien Elmes
0dfb025cac fix menu label inconsistency
https://anki.tenderapp.com/discussions/ankidesktop/37330-suggestion-ui
2019-12-06 14:17:02 +10:00
Damien Elmes
4fda2358b0 handle formatting from google docs 2019-12-06 14:08:59 +10:00
Damien Elmes
e2d7e5a8d7 preserve color in font tags
https://anki.tenderapp.com/discussions/ankidesktop/34688-format-of-copying
2019-12-06 13:44:06 +10:00
Damien Elmes
eacf788b40 strip bold/italics/underline when pasting without formatting
https://anki.tenderapp.com/discussions/ankidesktop/34413-formatting-is-not-fully-stripped-in-21
2019-12-06 13:40:51 +10:00