Damien Elmes
7cf3c9201a
badge fix
2019-12-22 12:32:49 +10:00
Damien Elmes
5eb607c318
fix failing checks
2019-12-22 12:30:29 +10:00
Damien Elmes
5e65fc689a
update badge
2019-12-22 12:28:27 +10:00
Damien Elmes
aa4c47b61c
Merge pull request #372 from glutanimate/addon-type-hints
...
Add type hints for a few more methods commonly accessed by add-ons
2019-12-22 12:28:07 +10:00
Damien Elmes
edea4e9995
switch to GitHub workflows for CI
...
Also drop -j from Make, as it saves little time and makes errors
harder to read.
2019-12-22 12:15:18 +10:00
Damien Elmes
3c175a3e01
mypy does run on py3.6
2019-12-22 10:34:28 +10:00
Damien Elmes
b39568ec96
fix race condition in build scripts
...
- pip dependencies need to be installed sequentially
- move the individual check deps back into a separate file
- qt type hints not required for 'make run'
2019-12-22 10:19:50 +10:00
Glutanimate
61c79286f9
Add type hints for a few more methods commonly accessed by add-ons
2019-12-22 00:12:09 +01:00
Damien Elmes
ed02a3fc7e
Model->NoteType
2019-12-22 08:58:56 +10:00
Damien Elmes
2fb56eceab
remove pytype from 'make check', and split up dev deps
2019-12-22 08:56:47 +10:00
Damien Elmes
d1465375a7
Merge pull request #369 from agentydragon/typecheck-models
...
Add types for models, templates and field dicts
2019-12-22 08:19:40 +10:00
Damien Elmes
51819c92de
Merge pull request #370 from glutanimate/continue-from-addon-config-action
...
Allow handing config editing back to Anki after calling add-on action
2019-12-22 08:11:31 +10:00
Damien Elmes
4b6b9ade00
Merge pull request #367 from agentydragon/ref1
...
Small TS style changes: Replace 'var' with 'let' or const as appropriate
2019-12-22 08:09:24 +10:00
Glutanimate
e6c649e930
Allow handing config editing back to Anki after calling add-on action
...
Allows add-ons to partially manage their own configuration
while still delegating the actual UI to Anki.
2019-12-21 16:48:05 +01:00
Michal Pokorný (Rai)
c22e22e8ae
Add types for models, templates and field dicts
2019-12-21 12:02:16 +01:00
Michal Pokorný (Rai)
1f48e36cac
Replace 'const' with 'let' on global scope functions
...
Also use const where possible.
2019-12-21 11:24:50 +01:00
Damien Elmes
3d9dafb371
avoid noreturn for now, as it's not supported on python <3.6.5
2019-12-21 16:54:40 +10:00
Damien Elmes
48b66e4b94
add py version to about
2019-12-21 16:53:17 +10:00
Damien Elmes
656f8fd5a1
Merge pull request #366 from lovac42/handle_toolTipRole_in_sidebar_model
...
handle ToolTipRole in SidebarModel
2019-12-21 16:45:12 +10:00
Damien Elmes
0574c53f3e
add type hint
2019-12-21 16:44:38 +10:00
lovac42
01eacae688
added code to handle ToolTipRole in SidebarModel
2019-12-21 01:15:38 -05:00
Damien Elmes
4fca31f2ba
Merge pull request #365 from Arthur-Milchior/updateReqsFalseInTest
...
add some updateReqs=False in tests
2019-12-21 07:42:49 +10:00
Damien Elmes
829f504740
Merge pull request #363 from ig3/bug/new-perday
...
Use _deckNewLimitSingle in _groupChildrenMain
2019-12-21 07:41:18 +10:00
Damien Elmes
cb8f8dd4f6
mention example in contrib file
2019-12-21 07:38:01 +10:00
Michal Pokorný (Rai)
c904deb9de
Replace 'var' with 'let' or const as appropriate
...
Also replaces some for-loops over arrays with for..of loops.
2019-12-20 22:35:37 +01:00
Damien Elmes
92bdc5ff8a
add an example of how circular imports can be handled
...
The type name needs to be quoted so it is evaluated after the module
has been initialized.
In the future when we drop support for python 3.6, and mypy is updated,
we will be able to remove the quotes and use the following at
the top of the file instead:
from __future__ import annotations
2019-12-21 07:29:45 +10:00
Arthur Milchior
5c796ee021
add some updateReqs=False in tests
2019-12-20 13:25:30 -08:00
Damien Elmes
2678f9b01b
pytype can't handle circular imports
2019-12-21 07:16:26 +10:00
Ian Goodacre
2ac26f03fd
Use _deckNewLimitSingle in _groupChildrenMain
2019-12-21 09:26:51 +13:00
Damien Elmes
ff450f60ef
add type hints section to README.contributing
2019-12-20 20:52:16 +10:00
Damien Elmes
a186635a0e
add comment about pretty to makefile
2019-12-20 20:37:29 +10:00
Damien Elmes
e8c5d0bf3b
Revert "add arg hints to schedulers"
...
This reverts commit 19a4e0bcf3 .
no longer needed
2019-12-20 19:44:08 +10:00
Damien Elmes
8095ad8e4b
use isort to tidy up imports
2019-12-20 19:19:29 +10:00
Damien Elmes
92ea94a034
add some typing to addcards and main
2019-12-20 18:43:52 +10:00
Damien Elmes
3cdb5db11a
a few more typing fixes
2019-12-20 17:55:19 +10:00
Damien Elmes
96bb318c8e
add a bunch of extra hints for mypy
2019-12-20 16:40:20 +10:00
Damien Elmes
de89c72511
remove typings from some other files
...
not used frequently enough to deal with the mypy errors they're causing
at the moment
2019-12-20 16:33:49 +10:00
Damien Elmes
dc0fdaeea5
add a bunch of annotations for mypy
2019-12-20 15:07:40 +10:00
Damien Elmes
f08ef66550
fix media.check() sig
2019-12-20 11:58:50 +10:00
Damien Elmes
19311514f7
exporting, latex
2019-12-20 11:47:19 +10:00
Damien Elmes
85e1a1c772
importing
2019-12-20 11:41:24 +10:00
Damien Elmes
9f960bc38e
lang/media/storage
2019-12-20 11:27:01 +10:00
Damien Elmes
a65d91267c
decks
2019-12-20 11:07:08 +10:00
Damien Elmes
594a2c14b7
models
2019-12-20 11:07:08 +10:00
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