Elender
ec8e570cc5
Update editor.js
...
Added ruby and ruby text tags
2019-12-16 15:30:42 -03:00
Damien Elmes
458491c49d
attempt to fix travis build
...
I can't reproduce the current failure on a local machine with py3.7.
Seems to be related to a parent() method inherited from Qt. We don't
need the instance var in any case.
2019-12-16 21:17:32 +10:00
Damien Elmes
82aefef054
Merge branch 'master' of github.com:dae/anki
2019-12-16 21:06:54 +10:00
Damien Elmes
2a7ec7c30f
make sure failures stop the build
2019-12-16 21:04:32 +10:00
Damien Elmes
edd18857f5
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
bcb469f3e4
Merge pull request #361 from Arthur-Milchior/testReqs
...
test req
2019-12-16 20:44:23 +10:00
Damien Elmes
d5b9bbf3d7
avoid specifying python version
2019-12-16 20:33:50 +10:00
Damien Elmes
0e1118aab4
avoid recalculating reqs in actions like adding cards
2019-12-16 20:27:58 +10:00
Damien Elmes
c0ede5d82c
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
cde02d0269
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
20167ac5bc
add pytype conf file
2019-12-16 18:27:26 +10:00
Damien Elmes
99181ce986
fixes cycles in template imports
2019-12-16 18:16:26 +10:00
Damien Elmes
78fd924525
don't try to decode str
2019-12-16 18:08:17 +10:00
Damien Elmes
a4914b75ac
clarify hasIllegal() arg
2019-12-16 17:54:57 +10:00
Damien Elmes
53ffd13c98
mpv was passing separators incorrectly and unnecessarily
2019-12-16 17:54:40 +10:00
Damien Elmes
6a72b9eedc
fix type inference in scheduler
2019-12-16 17:54:17 +10:00
Damien Elmes
2e4a46e87b
fix mplayer typecheck
2019-12-16 17:54:04 +10:00
Damien Elmes
b23c7b07f4
handle invalid field mod regex
2019-12-16 17:53:43 +10:00
Damien Elmes
3304e74f10
Sniffer technically expects a string, not a list
2019-12-16 17:53:20 +10:00
Damien Elmes
7fe4a7c4ef
work around some typing inference issues
2019-12-16 17:52:51 +10:00
Damien Elmes
513aef78cf
platform-specific imports
2019-12-16 17:51:33 +10:00
Damien Elmes
2610099885
ignore missing props in the supermemo importer
2019-12-16 17:50:43 +10:00
Damien Elmes
14b7828135
set instance vars in __init__()
2019-12-16 17:49:32 +10:00
Damien Elmes
e15bed745f
be explicit in our not-None assumptions to appease type checker
2019-12-16 17:47:07 +10:00
Damien Elmes
41940c8575
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
cbc64a939a
enable pytype for anki/
2019-12-16 17:38:43 +10:00
Arthur Milchior
350f240ac9
test req
2019-12-15 22:58:12 -08:00
Arthur Milchior
5afc93d8c8
update requireds saves reqs as lists instead of tuples.
...
The goal of this change is to be consistent with JSON. Indeed, the
dictionnary is saved as JSON, which has list and does not has
tuple. The request was made in https://github.com/dae/anki/pull/361#issuecomment-565915191
2019-12-15 22:55:29 -08:00
Damien Elmes
6f7cbcb956
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
6e19639a8c
don't try to remove tmp folder if it's already been removed
2019-12-16 10:07:20 +10:00
Damien Elmes
ff4cbd5f45
add missing mock req
2019-12-16 10:03:57 +10:00
Damien Elmes
88fb61abcc
add extra qt import back to fix linting
2019-12-16 10:02:48 +10:00
Damien Elmes
8564b62d67
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
1f11b72341
add aqt/
2019-12-16 08:51:38 +10:00
Damien Elmes
df69b03995
fix travis build
2019-12-16 08:22:47 +10:00
Damien Elmes
fb6b53e234
add basic type checking for anki/
2019-12-16 08:17:28 +10:00
Damien Elmes
33685461d0
bump version
2019-12-15 15:32:24 +10:00
Damien Elmes
ba2d5df16c
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
7d0e0e7e36
clearer name for invalid column
...
https://github.com/dae/anki/pull/360
2019-12-12 09:54:26 +10:00
Damien Elmes
d99cca56cf
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
c840a561f9
fix unit tests
2019-12-09 13:00:15 +10:00
Damien Elmes
deb99e1fa6
tweak v2 label
2019-12-09 13:00:09 +10:00
Damien Elmes
2b94bf6ad9
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
79ab33ee49
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
1d85722b58
fix bold/italics/underline regression
2019-12-09 09:46:16 +10:00
Damien Elmes
39f6c9fa2b
allow importing scheduling-inclusive v1 imports into v2
2019-12-06 19:03:57 +10:00
Damien Elmes
f8d17a90af
enable scheduling-inclusive exports from 2.1
2019-12-06 18:51:42 +10:00
Damien Elmes
0a13c340d3
default to v2 scheduler on new installs, remove warning
2019-12-06 18:37:39 +10:00
Damien Elmes
d0785d0cae
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
8b3cf7e0fd
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