summaryrefslogtreecommitdiff
path: root/qutebrowser
AgeCommit message (Collapse)Author
2023-06-30qt6 mypy: Fix lintqt6-mypyFlorian Bruhin
2023-06-30mypy: Make misc.sql fully typedFlorian Bruhin
That was an oversight apparently
2023-06-30mypy: Install more typeshed typesFlorian Bruhin
2023-06-30qt6 mypy: Fix broken assertFlorian Bruhin
2023-06-29Fix lintFlorian Bruhin
2023-06-29qt6 mypy: Fix lintFlorian Bruhin
2023-06-29qt6 mypy: Fix remaining unused-ignore issuesFlorian Bruhin
2023-06-29qt6 mypy: Fix PyQt5 QUrl issues with a more clever approachFlorian Bruhin
2023-06-29qt6 mypy: Remove PyQt5 type ignoresFlorian Bruhin
2023-06-29qt6 mypy: Fix handling of AbstractTab.is_deleted()Florian Bruhin
2023-06-29qt6 mypy: Don't attempt to type-check OpenGL functionsFlorian Bruhin
2023-06-29qt6 mypy: Fix unused-ignores with mypy-pyqt5Florian Bruhin
2023-06-29mypy qt6: Ignore unreachable after rebaseFlorian Bruhin
2023-06-29qt6 mypy: Fix qt5 mypy regressionsFlorian Bruhin
2023-06-29qt6 mypy: Fix remaining issuesFlorian Bruhin
30 -> 0 errors
2023-06-29qt6 mypy: Fix typing around qenum_keyFlorian Bruhin
36 -> 30 errors
2023-06-29qt6 mypy: Add missing pyqtPropertyFlorian Bruhin
39 -> 36 errors
2023-06-29qt6 mypy: Fix first batch of various issuesFlorian Bruhin
50 -> 39 errors
2023-06-29qt6 mypy: Fix first batch of various issuesFlorian Bruhin
50 -> 40 errors
2023-06-29qt6 mypy: Lie about WebKit being available with Qt 6Florian Bruhin
185 -> 81 errors
2023-06-29qt6 mypy: Fix moved Qt 6 imports in TYPE_CHECKING blocksFlorian Bruhin
191 -> 185 errors
2023-06-26py38: Run modified pyupgradedrop-py37Florian Bruhin
Modified to leave f-strings alone for now, and also not do some other stuff we should do separately: diff --git i/pyupgrade/_main.py w/pyupgrade/_main.py index 4292174..37547b3 100644 --- i/pyupgrade/_main.py +++ w/pyupgrade/_main.py @@ -294,7 +294,8 @@ def _fix_tokens(contents_text: str) -> str: token.utf8_byte_offset == 0 and token.line < 3 and token.name == 'COMMENT' and - tokenize.cookie_re.match(token.src) + tokenize.cookie_re.match(token.src) and + False ): del tokens[i] assert tokens[i].name == 'NL', tokens[i].name diff --git i/pyupgrade/_plugins/fstrings.py w/pyupgrade/_plugins/fstrings.py index e648075..eb44c0c 100644 --- i/pyupgrade/_plugins/fstrings.py +++ w/pyupgrade/_plugins/fstrings.py @@ -88,7 +88,7 @@ def _format_params(call: ast.Call) -> set[str]: return params -@register(ast.Call) +# @register(ast.Call) def visit_Call( state: State, node: ast.Call, diff --git i/pyupgrade/_plugins/open_mode.py w/pyupgrade/_plugins/open_mode.py index a20b95c..0388781 100644 --- i/pyupgrade/_plugins/open_mode.py +++ w/pyupgrade/_plugins/open_mode.py @@ -28,7 +28,7 @@ def _permute(*args: str) -> tuple[str, ...]: return tuple(''.join(p) for s in args for p in itertools.permutations(s)) -MODE_REMOVE = frozenset(_permute('U', 'r', 'rU', 'rt')) +MODE_REMOVE = frozenset(_permute('U', 'rU', 'rt')) MODE_REPLACE_R = frozenset(_permute('Ub')) MODE_REMOVE_T = frozenset(_plus(_permute('at', 'rt', 'wt', 'xt'))) MODE_REMOVE_U = frozenset(_permute('rUb')) Then run with: git ls-files | grep -E '(\.py|misc/userscripts)' | xargs ~/tmp/pyupgrade/.venv/bin/pyupgrade --py38-plus And manually reverted some changes (e.g. it picking up bash userscripts)
2023-06-26Initial Python 3.7 dropFlorian Bruhin
2023-06-26Migrate :print --pdf to pathlibFlorian Bruhin
2023-06-26Fix :print --pdf with subdirectoriesFlorian Bruhin
Fixes #5160
2023-06-14qt: Use warning instead if Qt was already importedFlorian Bruhin
2023-06-14qt: Use outcomes dict instead of attributes for SelectionInfoFlorian Bruhin
2023-06-14qt: Sort wrappers in SelectionInfo correctlyFlorian Bruhin
2023-06-14qt: Improve backendproblem messagesFlorian Bruhin
2023-06-14qt: Allow opt-in to autoselection and enable testsFlorian Bruhin
2023-06-13qt: Don't call _set_globals if wrapper is NoneFlorian Bruhin
2023-06-13qt: Improve SelectionInfo.__str__()Florian Bruhin
2023-06-13qt: Refactor SelectionInfo.set_module_errorFlorian Bruhin
2023-06-13qt: Stop trying other wrappers on ImportErrorFlorian Bruhin
2023-06-13qt: Add wrapper info to backendproblem messagesFlorian Bruhin
2023-06-13qt: Fix lintFlorian Bruhin
2023-06-13qt: Split machinery.init() and init_explicit() into two functionsFlorian Bruhin
This also moves the checking for sys.modules into _select_wrapper.
2023-06-13qt: Integrate machinery into earlyinit properlyFlorian Bruhin
This means we will now get errors via the usual mechanisms (e.g. a Tk error dialog) when all Qt wrappers failed to import. We also add information about the picked Qt wrapper (and any errors) to the error message.
2023-06-13qt: Fix lintFlorian Bruhin
2023-06-13qt: Treat empty QUTE_QT_WRAPPER as unsetFlorian Bruhin
2023-06-13qt: Less stringly-typed API for SelectionInfoFlorian Bruhin
2023-06-13qt: Add machinery.SelectionInfoFlorian Bruhin
2023-06-12qt: Fix typing/lintFlorian Bruhin
2023-06-12qt: Small machinery fixupsFlorian Bruhin
2023-06-12qt: Remove duplicate machine.PACKAGEFlorian Bruhin
Contains the exact same string we have in .WRAPPER already anyways.
2023-06-12qt: Add docstring for constantsFlorian Bruhin
2023-06-12qt: Simplify qt.sipFlorian Bruhin
2023-06-12qt: Add module docstrings and update lint ignoresFlorian Bruhin
2023-06-12qt: Call machinery.init() in qt packagesFlorian Bruhin
2023-06-12qt: Initial support for a --qt-wrapper argumentFlorian Bruhin