summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-06-30 11:55:29 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-06-30 11:59:45 +0200
commit4cf2eea5809a987170c15f42003088fc019ef207 (patch)
tree54adca81c9abd91ae02bf44d54b65ec80b624823
parent43fc49e5ad7938462e319e862ff0988ac62ef4ce (diff)
downloadqutebrowser-qt6-mypy.tar.gz
qutebrowser-qt6-mypy.zip
qt6 mypy: Fix lintqt6-mypy
-rw-r--r--qutebrowser/utils/log.py1
-rw-r--r--scripts/dev/changelog_urls.json1
-rw-r--r--scripts/dev/misc_checks.py3
-rwxr-xr-xscripts/dev/run_vulture.py2
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)