Damien Elmes
6818234679
db/hooks/utils
2019-12-20 11:07:08 +10:00
Damien Elmes
0c5d1db81d
collection
2019-12-20 11:07:08 +10:00
Damien Elmes
5b776971f8
cards/notes
2019-12-20 11:07:08 +10:00
Damien Elmes
87d37c7889
type hints for scheduler
2019-12-20 11:07:08 +10:00
Damien Elmes
19a4e0bcf3
add arg hints to schedulers
2019-12-20 11:07:08 +10:00
Damien Elmes
9983774a12
add pytype inferred types to anki/
...
I've corrected some obvious issues, and we can fix others over time.
Mypy tests are currently broken, as adding the type hints has increased
mypy's testing surface.
2019-12-20 11:07:08 +10:00
Damien Elmes
c9c219bd38
pin pyqt version; the just-released 5.14 looks to be broken
2019-12-20 10:44:15 +10:00
Damien Elmes
fc8f5f76ac
hide errors when sudo required for typecheck setup
2019-12-20 10:39:24 +10:00
Damien Elmes
79fb2f0929
fix travis again
2019-12-20 10:38:14 +10:00
Damien Elmes
e39c3fadd2
typing fixes
2019-12-20 10:21:20 +10:00
Damien Elmes
090f8d2953
disable unit test broken by revert
2019-12-20 10:16:17 +10:00
Damien Elmes
81282202b5
call onExpanded()
2019-12-20 09:30:35 +10:00
Damien Elmes
252d5b56e0
honor expand setting
2019-12-20 09:27:14 +10:00
Damien Elmes
fbc18a4a5c
fix click to expand/contract
2019-12-20 08:52:03 +10:00
Damien Elmes
f70e439d95
Revert "DeckManager: _checkDeckTree ignore case"
...
This reverts commit a6dab26d45 .
This commit broke collections that had children under each of the
the duplicate names - it renames one of the decks, but the children
of the renamed deck are left without a parent, causing an error like
line 235, in deckDueList nlim = min(nlim, lims[p][0])\n\nKeyError('..)
Rather than a more complicated approach, I think it's safer just to
leave the case or normalization-differing decks around for now, and
we can normalize things properly in a future schema upgrade.
2019-12-20 08:18:01 +10:00
Damien Elmes
33051e0913
typing tweaks
2019-12-19 21:11:35 +10:00
Damien Elmes
a35824bf86
rebuild gui if any icons change
2019-12-19 21:11:27 +10:00
Damien Elmes
ec2b5e4aeb
faster sidebar implementation
...
- qtreewidget is too slow on Qt5
- expanding/collapsing still todo
2019-12-19 21:11:12 +10:00
Damien Elmes
0998cf04f2
fix bug in editor ts conversion
2019-12-19 20:53:00 +10:00
Damien Elmes
8cee5e5d7e
Revert "add signatures to calling code"
...
This reverts commit 9a1f616a3a .
Pytype does catch the mentioned error without the extra annotations.
2019-12-19 11:39:40 +10:00
Damien Elmes
9a1f616a3a
add signatures to calling code
...
otherwise mypy ignores them. And even then, it's not smart enough
to notice self.mw.pm.setUiScale("foo") is invalid unless the
instance assignment in main has a type hint as well
2019-12-19 11:34:46 +10:00
Damien Elmes
d04b8aa8bb
add UI scale preference
2019-12-19 09:58:16 +10:00
Damien Elmes
129892a059
setup profile earlier in startup, but defer warning message until qt init
2019-12-19 09:38:36 +10:00
Damien Elmes
af013308c3
split qt requirements out again
...
PyQt didn't used to split WebEngine out separately, and that can
cause conflicts with distro-provided packages.
2019-12-19 09:34:31 +10:00
Damien Elmes
40713067d0
update make instructions
2019-12-19 07:46:25 +10:00
Damien Elmes
bddd92bea3
ignore buildhash when checking if tests need to be re-run
2019-12-18 21:06:47 +10:00
Damien Elmes
dae7d313d2
use single .gitignore file
2019-12-18 21:06:24 +10:00
Damien Elmes
9f8070dbc8
fix broken js building
...
- deps need to be defined before used
- incremental builds were not working properly
2019-12-18 17:56:58 +10:00
Damien Elmes
a88894da4f
individual build rules need to depend on prereqs
2019-12-18 17:28:23 +10:00
Damien Elmes
7070148e5a
do typecheck setup as part of prereqs install
2019-12-18 17:18:24 +10:00
Damien Elmes
b2924b8a93
avoid sudo in typecheck setup if possible
2019-12-18 17:14:44 +10:00
Damien Elmes
cf570e04e1
update travis make rules
...
race condition should be fixed - fingers crossed.
2019-12-18 16:37:13 +10:00
Damien Elmes
daf504bca6
update docs
2019-12-18 16:16:44 +10:00
Damien Elmes
43b149391d
run prettier
2019-12-18 16:12:39 +10:00
Damien Elmes
103ad888d6
add prettier, tidy up makefile
2019-12-18 16:12:02 +10:00
Damien Elmes
8dc6ffbf73
need to make sure reqs are installed before typechecking/setup
2019-12-18 15:21:36 +10:00
Damien Elmes
ad032053b5
add pyqt5 to deps
2019-12-18 15:13:07 +10:00
Damien Elmes
74599f0f23
automatically install deps as part of build
2019-12-18 15:09:46 +10:00
Damien Elmes
af83f5124c
fix usage of pip instead of apt-get
2019-12-18 15:09:05 +10:00
Damien Elmes
efd48f3b3c
travis needs to install npm packages
2019-12-18 14:56:15 +10:00
Damien Elmes
4d8770c88c
make checks depend on full build
2019-12-18 14:52:53 +10:00
Damien Elmes
243bef4331
add npm to travis
2019-12-18 14:45:53 +10:00
Damien Elmes
eb0622e664
update docs
2019-12-18 14:43:40 +10:00
Damien Elmes
45083f3caa
compile typescript in one go
...
much faster, especially with --incremental
2019-12-18 14:33:57 +10:00
Damien Elmes
2196d075bc
update make clean
2019-12-18 13:57:04 +10:00
Damien Elmes
9ba44de5b6
editor
2019-12-18 13:55:52 +10:00
Damien Elmes
f7755554ef
reviewer
2019-12-18 13:32:32 +10:00
Damien Elmes
ca0d58245c
reviewer-bottom
2019-12-18 13:27:39 +10:00
Damien Elmes
e7e4e6414d
deckbrowser and overview
2019-12-18 13:21:58 +10:00
Damien Elmes
248693b6c2
webview.ts
2019-12-18 13:02:11 +10:00