Commit Graph

17075 Commits

Author SHA1 Message Date
Florian Bruhin
b7de287e7b Move CommandError to api.cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
f9858733c1 Improve docstrings 2018-11-29 14:18:11 +01:00
Florian Bruhin
e576847b91 Add partial type annotations for qtutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
7cbba4b3f1 Add type annotations for cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
19628d0ae9 Move cmdutils.cmd_dict to objects.commands 2018-11-29 14:18:11 +01:00
Florian Bruhin
168bc3dc49 Be stricter in mypy.ini 2018-11-29 14:18:11 +01:00
Florian Bruhin
4caa2e056b Add type annotations to misc.objects 2018-11-29 14:18:11 +01:00
Florian Bruhin
ccab751d3c
Merge pull request #4431 from winny-/winny--patch-1
Change some language about autoconfig to be clearer
2018-11-29 08:33:21 +01:00
Florian Bruhin
c3477b0468 Update changelog 2018-11-29 08:29:56 +01:00
Florian Bruhin
351b6c9b45 Add unit test for slashes in search terms 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
9d069ea12b Encode slashes in default search engine test 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
65c51931c7 Wrap url quoting into new line 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
31a122e97b Encode slashes in search terms for searchengines
If a search term contains a slash, this should be encoded. While this
makes no differences for search engines of the form

    http://example.org?q={}

it does for engines like these:

    http://example.org/search/{}

For a real world example, try:

    https://www.doi2bib.org/bib/{}
2018-11-29 08:29:56 +01:00
Florian Bruhin
e07e70361e
Merge pull request #4435 from jgkamat/jay/org-capture
Add org-capture by alcah to userscripts README
2018-11-29 08:22:09 +01:00
Florian Bruhin
13532aca18
Update doc/help/configuring.asciidoc
Co-Authored-By: winny- <winston@ml1.net>
2018-11-29 00:49:32 -06:00
Florian Bruhin
a7a1cc7c13
Update doc/help/configuring.asciidoc
Co-Authored-By: winny- <winston@ml1.net>
2018-11-29 00:49:22 -06:00
Florian Bruhin
cbf55e1ef9 Fix remaining private_api refactoring issues 2018-11-28 22:19:07 +01:00
Florian Bruhin
ee2461a6fe Fix accessing user_agent() 2018-11-28 21:57:01 +01:00
Florian Bruhin
1d4729c7f7 Fix shutdown call 2018-11-28 19:56:52 +01:00
Florian Bruhin
89650d89f1 Fix lint 2018-11-28 18:03:10 +01:00
Florian Bruhin
5f5f202098 Move private tab API into an own object 2018-11-28 17:59:27 +01:00
Florian Bruhin
d60dff2623 Renaem private attribute to is_private 2018-11-28 17:34:33 +01:00
Florian Bruhin
8765ebef23 mypy: Don't claim to be a QWebEngineView 2018-11-28 16:06:25 +01:00
Florian Bruhin
63fa65df65
Merge pull request #4440 from qutebrowser/pyup-scheduled-update-2018-11-26
Scheduled weekly dependency update for week 47
2018-11-28 15:58:32 +01:00
Florian Bruhin
b5253ec473 Fix lint 2018-11-28 13:01:43 +01:00
Florian Bruhin
14fe7f9b0b pass fixup 2018-11-28 12:58:48 +01:00
Florian Bruhin
2237ca2bcf Remove now unneeded pylint suppressions 2018-11-28 12:54:19 +01:00
Florian Bruhin
2453134011 Remove unnecessary pass statements 2018-11-28 12:51:53 +01:00
Florian Bruhin
5ed3fb723d Regenerate requirements-tests 2018-11-28 12:51:52 +01:00
Florian Bruhin
52c703a5ff Update pylint to 2.2.2 2018-11-28 12:51:52 +01:00
Florian Bruhin
bc93d2257f Add WM_CLASS to the FAQ 2018-11-28 09:20:48 +01:00
Jay Kamat
73be27ac13
Add org-capture by alcah to userscripts README 2018-11-27 22:57:50 -08:00
Florian Bruhin
d7786c694f Add type hints for qutebrowser.browser.browsertab 2018-11-27 20:45:37 +01:00
Florian Bruhin
f36a98ec76 travis: Reallow PyQt 5.10
Looks like this works again? Maybe because of Ubuntu Xenial?

Fixes #4055
2018-11-27 17:50:41 +01:00
Florian Bruhin
43c2cccc17 travis: Set "os: linux" globally 2018-11-27 17:39:52 +01:00
Florian Bruhin
07c632869d Merge branch 'mypy' 2018-11-27 16:58:18 +01:00
Florian Bruhin
fca2d9dfb4 mypy: Add to travis 2018-11-27 16:15:08 +01:00
Florian Bruhin
caca60087f Fix coverage 2018-11-27 13:24:48 +01:00
Florian Bruhin
21edeca3e0 pylint: disable=unused-import for typing
Apparently marking modules as used based on type comments doesn't work with
Python 3.7:

https://github.com/PyCQA/pylint/issues/2345
https://github.com/python/typed_ast/issues/60
2018-11-27 09:56:23 +01:00
Florian Bruhin
251531e6d0 manifest: Exclude mypy.ini 2018-11-27 08:59:39 +01:00
Florian Bruhin
984970e765 vulture: Ignore reserved value 2018-11-27 08:59:13 +01:00
Florian Bruhin
c931654a8d Remove old exit status values
Those weren't used anymore since bc8176ff21.
Since the values were removed in v1.0.0 and never used since then, it seems
fine to re-use them in the future.
2018-11-27 08:57:49 +01:00
Florian Bruhin
80808ee9d2 Add docstring 2018-11-27 08:54:25 +01:00
Florian Bruhin
ec0dc59b06 mypy: Disable warn_unused_configs
Looks like mypy's cache causes config sections to be ignored sometimes.
2018-11-27 08:53:20 +01:00
Florian Bruhin
7934dc9a95 mypy: Fix assert location 2018-11-27 08:37:59 +01:00
Florian Bruhin
f34a8ba194 Update changelog 2018-11-26 23:32:20 +01:00
Florian Bruhin
06afd3604e Don't try to iterate over auth info
This caused a crash when trying to use a proxy with authentication on QtWebKit.
It was introduced in 3a5241b642 since it was a
namedtuple before and was iterable like this.
2018-11-26 23:30:55 +01:00
Florian Bruhin
e851480a2b Use empty tuple instead of None
While None works (as logging.py does "if args:" consistently), it was never
intended to be used like that.
2018-11-26 23:30:21 +01:00
Florian Bruhin
462e07a578 Use integer division to set font weight
QFont::setFontWeight takes an int only - it looks like PyQt accepts a float and
just truncates it. That's the behaviour we actually want here, but let's be
explicit about it.
2018-11-26 23:25:13 +01:00
Florian Bruhin
d2751935e0 Convert *args to list
It being a tuple also happens to work, but is somewhat inconsistent.
2018-11-26 23:24:41 +01:00