Commit Graph

2496 Commits

Author SHA1 Message Date
Damien Elmes
f3bfed82ef compile typescript in one go
much faster, especially with --incremental
2019-12-18 14:33:57 +10:00
Damien Elmes
b676e484d3 update make clean 2019-12-18 13:57:04 +10:00
Damien Elmes
ddb4db0c96 editor 2019-12-18 13:55:52 +10:00
Damien Elmes
b3f6199827 reviewer 2019-12-18 13:32:32 +10:00
Damien Elmes
cdcf482913 reviewer-bottom 2019-12-18 13:27:39 +10:00
Damien Elmes
de29b02089 deckbrowser and overview 2019-12-18 13:21:58 +10:00
Damien Elmes
f080616eed webview.ts 2019-12-18 13:02:11 +10:00
Damien Elmes
9b04a92df2 add typescript to build 2019-12-18 12:53:13 +10:00
Damien Elmes
9df10bb9ef s/mypy/pytype/ 2019-12-18 11:31:35 +10:00
Damien Elmes
0663c343b4 re-enable travis notifications 2019-12-18 11:23:07 +10:00
Damien Elmes
f7091d5273 update travis to use makefile 2019-12-18 11:13:23 +10:00
Damien Elmes
c1cbab0d23 avoid running checks/builds when nothing has changed
with some defaults taken from https://tech.davis-hansson.com/p/make/
2019-12-18 11:12:17 +10:00
Damien Elmes
ff6b58c265 opt in to qt's new non-integer scaling 2019-12-17 18:43:32 +10:00
Damien Elmes
b9f564f49a change wrap() to wrap2() to avoid breaking add-ons 2019-12-17 18:27:41 +10:00
Damien Elmes
18a3ead1d2 disable help button in title bar 2019-12-17 17:59:19 +10:00
Damien Elmes
cfd78367d4 don't set local offset in server mode 2019-12-17 17:10:56 +10:00
Damien Elmes
df29061327 remove ruby tags when pasting without formatting 2019-12-17 07:19:15 +10:00
Damien Elmes
2921a5f195
Merge pull request #362 from elenderg/patch-1
Update editor.js
2019-12-17 07:18:30 +10:00
Elender
056f90bdea
Update editor.js
Added ruby and ruby text tags
2019-12-16 15:30:42 -03:00
Damien Elmes
c88e7913ee 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
0d9ca41c7a Merge branch 'master' of github.com:dae/anki 2019-12-16 21:06:54 +10:00
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
e59af745f7
Merge pull request #361 from Arthur-Milchior/testReqs
test req
2019-12-16 20:44:23 +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
Arthur Milchior
e96ca691d0 test req 2019-12-15 22:58:12 -08:00
Arthur Milchior
a1d602f154 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
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