summaryrefslogtreecommitdiff
path: root/.mypy.ini
AgeCommit message (Collapse)Author
7 daysback to normal ipc implFlorian Bruhin
7 daysUse a separate IPCConnection classFlorian Bruhin
2024-04-09mypy: Remove show_error_codesFlorian Bruhin
Default since 0.991: https://mypy-lang.blogspot.com/2022/11/mypy-0990-released.html
2024-03-25mypy: Set local_partial_types = TrueFlorian Bruhin
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
2023-06-30mypy: Make misc.sql fully typedFlorian Bruhin
That was an oversight apparently
2023-06-30mypy: Turn on disallow_untyped_defs by defaultFlorian Bruhin
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-30mypy: Install more typeshed typesFlorian Bruhin
2023-06-29qt6 mypy: Fix unused-ignores with mypy-pyqt5Florian Bruhin
2023-06-29qt6 mypy: Disable warn-unused-ignoresFlorian Bruhin
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-29qt6 mypy: Lie about WebKit being available with Qt 6Florian Bruhin
185 -> 81 errors
2023-06-26Initial Python 3.7 dropFlorian Bruhin
2023-06-25Rename some qt6 FIXMEsFlorian Bruhin
Not relevant for v3 and qt6
2023-06-08nativeeventfilter: Fix lintFlorian Bruhin
2022-11-14Adjust ignores/settings after mypy upgradeFlorian Bruhin
See #7478, #7098
2022-07-05macOS: fix hide_decoration making window nonresizablekt programs
Use PyObjC to call `setWindowMask:` with resizable flag on the underlying NSWindow. Fixes #4067
2022-04-04Drop python3.6 support.Jimmy
Commits for dropping 3.5 support to copy from: c245b7d855ccd "Initial drop of Python 3.5" ccdfb44b8568b "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 (ebb3046822adb) 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-03-14Let mypy check for blanket ignoresFlorian Bruhin
2021-05-19mypy: Set disallow_any_genericsFlorian Bruhin
See #6100
2021-03-27notifications: Fix lintFlorian Bruhin
2021-03-23Add type annotations for guiprocessFlorian Bruhin
2021-02-19mypy: Add some more fully-typed modulesFlorian Bruhin
2021-02-19mypy: Complete annotations for quteschemeFlorian Bruhin
2021-02-19mypy: Update skipped modulesFlorian Bruhin
2021-01-29mypy: Minor changes to configFlorian Bruhin
2021-01-17Finish dropping PyPEG2Florian Bruhin
Closes #1161
2020-11-11Remove cssutils dependencyduthades
- Remove everything related to cssutils
2020-10-26Initial drop of Python 3.5Florian Bruhin
See #4800
2020-10-19Fix lintFlorian Bruhin
2020-06-18mypy: Remove disallow_incomplete_defsFlorian Bruhin
Removed from other sections in 3679d3a05b273cbac206c52632ae0c369e7cccf2 but those were added in the docked-inspector branch.
2020-06-18Merge branch 'master' into docked-inspectorFlorian Bruhin
2020-06-09Hide mypy.iniFlorian Bruhin