Damien Elmes
18419f9398
another pylint fix
2019-12-23 12:06:26 +10:00
Damien Elmes
9eb5162165
give up on pytype
...
the fix/check/fix cycle is infuriating slow
2019-12-23 11:58:26 +10:00
Damien Elmes
0398cd4bd7
fix pylint
2019-12-23 11:56:03 +10:00
Damien Elmes
5ca521cde9
update contrib docs
2019-12-23 11:38:58 +10:00
Damien Elmes
dfb3cd6444
fix some type errors/lints
2019-12-23 11:32:19 +10:00
Damien Elmes
51adc69734
use pylint that supports isort 5
...
when updating, make sure to pip install --reinstall requirements.check
2019-12-23 11:32:19 +10:00
Damien Elmes
9e245ae621
apply black to all files
2019-12-23 10:34:10 +10:00
Damien Elmes
79af342ee8
add black, update for new isort
...
people updating from a previous build, make sure you run
pip install --reinstall requirements.check
2019-12-23 10:31:47 +10:00
Damien Elmes
dd0bf6a544
Merge pull request #383 from agentydragon/all-ref
...
Move repeated calls to _renderQA into local function
2019-12-23 09:36:39 +10:00
Damien Elmes
c4b4f55a7a
Merge pull request #382 from agentydragon/whitespace
...
Whitespace reformat to force 80-character line limit
2019-12-23 09:35:56 +10:00
Damien Elmes
1fe0d5ff09
Merge pull request #381 from agentydragon/move-data-var
...
Merge 'data' variable into its only usage site
2019-12-23 09:35:34 +10:00
Damien Elmes
9c7207e018
Merge pull request #375 from agentydragon/stuff2
...
Use named tuple to represent QA data
2019-12-23 09:35:09 +10:00
Michal Pokorný (Rai)
090f11847e
Move repeated calls to _renderQA into local function
2019-12-23 00:32:09 +01:00
Michal Pokorný (Rai)
1c2e6666c4
Whitespace reformat to force 80-character line limit
2019-12-23 00:30:59 +01:00
Michal Pokorný (Rai)
02f3e8db98
Merge 'data' variable into its only usage site
2019-12-23 00:29:23 +01:00
Michal Pokorný (Rai)
c1e8e00bb4
Move QA data tuple into separate type alias
2019-12-23 00:27:14 +01:00
Damien Elmes
4f31a070be
Merge pull request #378 from agentydragon/types-utils
...
Add some type declarations in utils.py
2019-12-23 09:24:20 +10:00
Damien Elmes
c5d6b7e832
Merge pull request #377 from agentydragon/ref
...
Deduplicate some code in aqt/editor.py
2019-12-23 09:23:20 +10:00
Michal Pokorný (Rai)
df3c224f88
Whitespace change
2019-12-22 23:44:43 +01:00
Damien Elmes
85439a2cad
drop pytype from CI checks
...
less useful as more type hints are added
2019-12-23 08:40:37 +10:00
Damien Elmes
6d5989dfd0
Merge branch 'master' of github.com:dae/anki
2019-12-23 08:32:19 +10:00
Damien Elmes
232e0eafcf
Merge pull request #374 from agentydragon/mathjax-test
...
Fix bug in _removeFormattingFromMathjax
2019-12-23 07:43:16 +10:00
Damien Elmes
e0193cfa80
Merge pull request #376 from agentydragon/deduplicate-media
...
Deduplicate media extension filter with existing list of media extensions
2019-12-23 07:20:26 +10:00
Damien Elmes
abc0699d6e
Merge pull request #379 from agentydragon/tags-types
...
Add some type declarations in tags.py
2019-12-23 07:20:05 +10:00
Michal Pokorný (Rai)
d157a006f6
Add some type declarations in tags.py
2019-12-22 14:50:42 +01:00
Michal Pokorný (Rai)
b474c0aa46
Add some type declarations in utils.py
2019-12-22 14:47:07 +01:00
Michal Pokorný (Rai)
6654c97059
Deduplicate some code in aqt/editor.py
2019-12-22 14:21:48 +01:00
Michal Pokorný (Rai)
6939d8ba5b
Deduplicate media extension filter with existing list of media extensions
2019-12-22 14:00:59 +01:00
Michal Pokorný (Rai)
0b3dbbbf2f
Don't repeat Python regex docs
2019-12-22 12:43:15 +01:00
Damien Elmes
df9435aae5
js build doesn't require python deps
2019-12-22 19:29:26 +10:00
Damien Elmes
910d2132df
fix race condition in tmp folder handling
2019-12-22 19:03:20 +10:00
Damien Elmes
67471c0c32
add pull_request to github actions
2019-12-22 18:39:14 +10:00
Michal Pokorný (Rai)
8cc0384659
Fix bug in _removeFormattingFromMathjax
2019-12-22 05:47:45 +01:00
Michal Pokorný (Rai)
63ef6cc277
Document newly found bug in _removeFormattingFromMathjax
...
Also adds some comments I wrote to help me understand what's going
on in the code.
I hope to fix this bug myself, but I think it might be beyond what
you can do with Python regexes and might require writing a proper
parser.
So, as step 1, I'm adding in a couple comments explaining that the
bug exists and how to reproduce it.
2019-12-22 05:22:18 +01:00
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