Damien Elmes
079657893c
speed up CI build
2019-12-24 19:57:54 +10:00
Damien Elmes
1ecb6f4434
venv fix for github
2019-12-24 19:57:54 +10:00
Damien Elmes
ed6f58080b
rename workflow file
2019-12-24 19:57:54 +10:00
Damien Elmes
7733e03360
make it possible to implement functionality in Rust
2019-12-24 19:57:54 +10:00
Damien Elmes
ed8340a4e3
Merge pull request #384 from glutanimate/fix-implicit-aqt-init-imports
...
Explicitly import non-qt modules that used to be imported from aqt.qt
2019-12-24 19:56:59 +10:00
Damien Elmes
4863431c93
add type hint to models
2019-12-24 14:06:31 +10:00
Damien Elmes
bbbfb50998
py-test needs to depend on test files
2019-12-24 10:46:02 +10:00
Damien Elmes
f7dfe98030
add temporary benchmark for updateReqs
2019-12-24 10:23:21 +10:00
Glutanimate
9d4d5c1120
Explicitly import non-qt modules that used to be imported from aqt.qt
2019-12-23 14:37:27 +01:00
Damien Elmes
b67b1e1451
avoid unnecessary reinstall in requirements.check
2019-12-23 13:26:33 +10:00
Damien Elmes
7b9bab3116
fix editor broken by refactor
2019-12-23 12:51:13 +10:00
Damien Elmes
eb03b8b727
another pylint fix
2019-12-23 12:06:26 +10:00
Damien Elmes
f2a7e4685c
give up on pytype
...
the fix/check/fix cycle is infuriating slow
2019-12-23 11:58:26 +10:00
Damien Elmes
f8419cf957
fix pylint
2019-12-23 11:56:03 +10:00
Damien Elmes
2d68544d64
update contrib docs
2019-12-23 11:38:58 +10:00
Damien Elmes
a0ca95a414
fix some type errors/lints
2019-12-23 11:32:19 +10:00
Damien Elmes
339ec45f92
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
17af26dcb5
apply black to all files
2019-12-23 10:34:10 +10:00
Damien Elmes
9ebc15c748
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
b51cf71d35
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
29179771b3
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
008bb6f0c3
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
45fd039bbf
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)
13afb0dbff
Move repeated calls to _renderQA into local function
2019-12-23 00:32:09 +01:00
Michal Pokorný (Rai)
1e9833ab2a
Whitespace reformat to force 80-character line limit
2019-12-23 00:30:59 +01:00
Michal Pokorný (Rai)
8ceccbd164
Merge 'data' variable into its only usage site
2019-12-23 00:29:23 +01:00
Michal Pokorný (Rai)
c72051ba0d
Move QA data tuple into separate type alias
2019-12-23 00:27:14 +01:00
Damien Elmes
30f5183b03
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
1635ba7a5f
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)
60d2b7dfad
Whitespace change
2019-12-22 23:44:43 +01:00
Damien Elmes
30f5a82d35
drop pytype from CI checks
...
less useful as more type hints are added
2019-12-23 08:40:37 +10:00
Damien Elmes
f7ae4c3ef4
Merge branch 'master' of github.com:dae/anki
2019-12-23 08:32:19 +10:00
Damien Elmes
7d8969a711
Merge pull request #374 from agentydragon/mathjax-test
...
Fix bug in _removeFormattingFromMathjax
2019-12-23 07:43:16 +10:00
Damien Elmes
73d065ed75
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
0473d70760
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)
36bdb4ebe0
Add some type declarations in tags.py
2019-12-22 14:50:42 +01:00
Michal Pokorný (Rai)
202a31dc5a
Add some type declarations in utils.py
2019-12-22 14:47:07 +01:00
Michal Pokorný (Rai)
899305ec41
Deduplicate some code in aqt/editor.py
2019-12-22 14:21:48 +01:00
Michal Pokorný (Rai)
2ae342592c
Deduplicate media extension filter with existing list of media extensions
2019-12-22 14:00:59 +01:00
Michal Pokorný (Rai)
5ff0547110
Don't repeat Python regex docs
2019-12-22 12:43:15 +01:00
Damien Elmes
530961f264
js build doesn't require python deps
2019-12-22 19:29:26 +10:00
Damien Elmes
af4d4af55d
fix race condition in tmp folder handling
2019-12-22 19:03:20 +10:00
Damien Elmes
59ec442317
add pull_request to github actions
2019-12-22 18:39:14 +10:00
Michal Pokorný (Rai)
2d2f21bfe3
Fix bug in _removeFormattingFromMathjax
2019-12-22 05:47:45 +01:00
Michal Pokorný (Rai)
331781cf45
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
b34c43a739
badge fix
2019-12-22 12:32:49 +10:00
Damien Elmes
f33f2f4356
fix failing checks
2019-12-22 12:30:29 +10:00
Damien Elmes
0150056f2b
update badge
2019-12-22 12:28:27 +10:00
Damien Elmes
0581e29f88
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
e2feb89f47
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