Commit Graph

33 Commits

Author SHA1 Message Date
Florian Bruhin 0eff340063 mypy: Enable new strict_bytes option
See https://peps.python.org/pep-0688/#no-special-meaning-for-bytes
2025-02-17 10:55:22 +01:00
Florian Bruhin 5337882657 Adjust linters for dropping Python 3.8 2024-10-13 18:24:44 +02:00
Florian Bruhin 00c56456be back to normal ipc impl 2024-05-25 09:34:01 +12:00
Florian Bruhin ef0517da69 Use a separate IPCConnection class 2024-05-25 09:34:01 +12:00
Florian Bruhin f6b752ffb0 mypy: Remove show_error_codes
Default since 0.991: https://mypy-lang.blogspot.com/2022/11/mypy-0990-released.html
2024-04-09 19:13:27 +02:00
Florian Bruhin 01f4807eaf mypy: Set local_partial_types = True
This is going to be default behavior in mypy 2.0, see:

- #8123
- https://mypy-lang.blogspot.com/2024/03/mypy-19-released.html
- https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-local-partial-types
2024-03-25 12:15:03 +01:00
Florian Bruhin 43fc49e5ad mypy: Make misc.sql fully typed
That was an oversight apparently
2023-06-30 00:58:41 +02:00
Florian Bruhin 31ece1ecb0 mypy: Turn on disallow_untyped_defs by default
Done by removing the existing config and doing:

    tox -e mypy-pyqt6 | \
    grep -F .py | \
    cut -d: -f1 | \
    sort | \
    uniq | \
    sed 's/\.py//' | \
    sed 's/\//./g' | \
    while read line; do \
    echo "[mypy-$line]\ndisallow_untyped_defs = False\n" \
    done >> .mypy.ini

This means we now enforce type annotations for all new modules.
We can still add sections for upcoming PR merges where this is a problem.

Closes #7409
2023-06-30 00:55:19 +02:00
Florian Bruhin 904cab911d mypy: Install more typeshed types 2023-06-30 00:49:30 +02:00
Florian Bruhin c8744122f6 qt6 mypy: Fix unused-ignores with mypy-pyqt5 2023-06-29 21:56:08 +02:00
Florian Bruhin cca08369be qt6 mypy: Disable warn-unused-ignores
The ignores needed between Qt 5 and Qt 6 differ.
We could buy into e.g. only Qt 6 linting, but apparently e.g. VS Code
also shows more errors when removing the Qt 5 type ignores.

Instead, disable this for now. We might want to re-enable it when we see
a major change in the mypy changelog and filter the results manually.

81 -> 50 errors
2023-06-29 21:10:01 +02:00
Florian Bruhin 53d67e2c39 qt6 mypy: Lie about WebKit being available with Qt 6
185 -> 81 errors
2023-06-29 21:10:01 +02:00
Florian Bruhin 93c7fdd60c Initial Python 3.7 drop 2023-06-26 14:39:54 +02:00
Florian Bruhin 48ea86fcb5 Rename some qt6 FIXMEs
Not relevant for v3 and qt6
2023-06-25 23:32:59 +02:00
Florian Bruhin d4a4a9d904 nativeeventfilter: Fix lint 2023-06-08 13:09:56 +02:00
Florian Bruhin b8ddaef967 Adjust ignores/settings after mypy upgrade
See #7478, #7098
2022-11-14 21:21:01 +01:00
kt programs 389eac1bb3 macOS: fix hide_decoration making window nonresizable
Use PyObjC to call `setWindowMask:` with resizable flag on the
underlying NSWindow.

Fixes #4067
2022-07-05 17:14:05 +08:00
Jimmy 060e4fbf80 Drop python3.6 support.
Commits for dropping 3.5 support to copy from:

c245b7d855ccd "Initial drop of Python 3.5"
ccdfb44b85 "Drop support for Python 3.6.0"

Anything needed to update regarding OS version support in
doc/install.asciidoc?
TODO: remove 3.6/7 annotations in requirements files and
  rebuild

workflows: not sure I updated it right (run 5.12 with 3.7, same 18.04 OS) but
18.04 seems to have 3.7 on it too so it should work. It'll all change when we
drop <5.15 anyway. Not sure what the minimum ubuntu version will be going
forward.

Regarding mimetype overrides (ebb3046822) the doctring says they can all go
in 3.7 but .h5 is still missing on py39, not sure if we should care.

There are a bunch of old(?) warning messages still ignored in tests/end2end/fixtures/quteprocess.py.
2022-04-04 12:08:19 +12:00
Florian Bruhin db720b1454 Let mypy check for blanket ignores 2022-03-14 10:04:36 +01:00
Florian Bruhin c01b47f27b mypy: Set disallow_any_generics
See #6100
2021-05-19 13:15:09 +02:00
Florian Bruhin e41e4e6629 notifications: Fix lint 2021-03-27 15:50:50 +01:00
Florian Bruhin 0df1fb35b5 Add type annotations for guiprocess 2021-03-23 12:53:23 +01:00
Florian Bruhin 095063e01c mypy: Add some more fully-typed modules 2021-02-19 14:36:20 +01:00
Florian Bruhin 1e92986b9a mypy: Complete annotations for qutescheme 2021-02-19 14:31:01 +01:00
Florian Bruhin 54dc9442d6 mypy: Update skipped modules 2021-02-19 14:21:21 +01:00
Florian Bruhin 5ba5fbfe2a mypy: Minor changes to config 2021-01-29 21:03:28 +01:00
Florian Bruhin 0d64ae3fe3 Finish dropping PyPEG2
Closes #1161
2021-01-17 13:18:41 +01:00
duthades 6acd40a383 Remove cssutils dependency
- Remove everything related to cssutils
2020-11-11 22:35:32 +05:30
Florian Bruhin 685a66280a Initial drop of Python 3.5
See #4800
2020-10-26 15:50:54 +01:00
Florian Bruhin c473a5063f Fix lint 2020-10-19 15:04:14 +02:00
Florian Bruhin 6c198cb266 mypy: Remove disallow_incomplete_defs
Removed from other sections in 3679d3a05b but
those were added in the docked-inspector branch.
2020-06-18 14:05:08 +02:00
Florian Bruhin 1c01420aec Merge branch 'master' into docked-inspector 2020-06-18 13:48:19 +02:00
Florian Bruhin 5b9237318e Hide mypy.ini 2020-06-09 13:19:02 +02:00
Renamed from mypy.ini (Browse further)