From 4cf2eea5809a987170c15f42003088fc019ef207 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 30 Jun 2023 11:55:29 +0200 Subject: qt6 mypy: Fix lint --- qutebrowser/utils/log.py | 1 - scripts/dev/changelog_urls.json | 1 + scripts/dev/misc_checks.py | 3 +++ scripts/dev/run_vulture.py | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index f3363e8a2..5f7039af0 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -44,7 +44,6 @@ except ImportError: if TYPE_CHECKING: from qutebrowser.config import config as configmodule - from typing import TextIO _log_inited = False _args = None diff --git a/scripts/dev/changelog_urls.json b/scripts/dev/changelog_urls.json index 5d7b13e28..baf9e2583 100644 --- a/scripts/dev/changelog_urls.json +++ b/scripts/dev/changelog_urls.json @@ -104,6 +104,7 @@ "PyQt-builder": "https://www.riverbankcomputing.com/news", "PyQt5-sip": "https://www.riverbankcomputing.com/news", "PyQt5-stubs": "https://github.com/python-qt-tools/PyQt5-stubs/blob/master/CHANGELOG.md", + "PyQt6-stubs": "https://github.com/python-qt-tools/PyQt6-stubs/commits/main", "sip": "https://www.riverbankcomputing.com/news", "PyQt6": "https://www.riverbankcomputing.com/news", "PyQt6-Qt6": "https://www.riverbankcomputing.com/news", diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index 044603468..a66dd68fe 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -94,6 +94,9 @@ def check_changelog_urls(_args: argparse.Namespace = None) -> bool: req, _version = recompile_requirements.parse_versioned_line(line) if req.startswith('./'): continue + if " @ " in req: # vcs URL + req = req.split(" @ ")[0] + all_requirements.add(req) if req not in recompile_requirements.CHANGELOG_URLS: missing.add(req) diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index eb74a4258..c53fe4a8f 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -194,7 +194,7 @@ def run(files): vult = vulture.Vulture(verbose=False) vult.scavenge( files + [whitelist_file.name], - exclude="qutebrowser/qt/_core_pyqtproperty.py", + exclude=["qutebrowser/qt/_core_pyqtproperty.py"], ) os.remove(whitelist_file.name) -- cgit v1.2.3-54-g00ecf