Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-06-30 | qt6 mypy: Fix lintqt6-mypy | Florian Bruhin | |
2023-06-30 | mypy: Make misc.sql fully typed | Florian Bruhin | |
That was an oversight apparently | |||
2023-06-30 | mypy: Turn on disallow_untyped_defs by default | Florian 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-30 | mypy: Install more typeshed types | Florian Bruhin | |
2023-06-30 | qt6 mypy: Fix lint | Florian Bruhin | |
2023-06-30 | qt6 mypy: Fix broken assert | Florian Bruhin | |
2023-06-29 | Fix lint | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix lint | Florian Bruhin | |
2023-06-29 | qt6 mypy: Enable on CI | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix remaining unused-ignore issues | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix PyQt5 QUrl issues with a more clever approach | Florian Bruhin | |
2023-06-29 | qt6 mypy: Remove PyQt5 type ignores | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix handling of AbstractTab.is_deleted() | Florian Bruhin | |
2023-06-29 | qt6 mypy: Don't attempt to type-check OpenGL functions | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix unused-ignores with mypy-pyqt5 | Florian Bruhin | |
2023-06-29 | mypy qt6: Ignore unreachable after rebase | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix qt5 mypy regressions | Florian Bruhin | |
2023-06-29 | qt6 mypy: Fix remaining issues | Florian Bruhin | |
30 -> 0 errors | |||
2023-06-29 | qt6 mypy: Fix typing around qenum_key | Florian Bruhin | |
36 -> 30 errors | |||
2023-06-29 | qt6 mypy: Add missing pyqtProperty | Florian Bruhin | |
39 -> 36 errors | |||
2023-06-29 | qt6 mypy: Fix first batch of various issues | Florian Bruhin | |
50 -> 39 errors | |||
2023-06-29 | qt6 mypy: Fix first batch of various issues | Florian Bruhin | |
50 -> 40 errors | |||
2023-06-29 | qt6 mypy: Disable warn-unused-ignores | Florian 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-29 | qt6 mypy: Lie about WebKit being available with Qt 6 | Florian Bruhin | |
185 -> 81 errors | |||
2023-06-29 | qt6 mypy: Fix moved Qt 6 imports in TYPE_CHECKING blocks | Florian Bruhin | |
191 -> 185 errors | |||
2023-06-29 | qt6 mypy: Add PyQt6-stubs | Florian Bruhin | |
Unfortunately there is no PyPI release yet, so install from git. 243 -> 191 errors | |||
2023-06-29 | scripts: Add a help to docker generate script | Florian Bruhin | |
2023-06-26 | py38: Run modified pyupgradedrop-py37 | Florian 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-26 | Initial Python 3.7 drop | Florian Bruhin | |
2023-06-26 | Fix keyring changelog URL | Florian Bruhin | |
2023-06-26 | Update broken userscript links | Florian Bruhin | |
2023-06-26 | Migrate :print --pdf to pathlib | Florian Bruhin | |
2023-06-26 | tests: Resurrect :print --pdf test | Florian Bruhin | |
2023-06-26 | Fix :print --pdf with subdirectories | Florian Bruhin | |
Fixes #5160 | |||
2023-06-26 | Merge pull request #7758 from qutebrowser/update-dependencies | toofar | |
Update dependencies | |||
2023-06-26 | Pin for 3.8 and changelog URL for jaraco.functools | toofar | |
2023-06-26 | Update dependencies | qutebrowser bot | |
2023-06-25 | Rename some qt6 FIXMEs | Florian Bruhin | |
Not relevant for v3 and qt6 | |||
2023-06-25 | Revert "Work around Python 3.12 test issues" | Florian Bruhin | |
Fixed with newest PyQt snapshot. This reverts commit c62e9aba5b3a07c3f2d821e8efa2bfff4e572997. | |||
2023-06-24 | Revert "tests: Add a test for implicit Qt init" | Florian Bruhin | |
This reverts commit 220337f8700ecd83b53b19c7cada26acdc31e481. Has various side-effects during tests due to global state. | |||
2023-06-24 | ci: Kill remaining qt6-v2 references | Florian Bruhin | |
2023-06-23 | tests: Add a test for implicit Qt init | Florian Bruhin | |
2023-06-19 | Merge pull request #7749 from qutebrowser/update-dependencies | Florian Bruhin | |
Update dependencies | |||
2023-06-19 | Update changelog URLs | Florian Bruhin | |
2023-06-19 | Update dependencies | qutebrowser bot | |
2023-06-16 | tests: Update warning ignores | Florian Bruhin | |
2023-06-15 | scripts: Allow --pyqt-version in mkvenv with --pyqt-type wheels | Florian Bruhin | |
To adjust which version to use for the smoketest | |||
2023-06-15 | tests: Widen xfail range for ELF to Qt 6.6+ | Florian Bruhin | |
2023-06-15 | scripts: Check if PyQt wheels directory exists | Florian Bruhin | |
2023-06-15 | Update docs | Florian Bruhin | |