Commit Graph

24752 Commits

Author SHA1 Message Date
Florian Bruhin ea9dfcf710 Update backers.md 2023-11-10 16:03:12 +01:00
Florian Bruhin 044b1e38e9
Merge pull request #7980 from qutebrowser/update-dependencies
Update dependencies
2023-10-31 09:28:32 +01:00
qutebrowser bot 27b43bd5ac Update dependencies 2023-10-30 04:22:08 +00:00
toofar ab7b079411 debug python imports
For windows I'm getting a "Module not found." error, which I suspect is
it not finding qutebrowser itself, but lets see.

ref: https://pyinstaller.org/en/stable/spec-files.html#giving-run-time-python-options
2023-10-28 10:44:55 +13:00
toofar 1fa678db61 Revert "Re-compile PyInstaller bootloader in CI."
This reverts commit 6042fccbf5.
2023-10-28 10:44:55 +13:00
toofar 6e534c74e7 Revert "walk_module workaround for PyInstaller"
This reverts commit 64af5f0e26.
2023-10-28 10:44:55 +13:00
toofar b4bbf3252f un-pin pyinstaller
ref: #7806
2023-10-28 10:44:44 +13:00
Florian Bruhin cee9e909fb doc: Group chrome pages 2023-10-24 14:39:58 +02:00
Florian Bruhin c75ee977f3 doc: Update chrome:// URLs 2023-10-24 14:39:58 +02:00
Florian Bruhin 0f0853d77b
Merge pull request #7973 from qutebrowser/dependabot/github_actions/actions/setup-node-4
build(deps): bump actions/setup-node from 3 to 4
2023-10-24 08:48:36 +02:00
dependabot[bot] f53933b329
build(deps): bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 18:49:54 +00:00
Florian Bruhin 34f8fe0599
Merge pull request #7971 from qutebrowser/update-dependencies
Update dependencies
2023-10-23 12:42:43 +02:00
qutebrowser bot 1709987966 Update dependencies 2023-10-23 04:23:17 +00:00
toofar 50e8117099 fix typo
if -> is
where -> were
2023-10-20 17:30:59 +13:00
qutebrowser bot fa862c786e Release v3.0.2
(cherry picked from commit f4ba52d33f)
2023-10-19 18:39:52 +00:00
Florian Bruhin 193b5a50a7 Fix up changelog 2023-10-19 20:36:07 +02:00
qutebrowser bot ea80b73d73 Release v3.0.1
(cherry picked from commit b3b1384037)
2023-10-19 18:15:46 +00:00
Florian Bruhin ccb5480cf6 Update UA completions 2023-10-19 20:02:57 +02:00
Florian Bruhin 4f549669bc Revert "Use different PyPI token tempoarily"
This reverts commit 597873286c.
2023-10-19 19:58:42 +02:00
Florian Bruhin 47c786484b docker: Downgrade more Qt for QtWebKit 2023-10-17 17:05:34 +02:00
Florian Bruhin a794c87e9b tox: Make -qt5 explicit for docker builds
Not needed on CI for a reason I don't quite understand, but needed locally for things to run.
2023-10-17 16:01:36 +02:00
Florian Bruhin 9d9f892ded docker: Also downgrade qt5-translations for WebKit 2023-10-17 16:01:36 +02:00
Florian Bruhin cb9095f870
Merge pull request #7964 from qutebrowser/update-dependencies
Update dependencies
2023-10-17 11:04:22 +02:00
Florian Bruhin 4fd5af3ab3 scripts: Fix typo 2023-10-17 09:46:44 +02:00
Florian Bruhin 1b7e3cdb7d scripts: Add more debugging info 2023-10-17 09:46:16 +02:00
Florian Bruhin a8355674da log: Ignore deprecation warning from new SIP
See https://riverbankcomputing.com/news/SIP_v6.7.12_Released
2023-10-17 09:33:06 +02:00
Florian Bruhin 4c6b34ea05 mypy fixup 2023-10-17 09:25:53 +02:00
Florian Bruhin 513fc2c329 Adjust diff_cover changelog name 2023-10-16 21:24:59 +02:00
Florian Bruhin a087b81451 Adjust for mypy 1.6
See https://mypy-lang.blogspot.com/2023/10/mypy-16-released.html
2023-10-16 21:24:34 +02:00
qutebrowser bot c20c196250 Update dependencies 2023-10-16 04:24:13 +00:00
toofar e5a7d5c7a3
Merge pull request #7958 from qutebrowser/update-dependencies
Update dependencies
2023-10-16 09:24:52 +13:00
toofar 2a32e1b1ae lint: the exec in namedtuple is useful here
https://pylint.readthedocs.io/en/stable/user_guide/messages/refactor/prefer-typing-namedtuple.html
Says to using the class based typing.NamedTuple instead of
collections.namedtuple, which just constructs a class based off of
strings.

Here we are creating a dynamic class based on the fields in the SQL result.
It's only called once for a query, so I don't think speed is an issue.
Also it's not used by the completion, looks like just :history
2023-10-15 17:16:55 +13:00
toofar a927a93d28 lint: allow comparing variables to 0
With pylint 3 there is a new option: https://pylint.readthedocs.io/en/latest/user_guide/messages/convention/use-implicit-booleaness-not-comparison-to-zero.html

It's disabled by default but we enable all warnings and disabled them as
desired.

This one is of the opinion that:

    if x == 0:

is bad and

    if x:

is good.

I feel that the first one (x == 0) is more clear. We aren't checking for
truthiness here, we are checking for a literal value, its very
intentional.

One might argue that being precious about making the type here is
redundant in current year with type checking tooling and all that. But
there are like a hundred of these checks in the code base so it seems a
well established pattern anyhow.

In summary, the new warning doesn't have a very strong use case and we
would prefer to stick with out established pattern.
2023-10-15 16:45:22 +13:00
toofar 207de5828d fix lint
Was getting R0913: Too many arguments (14/10) (too-many-arguments)

no idea what that is just showing up now
2023-10-14 17:25:39 +13:00
toofar 7f9713b20f Merge branch 'fix/7866_filepicker_mimetype_restrictions' 2023-10-14 15:24:58 +13:00
toofar 142f019c7a Merge branch 'update_slack_ua_quirk' 2023-10-14 15:23:13 +13:00
toofar a7a2420f02 Bump slack UA quirk for latest update
Slack now requires chrome 112+. At least one user says it still works
with 108 based. Although they did just do a UI refresh so I wouldn't be
surprised if something was broken with older versions.

Note that I'm not 100% sure that slack is actually doing a strict check
for 112, but based on their prior behaviour I assume so (they are
definitely checking for >99 so our old quirk is unhelpful at this
point).

Since I've told people to add ua-slack to their disabled quirks, should
I change the name of it now to make sure it gets re-enabled? Eh, they
can manage their own quirks.
2023-10-14 15:22:09 +13:00
toofar 2edce1244a Make "new_chrome" UA quirk a bit clever
We only want to be faking a newer chrome version, if we are already on a
newer one, we don't want to be faking an older one!

Another scenario is that we might want to fake a perpetually newer
version for some site. But that seems like a very problematic scenario
and I hope that never comes up.
2023-10-14 15:06:05 +13:00
toofar 750e2b0a72 pylint 3.0 deprectations
Changelog: https://pylint.pycqa.org/en/latest/whatsnew/3/3.0/index.html#summary-release-highlights

remove `__implements__`:
That attribute is apparently from a rejected PEP. They say to inherit
from BaseChecker, which we are already doing.
https://github.com/pylint-dev/pylint/pull/8404

check_messages -> only_required_for_messages:
Seems straightforward instructions. I haven't actually tested it.
https://github.com/pylint-dev/pylint/pull/8409

remove emptystring extension:
Looks like this has been replaced by https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/use-implicit-booleaness-not-comparison-to-string.html
Which is disabled by default but we have `enable=ALL`, so I guess that means
we indeed have it enabled.

And update changelog URLs.
2023-10-11 19:16:01 +13:00
Florian Bruhin fcc6062e5b docker: Also downgrade qt5-declarative 2023-10-10 09:12:48 +02:00
Florian Bruhin 920262aaf9 Update cffi changelog 2023-10-10 09:12:31 +02:00
qutebrowser bot 2c503bf35d Update dependencies 2023-10-09 04:25:45 +00:00
toofar 8c04527cb0
Merge pull request #7949 from qutebrowser/update-dependencies
Update dependencies
2023-10-05 08:41:46 +13:00
qutebrowser bot 7d9db29661 Update dependencies 2023-10-02 04:22:42 +00:00
toofar 7750a2f7a2 update changelog 2023-09-30 15:01:13 +13:00
toofar 0c04567feb Merge pull request #7925 from fstecker/download_icons
Override IconProvider for QFileSystemModel to prevent a slowdown in the
download dialog on Linux when browsing to directories with many files.
2023-09-30 14:51:14 +13:00
toofar fea33d607f Check runtime Qt version only.
Since the bug was fixed in qtbase it shouldn't matter what version of
PyQt (or webengine for that matter) you are running against. So pass
`compiled=False`.

Also expand the docstring of `check_version()` to explain a little more
what the `compiled` kwarg does. Based on a discussion here:
https://github.com/qutebrowser/qutebrowser/pull/7933#issuecomment-1732400960

What's still not clear to me is when the runtime and compiled Qt
versions can differ. I always have to rebuild PyQt when I switch Qt
versions, but maybe I'm doing something wrong there.
2023-09-29 14:07:30 +13:00
toofar 54c0c493b3 Change log message to use f-strings
TODO: configure the linter to tell people to do this.

As an aside, I'm not sure I agree that this is a good idea. It seems the
f-string interpolation does have a cost when you are not logging at that
level, and we do support disabling the ram logger. But we can change it
with automation anyway.
2023-09-27 18:59:27 +13:00
toofar 65bfefe926 Use mocker fixture instead of mock.patch
I forgot about that fixture.
2023-09-27 18:59:27 +13:00
toofar 7b603dd6bf Move method to module level.
This avoids having to mess about with static methods. And makes the test a bit
clearer as we aren't passing a class in place of an instance anymore.

Hopefully I put it in the right place. It's above the class where it is used.
Should it be at the top of the file? Bottom of the file? IDK
2023-09-27 08:51:58 +13:00