Commit Graph

2519 Commits

Author SHA1 Message Date
Damien Elmes
441e279f6d 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
3a4f94ab86 add UI scale preference 2019-12-19 09:58:16 +10:00
Damien Elmes
5ce3de0e98 setup profile earlier in startup, but defer warning message until qt init 2019-12-19 09:38:36 +10:00
Damien Elmes
c61bc8859c 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
06b2cb1875 update make instructions 2019-12-19 07:46:25 +10:00
Damien Elmes
99502e20ea ignore buildhash when checking if tests need to be re-run 2019-12-18 21:06:47 +10:00
Damien Elmes
901c285a12 use single .gitignore file 2019-12-18 21:06:24 +10:00
Damien Elmes
c15f71071e 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
aab765292a individual build rules need to depend on prereqs 2019-12-18 17:28:23 +10:00
Damien Elmes
71c0e23b77 do typecheck setup as part of prereqs install 2019-12-18 17:18:24 +10:00
Damien Elmes
52254e0176 avoid sudo in typecheck setup if possible 2019-12-18 17:14:44 +10:00
Damien Elmes
101f42f333 update travis make rules
race condition should be fixed - fingers crossed.
2019-12-18 16:37:13 +10:00
Damien Elmes
9d1d646a92 update docs 2019-12-18 16:16:44 +10:00
Damien Elmes
40418c3712 run prettier 2019-12-18 16:12:39 +10:00
Damien Elmes
d7d0d9bf88 add prettier, tidy up makefile 2019-12-18 16:12:02 +10:00
Damien Elmes
ecc5cb3c80 need to make sure reqs are installed before typechecking/setup 2019-12-18 15:21:36 +10:00
Damien Elmes
364f5582c6 add pyqt5 to deps 2019-12-18 15:13:07 +10:00
Damien Elmes
a98c0c6791 automatically install deps as part of build 2019-12-18 15:09:46 +10:00
Damien Elmes
9c05ca8429 fix usage of pip instead of apt-get 2019-12-18 15:09:05 +10:00
Damien Elmes
8a11745916 travis needs to install npm packages 2019-12-18 14:56:15 +10:00
Damien Elmes
685962faae make checks depend on full build 2019-12-18 14:52:53 +10:00
Damien Elmes
dffa481da2 add npm to travis 2019-12-18 14:45:53 +10:00
Damien Elmes
e161e66d17 update docs 2019-12-18 14:43:40 +10:00
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