Commit Graph

17398 Commits

Author SHA1 Message Date
Florian Bruhin
8508928f3d Use bool instead of passing args 2018-12-10 16:33:24 +01:00
Florian Bruhin
35a3fe029d Fix lint 2018-12-10 16:33:24 +01:00
Florian Bruhin
4e99caafb9 Skip hooks for vulture/docs 2018-12-10 16:33:24 +01:00
Florian Bruhin
b41005d487 Fix mypy issues 2018-12-10 16:27:04 +01:00
Florian Bruhin
a96c6efc34 Add types to components.adblock 2018-12-10 16:27:04 +01:00
Florian Bruhin
3b53270ee3 Use hook system for config_changed hook 2018-12-10 15:48:26 +01:00
Florian Bruhin
6001640a8a Guard against double init hooks 2018-12-10 15:24:15 +01:00
Florian Bruhin
93a36c8572 Fix :adblock-update
After #640 we can likely fix this up again.
2018-12-10 15:03:09 +01:00
Florian Bruhin
a146ce865b Register host blocker as request filter 2018-12-10 15:03:09 +01:00
Florian Bruhin
58d179302e Add api.config.get 2018-12-10 15:03:09 +01:00
Florian Bruhin
1b1872e464 Expose a config_changed signal to extensions 2018-12-10 15:03:09 +01:00
Florian Bruhin
42790e7623 Expose config.change_filter 2018-12-10 15:03:09 +01:00
Florian Bruhin
9764472fd8 Move adblock from browser/ to components/ 2018-12-10 15:03:09 +01:00
Florian Bruhin
7ad7623d73 Add request filter API for host blocking
Closes https://github.com/qutebrowser/qutebrowser-extensions/issues/8
2018-12-10 15:03:09 +01:00
Florian Bruhin
3d6f604739 Prepare for moving adblocker to extension API 2018-12-10 15:03:09 +01:00
Florian Bruhin
8806c0925e Expose data and config dir as pathlib.Path 2018-12-10 14:11:16 +01:00
Florian Bruhin
4ad5790311 Add API for temporary downloads
Closes https://github.com/qutebrowser/qutebrowser-extensions/issues/9
2018-12-10 14:08:32 +01:00
Florian Bruhin
b1894f1428 Fix lint 2018-12-10 13:00:41 +01:00
Florian Bruhin
380905854c Pass standarddir to modules 2018-12-10 12:37:58 +01:00
Florian Bruhin
5b354164c5 Make it possible for extensions to define init hooks 2018-12-10 12:37:58 +01:00
Florian Bruhin
ec5a93a80d Add tests for extensions.loader 2018-12-10 12:37:58 +01:00
Florian Bruhin
38c4ef3623 Fix lint 2018-12-10 12:37:58 +01:00
Florian Bruhin
bb115afc1a Make sure we always yield full names 2018-12-10 12:37:58 +01:00
Florian Bruhin
6bc771151f Make walking components work for PyInstaller
Closes https://github.com/qutebrowser/qutebrowser-extensions/issues/5
2018-12-10 12:37:58 +01:00
Florian Bruhin
15e9127fa0 Add components to pyinstaller hiddenimports 2018-12-10 12:37:58 +01:00
Florian Bruhin
fcb39c1d7f Add types to extensions.loader 2018-12-10 12:37:58 +01:00
Florian Bruhin
411c5171a2 Load components dynamically 2018-12-10 12:37:58 +01:00
Florian Bruhin
735e6123cd Fix lint 2018-12-10 12:37:49 +01:00
Maurits van Altvorst
e203f18411 Remove redundant line 2018-12-09 14:43:54 +01:00
Maurits van Altvorst
c93bb0c1be Remove Do-Not-Track header, use DNT header instead 2018-12-09 14:42:34 +01:00
Maurits van Altvorst
f5b5aa70ed Edit tests 2018-12-09 11:15:29 +01:00
Maurits van Altvorst
296e6816ee Remove outdated X-Do-Not-Track 2018-12-08 22:37:33 +01:00
Jay Kamat
bc06c66823
Merge pull request #4460 from dan-santana/master
Use POSIX shell instead of bash on scripts/open_url_in_instance.sh
2018-12-07 17:59:03 -08:00
Daniel Santana
d505ed9fa2
Use POSIX shell instead of bash on scripts/open_url_in_instance.sh 2018-12-07 12:25:47 -02:00
Florian Bruhin
fe75ee1469 Mark "Using JS after window.open" as flaky 2018-12-05 18:28:43 +01:00
Florian Bruhin
b9cb98a5ef mypy: Add types for config.websettings 2018-12-05 17:48:56 +01:00
Florian Bruhin
7bddb7867b Add missing test for configtypes.Key 2018-12-05 17:23:09 +01:00
Florian Bruhin
a9c1fc665f Fix configtypes.Perc.to_str()
If we used an int/float in config.py for a Perc value (e.g. zoom.default),
to_str() returned int/float instead of str, causing qWarnings and bugs.
2018-12-05 17:15:57 +01:00
Florian Bruhin
f53fd56c3d mypy: Add annotations for qutebrowser.config.configtypes 2018-12-05 17:06:45 +01:00
Florian Bruhin
403e63d6f2 Configure coverage.py for "if MYPY:" 2018-12-05 09:05:32 +01:00
Florian Bruhin
c752ba4721 Fix coverage 2018-12-05 08:55:35 +01:00
Florian Bruhin
2770a935e9 Properly fix zoom handling 2018-12-05 07:57:21 +01:00
Florian Bruhin
8a107fa5b3 Fix int_level handling in :zoom 2018-12-04 17:38:50 +01:00
Florian Bruhin
91a592a256 Merge remote-tracking branch 'origin/pr/4449' 2018-12-04 16:46:14 +01:00
Florian Bruhin
b5a6a5ab8c Merge remote-tracking branch 'origin/pr/4451' 2018-12-04 16:43:25 +01:00
Florian Bruhin
7c4b0315af Merge remote-tracking branch 'origin/pyup-scheduled-update-2018-12-03' 2018-12-04 16:39:15 +01:00
Florian Bruhin
2cb277afd7 Fix exception messages in Command
The messages weren't updated in ac78039171.
2018-12-04 16:30:01 +01:00
Florian Bruhin
268ad40982 Add and enforce types for api.*/components.* 2018-12-04 15:52:14 +01:00
Florian Bruhin
953042d75d mypy: Disable untyped decorators 2018-12-04 07:28:28 +01:00
pyup-bot
2a7a3de8fc Update certifi from 2018.10.15 to 2018.11.29 2018-12-03 19:15:15 +01:00