Damien Elmes
b23b6fbe35
move the separate components back into this monorepo
...
Earlier today I pushed a change that split this code up into multiple
repos, but that has proved to complicate things too much. So we're
back to a single repo, except the individual submodules are better
separated than they were before.
The README files need updating again; I will push them out soon.
Aside from splitting out the different modules, the sound code has
moved from from anki to aqt.
2020-01-02 19:43:19 +10:00
Damien Elmes
3d0f20f971
Merge pull request #397 from agentydragon/remove-coding
...
Remove unneeded utf-8 encoding declaration
2019-12-28 07:11:21 +10:00
Michal Pokorný (Rai)
9383a72704
Remove unneeded utf-8 encoding declaration
...
UTF-8 is the default as of Python 3.
See: https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations
2019-12-27 18:06:06 +01:00
Michal Pokorný (Rai)
9a2348d902
Fix import order
2019-12-27 17:21:42 +01:00
Michal Pokorný (Rai)
5ee08b1b36
Type annotations in notes.py
2019-12-27 17:14:46 +01:00
Michal Pokorný (Rai)
3357ecfed3
Add type annotation for model
2019-12-27 17:14:46 +01:00
Damien Elmes
518cc44267
add a few type hints
2019-12-25 09:19:57 +10:00
Damien Elmes
17af26dcb5
apply black to all files
2019-12-23 10:34:10 +10:00
Damien Elmes
c1587254f4
use isort to tidy up imports
2019-12-20 19:19:29 +10:00
Damien Elmes
b6b8df2dcf
add a bunch of annotations for mypy
2019-12-20 15:07:40 +10:00
Damien Elmes
912e1bad03
cards/notes
2019-12-20 11:07:08 +10:00
Damien Elmes
6ecfff56c5
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
b4b8717a20
set instance vars in __init__()
2019-12-16 17:49:32 +10:00
Damien Elmes
372d5ed6e8
update copyright and clarify licenses
2019-02-05 14:01:33 +10:00
Illia Volochii
13b7e01044
Stop inheriting from object
...
It is not needed in Python 3.
2017-02-07 00:21:33 +02:00
Damien Elmes
15b349e3a8
start port to python 3
...
unit tests pass and main screens of GUI load
2016-05-12 14:45:35 +10:00
Damien Elmes
3348b091d0
tweak logging
...
- log only sched getCard(), not all getCard calls
- don't log sched.today unless it's changed
2013-10-30 22:42:32 +09:00
Damien Elmes
0fbc94c186
more logging tweaks
...
- disable in browser, note.cards()
- in getCard() we want the calling frame, not us
- log current day
- show card/note id in card info stat
2013-10-18 14:20:20 +09:00
Damien Elmes
c44cf32dc2
don't save note if no changes made ( #705 )
2013-04-11 19:20:23 +09:00
Damien Elmes
8cf072c735
preserve image filenames when stripping html
...
- also do this for the sort field
2012-12-24 14:08:42 +09:00
Damien Elmes
b2457811a2
optimize imports
2012-12-22 09:17:10 +09:00
Damien Elmes
2095e5c4b3
strip HTML when calculating field checksum (users will need to checkDB)
2012-12-21 20:51:45 +09:00
Damien Elmes
d477df8c28
merged libanki and ankiqt into single distro
2012-12-21 16:51:59 +09:00