anki/qt/aqt
Damien Elmes fee486aaa1 PEP8 notes.py
An example of how we can start migrating the codebase to PEP8:

- enable invalid-name at the top
- use bazel run pylib:pylint to identify names that need renaming
- use PyCharm or similar to rename the functions/variables
- in the cases where the conversion is not just snake_case, use
.register_deprecated_aliases()

+ removed the __repr__() definition, it dumps all the note content
and obscures the error message
2021-06-26 11:38:59 +10:00
..
browser Add hook "browser_sidebar_will_show_context_menu" 2021-06-25 17:01:17 +02:00
data Set background-color of body to var(--window-bg) 2021-06-24 23:47:14 +09:00
forms v3 scheduler: experimental -> beta 2021-06-24 14:46:09 +10:00
operations in/out -> request/response 2021-06-20 15:49:20 +10:00
__init__.py fix incorrect platform specifier 2021-06-01 17:41:15 +10:00
about.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
addcards.py fix error when user confirms adding cloze to basic type 2021-06-26 08:35:24 +10:00
addons.py Add hook to onDelete in AddonsDialog (#1232) 2021-06-15 10:01:29 +10:00
BUILD.bazel move markdown dep into pylib 2021-03-24 22:19:14 +10:00
changenotetype.py in/out -> request/response 2021-06-20 15:49:20 +10:00
clayout.py Toggle night-mode class of documentElement when action triggered 2021-06-24 23:47:06 +09:00
colors.py move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
customstudy.py update TR references that crossed multiple lines 2021-03-26 14:38:15 +10:00
dbcheck.py nest progress messages and remove Python wrapper class 2021-02-08 16:40:27 +10:00
deckbrowser.py fix note changes triggering a queue rebuild 2021-06-08 12:09:35 +10:00
deckchooser.py ID -> Id in protobuf and Python 2021-03-27 21:38:20 +10:00
deckconf.py ask user to confirm which deck they want when opening options in reviewer 2021-05-27 13:15:28 +10:00
deckdescription.py remove deck protobuf from frontend 2021-05-31 16:31:06 +10:00
deckoptions.py remove deck protobuf from frontend 2021-05-31 16:31:06 +10:00
editcurrent.py fix note changes triggering a queue rebuild 2021-06-08 12:09:35 +10:00
editor.py PEP8 notes.py 2021-06-26 11:38:59 +10:00
emptycards.py ID -> Id in protobuf and Python 2021-03-27 21:38:20 +10:00
errors.py catch all recording errors; mention permission 2021-06-02 12:20:40 +10:00
exporting.py ID -> Id in protobuf and Python 2021-03-27 21:38:20 +10:00
fields.py remove sticky setting from fields dialog 2021-05-28 18:33:29 +10:00
filtered_deck.py Fix filtered deck from browser 2021-06-13 08:59:23 +02:00
flags.py remove 'flag ' prefix from flag names 2021-06-04 15:03:17 +10:00
gui_hooks.py fix qt/ pylints 2021-01-07 16:21:50 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
importing.py fix CSV import ignoring selected deck 2021-06-04 20:37:45 +10:00
legacy.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
main.py drop crash.log support 2021-06-24 10:08:31 +10:00
mediacheck.py in/out -> request/response 2021-06-20 15:49:20 +10:00
mediasrv.py new change notetype implementation for the frontend 2021-06-10 22:19:24 +10:00
mediasync.py update no-arg tr references in qt/ 2021-03-26 13:48:26 +10:00
modelchooser.py switch NoteType to Notetype 2021-03-27 22:03:19 +10:00
models.py remove some unnecessary checkpoints 2021-05-08 17:04:05 +10:00
mpv.py workaround for audio tracks get clipped at the end 2021-06-07 01:45:59 +03:00
notetypechooser.py switch NoteType to Notetype 2021-03-27 22:03:19 +10:00
overview.py fix note changes triggering a queue rebuild 2021-06-08 12:09:35 +10:00
pinnedmodules.py fix rsbackend compat issues 2021-02-08 09:51:51 +10:00
platform.py turn top bar dark when night mode enabled on macOS 2021-02-04 19:19:56 +10:00
preferences.py allow customization of default search text 2021-06-24 11:24:30 +10:00
profiles.py fix documentation links 2021-06-03 16:51:03 +10:00
progress.py update no-arg tr references in qt/ 2021-03-26 13:48:26 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py more typing updates 2021-02-02 23:31:55 +10:00
reviewer.py add card info action to reviewer; move note actions together 2021-06-08 14:23:23 +10:00
schema_change_tracker.py add a bunch of return types 2021-02-01 23:53:23 +10:00
sound.py keep the internal mpv playlist from growing on 2021-06-10 11:28:57 +03:00
stats.py enable type checking of aqt/forms, and fix the new typing issues 2021-03-26 16:06:02 +10:00
studydeck.py migrate more ops to CollectionOp 2021-04-06 14:36:13 +10:00
switch.py make switch more legible in dark mode 2021-05-24 11:31:56 +10:00
sync.py simplify errors 2021-04-03 16:06:46 +10:00
tagedit.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
taglimit.py limit custom study to 100 tags 2021-06-02 11:15:39 +10:00
taskman.py update find_duplicates to use QueryOp/CollectionOp 2021-05-08 16:58:18 +10:00
theme.py Store default palette before "fusion" QStyle is applied 2021-06-24 23:46:11 +09:00
toolbar.py Satisfy formatter 2021-04-13 20:29:59 +02:00
tts.py add missing copyright headers to *.py 2021-04-13 18:45:35 +10:00
undo.py enable redo support 2021-05-19 15:18:39 +10:00
update.py update TR references that contain arguments 2021-03-26 14:21:04 +10:00
utils.py fix documentation links 2021-06-03 16:51:03 +10:00
webview.py Set --window-bg of day/night mode to proper colors 2021-06-24 23:46:48 +09:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
winpaths.py convert qt strings to f-strings with flynt 2021-02-11 10:09:06 +10:00