Commit Graph

2567 Commits

Author SHA1 Message Date
Damien Elmes
df76e8a8ee
Merge pull request #388 from agentydragon/use-setdefault
Use dict.setdefault
2019-12-26 07:43:01 +10:00
Damien Elmes
3f0b4ff3f6 isort tests; black/isort should notice changes to tests 2019-12-26 07:36:26 +10:00
Damien Elmes
5bb8d317ee don't write test data in ~ 2019-12-26 07:00:10 +10:00
Damien Elmes
5b831dd9db update ts lock 2019-12-26 06:59:59 +10:00
Michal Pokorný (Rai)
60438a0219 Use dict.setdefault 2019-12-25 15:34:30 +01:00
Damien Elmes
ad703f9631 drop oneshell from makefile
It's preventing @ prefixes on subsequent lines from being honored.
2019-12-25 16:05:01 +10:00
Damien Elmes
e5c4618a9a format tests 2019-12-25 14:18:34 +10:00
Damien Elmes
9791bcb36b more tests fail close to 4am; automatically adjust the time instead 2019-12-25 14:08:04 +10:00
Damien Elmes
40b5051a92 disable test around daily cutoff time 2019-12-25 13:43:08 +10:00
Damien Elmes
94485f36ae fix handling of typing cards 2019-12-25 13:01:19 +10:00
Damien Elmes
f4c5aac163
Merge pull request #385 from agentydragon/rai-about
Adding myself to contributor list
2019-12-25 12:22:04 +10:00
Damien Elmes
37d5ea8469 tweak dev docs 2019-12-25 12:13:28 +10:00
Damien Elmes
7f71380314 fix for isort failing to install in CI 2019-12-25 12:13:28 +10:00
Damien Elmes
c6d287c3ee mypy is required to build the protobuf code 2019-12-25 10:35:31 +10:00
Damien Elmes
b681c7aad3 add protoc to github actions 2019-12-25 10:26:16 +10:00
Michal Pokorný (Rai)
e3eaff862b Adding myself to contributor list 2019-12-25 01:25:57 +01:00
Damien Elmes
518cc44267 add a few type hints 2019-12-25 09:19:57 +10:00
Damien Elmes
3e1b474dca bridge->backend 2019-12-25 08:59:33 +10:00
Damien Elmes
5a8d088531 convert nose decorators and helpers to nose2 2019-12-24 21:42:40 +10:00
Damien Elmes
c078cdddfd if base folder can't be written, defer displaying message until qt is ready 2019-12-24 20:33:39 +10:00
Damien Elmes
9767b6b8a5 fix failure to start on new install - lang init needs to be deferred 2019-12-24 20:24:07 +10:00
Damien Elmes
06e917f80b factor in user scale factor when calculating height
fixes top bar line not appearing, and possible fix for
https://anki.tenderapp.com/discussions/beta-testing/1685-black-bars
2019-12-24 20:15:47 +10:00
Damien Elmes
c4dc40d0db ignore dot files and generated files when determining rust deps 2019-12-24 19:57:55 +10:00
Damien Elmes
d45ea2b273 exclude generated proto files from isort 2019-12-24 19:57:55 +10:00
Damien Elmes
9b0cbb6c51 comment out updatereqs speed test 2019-12-24 19:57:55 +10:00
Damien Elmes
252f74b19c hack around race condition triggered in tests on win32 2019-12-24 19:57:55 +10:00
Damien Elmes
2280a0e58a switch to nose2; nose looks to be on the way out 2019-12-24 19:57:55 +10:00
Damien Elmes
1c9a3f086b remove unnecessary global from tests 2019-12-24 19:57:55 +10:00
Damien Elmes
387a5896a4 fix unit test on Windows 2019-12-24 19:57:54 +10:00
Damien Elmes
6a8ea9e65b if db lock fails, explicitly close database
on Windows at least, the database file otherwise remains locked after
an exception is raised on a read only file
2019-12-24 19:57:54 +10:00
Damien Elmes
4168c01141 update dev docs 2019-12-24 19:57:54 +10:00
Damien Elmes
280b010493 generate type stubs for Protobuf; disable pylint on rsbridge 2019-12-24 19:57:54 +10:00
Damien Elmes
b54c127372 switch to Google's (C++) Protobuf implementation
Brings the 100 field test down from 3 secs to 0.15 secs.

"betterproto" indeed!
2019-12-24 19:57:54 +10:00
Damien Elmes
3ce4d5fd3d compute template requirements in Rust
on a 100 field template, what took ~75 seconds now takes ~3 seconds.
2019-12-24 19:57:54 +10:00
Damien Elmes
ecfce51dbd in single field case, both 'any' and 'all' are equivalent 2019-12-24 19:57:54 +10:00
Damien Elmes
252a0cb54f use protobuf for python/rust bridge
If we go ahead with betterproto on the Python side, it will mean
bumping the minimum Python dependency to 3.7.
2019-12-24 19:57:54 +10:00
Damien Elmes
e893294ee4 add rust checks, and clean up the makefile 2019-12-24 19:57:54 +10:00
Damien Elmes
249e2a2da0 split the rust code into a workspace 2019-12-24 19:57:54 +10:00
Damien Elmes
f24a396c52 format 2019-12-24 19:57:54 +10:00
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