id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,600 | test_prompts_bdd.py | qutebrowser_qutebrowser/tests/end2end/features/test_prompts_bdd.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
import pytest_bdd as bdd
bdd.scenarios('prompts.feature')
@bdd.when("I load an SSL page")
def load_ssl_page(quteproc, ssl_server):
# We don't wait here as we can get an SSL... | 2,951 | Python | .py | 55 | 44.872727 | 88 | 0.660522 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,601 | test_javascript_bdd.py | qutebrowser_qutebrowser/tests/end2end/features/test_javascript_bdd.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os.path
import pytest_bdd as bdd
bdd.scenarios('javascript.feature')
@bdd.then("the window sizes should be the same")
def check_window_sizes(quteproc):
hidden = quteproc.wait_for_j... | 1,753 | Python | .py | 45 | 33.444444 | 78 | 0.657647 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,602 | test_private_bdd.py | qutebrowser_qutebrowser/tests/end2end/features/test_private_bdd.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import json
import pytest_bdd as bdd
bdd.scenarios('private.feature')
@bdd.then(bdd.parsers.parse('the cookie {name} should be set to {value}'))
def check_cookie(quteproc, name, value):
"... | 1,012 | Python | .py | 26 | 35.423077 | 78 | 0.712385 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,603 | test_backforward_bdd.py | qutebrowser_qutebrowser/tests/end2end/features/test_backforward_bdd.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import pytest_bdd as bdd
bdd.scenarios('backforward.feature')
| 188 | Python | .py | 5 | 36.4 | 78 | 0.802198 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,604 | test_runners_e2e.py | qutebrowser_qutebrowser/tests/end2end/misc/test_runners_e2e.py | # SPDX-FileCopyrightText: Jay Kamat <jaygkamat@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Tests for runners."""
import logging
import pytest
def command_expansion_base(
quteproc, send_msg, recv_msg, url="data/hello.txt"):
quteproc.open_path(url)
quteproc.send_cmd(':message-info ' +... | 2,372 | Python | .py | 54 | 38.148148 | 89 | 0.65754 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,605 | webserver_sub.py | qutebrowser_qutebrowser/tests/end2end/fixtures/webserver_sub.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Web server for end2end tests.
This script gets called as a QProcess from end2end/conftest.py.
Some of the handlers here are inspired by the server project, but simplified
for qutebrowser's ... | 10,173 | Python | .py | 269 | 32.758364 | 87 | 0.674748 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,606 | webserver.py | qutebrowser_qutebrowser/tests/end2end/fixtures/webserver.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Fixtures for the server webserver."""
import re
import sys
import json
import pathlib
import socket
import dataclasses
from http import HTTPStatus
import pytest
from qutebrowser.qt.core imp... | 7,328 | Python | .py | 181 | 32.259669 | 87 | 0.621862 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,607 | testprocess.py | qutebrowser_qutebrowser/tests/end2end/fixtures/testprocess.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Base class for a subprocess run for tests."""
import re
import time
import warnings
import dataclasses
import pytest
import pytestqt.wait_signal
from qutebrowser.qt.core import (pyqtSlot, p... | 17,025 | Python | .py | 396 | 32.232323 | 86 | 0.593415 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,608 | webserver_sub_ssl.py | qutebrowser_qutebrowser/tests/end2end/fixtures/webserver_sub_ssl.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Minimal flask webserver serving a Hello World via SSL.
This script gets called as a QProcess from end2end/conftest.py.
"""
import sys
import flask
import webserver_sub
import cheroot.ssl.... | 1,352 | Python | .py | 40 | 30.325 | 78 | 0.70287 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,609 | notificationserver.py | qutebrowser_qutebrowser/tests/end2end/fixtures/notificationserver.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import dataclasses
import itertools
from qutebrowser.qt.core import QObject, QByteArray, QUrl, pyqtSlot
from qutebrowser.qt.gui import QImage
from qutebrowser.qt.dbus import QDBusConnection, QD... | 8,879 | Python | .py | 195 | 36.717949 | 99 | 0.653815 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,610 | test_webserver.py | qutebrowser_qutebrowser/tests/end2end/fixtures/test_webserver.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Test the server webserver used for tests."""
import json
import urllib.request
import urllib.error
from http import HTTPStatus
import pytest
@pytest.mark.parametrize('path, content, expec... | 3,175 | Python | .py | 67 | 41.671642 | 79 | 0.606002 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,611 | quteprocess.py | qutebrowser_qutebrowser/tests/end2end/fixtures/quteprocess.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Fixtures to run qutebrowser in a QProcess and communicate."""
import pathlib
import os
import re
import sys
import time
import datetime
import logging
import tempfile
import contextlib
impor... | 40,632 | Python | .py | 821 | 38.813642 | 164 | 0.608394 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,612 | test_quteprocess.py | qutebrowser_qutebrowser/tests/end2end/fixtures/test_quteprocess.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Test the quteproc fixture used for tests."""
import logging
import datetime
import json
import pytest
from end2end.fixtures import quteprocess, testprocess
from qutebrowser.utils import lo... | 12,996 | Python | .py | 291 | 37.450172 | 150 | 0.623209 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,613 | test_testprocess.py | qutebrowser_qutebrowser/tests/end2end/fixtures/test_testprocess.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Test testprocess.Process."""
import sys
import time
import contextlib
import datetime
import pytest
from qutebrowser.qt.core import QProcess
from end2end.fixtures import testprocess
pytes... | 8,229 | Python | .py | 201 | 33.527363 | 79 | 0.650853 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,614 | testutils.py | qutebrowser_qutebrowser/tests/helpers/testutils.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Various utilities used inside tests."""
import io
import re
import enum
import gzip
import pprint
import os.path
import contextlib
import pathlib
import importlib.util
import importlib.machi... | 8,840 | Python | .py | 226 | 32.623894 | 86 | 0.652322 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,615 | messagemock.py | qutebrowser_qutebrowser/tests/helpers/messagemock.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""pytest helper to monkeypatch the message module."""
import logging
import pytest
from qutebrowser.qt.core import pyqtSlot, pyqtSignal, QObject
from qutebrowser.utils import usertypes, mess... | 2,790 | Python | .py | 71 | 32.014085 | 78 | 0.674824 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,616 | fixtures.py | qutebrowser_qutebrowser/tests/helpers/fixtures.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# pylint: disable=invalid-name
"""pytest fixtures used by the whole testsuite.
See https://pytest.org/latest/fixture.html
"""
import sys
import tempfile
import itertools
import textwrap
impo... | 22,370 | Python | .py | 554 | 34.608303 | 90 | 0.704569 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,617 | stubs.py | qutebrowser_qutebrowser/tests/helpers/stubs.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# pylint: disable=abstract-method
"""Fake objects/stubs."""
from typing import Any
from collections.abc import Callable
from unittest import mock
import contextlib
import shutil
import datacla... | 19,769 | Python | .py | 521 | 29.81382 | 87 | 0.633225 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,618 | test_helper_utils.py | qutebrowser_qutebrowser/tests/helpers/test_helper_utils.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import pytest
from helpers import testutils
from qutebrowser.qt.widgets import QFrame
@pytest.mark.parametrize('val1, val2', [
({'a': 1}, {'a': 1}),
({'a': 1, 'b': 2}, {'a': 1}),
... | 2,329 | Python | .py | 59 | 35.084746 | 78 | 0.579858 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,619 | test_logfail.py | qutebrowser_qutebrowser/tests/helpers/test_logfail.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Tests for the LogFailHandler test helper."""
import logging
import pytest
def test_log_debug():
logging.debug('foo')
def test_log_warning():
with pytest.raises(pytest.fail.Exce... | 1,261 | Python | .py | 32 | 33.96875 | 78 | 0.715111 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,620 | test_stubs.py | qutebrowser_qutebrowser/tests/helpers/test_stubs.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Test test stubs."""
from unittest import mock
import pytest
@pytest.fixture
def timer(stubs):
return stubs.FakeTimer()
def test_timeout(timer):
"""Test whether timeout calls the... | 2,192 | Python | .py | 70 | 26.814286 | 78 | 0.706806 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,621 | logfail.py | qutebrowser_qutebrowser/tests/helpers/logfail.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Logging handling for the tests."""
import logging
import pytest
class LogFailHandler(logging.Handler):
"""A logging handler which makes tests fail on unexpected messages."""
def... | 1,309 | Python | .py | 32 | 33 | 78 | 0.644269 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,622 | requirements-mypy.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-mypy.txt-raw | mypy
lxml # For HTML reports
diff-cover
PyQt5-stubs
types-PyYAML
types-colorama
types-Pygments
| 97 | Python | .py | 7 | 12.714286 | 24 | 0.876404 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,623 | requirements-pyqt-6.7.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.7.txt-raw | PyQt6 >= 6.7, < 6.8
PyQt6-Qt6 >= 6.7, < 6.8
PyQt6-WebEngine >= 6.7, < 6.8
PyQt6-WebEngine-Qt6 >= 6.7, < 6.8
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,624 | requirements-pylint.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pylint.txt-raw | pylint
astroid
./scripts/dev/pylint_checkers
requests
github3.py
pefile
# fix qute-pylint location
#@ replace: qute[_-]pylint.* ./scripts/dev/pylint_checkers
# Already included via test requirements
#@ ignore: urllib3
| 220 | Python | .py | 10 | 20.8 | 58 | 0.8125 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,625 | requirements-mypy.txt | qutebrowser_qutebrowser/misc/requirements/requirements-mypy.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
chardet==5.2.0
diff_cover==9.2.0
Jinja2==3.1.4
lxml==5.3.0
MarkupSafe==3.0.2
mypy==1.12.1
mypy-extensions==1.0.0
pluggy==1.5.0
Pygments==2.18.0
PyQt5-stubs==5.15.6.0
tomli==2.0.2
types-colorama==0.4.15.20240311
types-docutils==0.21.0.20241... | 446 | Python | .py | 18 | 23.722222 | 79 | 0.777518 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,626 | requirements-pyqt.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.7.1
PyQt6-Qt6==6.7.3
PyQt6-WebEngine==6.7.0
PyQt6-WebEngine-Qt6==6.7.3
PyQt6-WebEngineSubwheel-Qt6==6.7.3
PyQt6_sip==13.8.0
| 214 | Python | .py | 7 | 29.428571 | 79 | 0.791262 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,627 | requirements-pyqt-6.6.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.6.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.6.1
PyQt6-Qt6==6.6.3
PyQt6-WebEngine==6.6.0
PyQt6-WebEngine-Qt6==6.6.3
PyQt6_sip==13.8.0
| 179 | Python | .py | 6 | 28.666667 | 79 | 0.784884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,628 | requirements-pyroma.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyroma.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
build==1.2.2.post1
certifi==2024.8.30
charset-normalizer==3.4.0
docutils==0.21.2
idna==3.10
importlib_metadata==8.5.0
packaging==24.1
Pygments==2.18.0
pyproject_hooks==1.2.0
pyroma==4.2
requests==2.32.3
tomli==2.0.2
trove-classifiers==2024... | 355 | Python | .py | 16 | 21.125 | 79 | 0.781065 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,629 | requirements-pyqt-5.15.2.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-5.15.2.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt5==5.15.2 # rq.filter: == 5.15.2
PyQt5_sip==12.15.0
PyQtWebEngine==5.15.2 # rq.filter: == 5.15.2
| 184 | Python | .py | 4 | 44.75 | 79 | 0.726257 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,630 | requirements-pyqt-6.4.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.4.txt-raw | PyQt6 >= 6.4, < 6.5
PyQt6-Qt6 >= 6.4, < 6.5
PyQt6-WebEngine >= 6.4, < 6.5
PyQt6-WebEngine-Qt6 >= 6.4, < 6.5
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,631 | requirements-pyqt-5.15.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-5.15.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt5==5.15.11 # rq.filter: < 5.16
PyQt5-Qt5==5.15.15
PyQt5_sip==12.15.0
PyQtWebEngine==5.15.7 # rq.filter: < 5.16
PyQtWebEngine-Qt5==5.15.15
| 225 | Python | .py | 6 | 36.333333 | 79 | 0.747706 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,632 | requirements-pyqt-6.7.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.7.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.7.1
PyQt6-Qt6==6.7.3
PyQt6-WebEngine==6.7.0
PyQt6-WebEngine-Qt6==6.7.3
PyQt6-WebEngineSubwheel-Qt6==6.7.3
PyQt6_sip==13.8.0
| 214 | Python | .py | 7 | 29.428571 | 79 | 0.791262 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,633 | requirements-pyqt-5.15.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-5.15.txt-raw | #@ filter: PyQt5 < 5.16
#@ filter: PyQtWebEngine < 5.16
PyQt5 >= 5.15, < 5.16
PyQtWebEngine >= 5.15, < 5.16
| 108 | Python | .py | 4 | 26 | 31 | 0.634615 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,634 | requirements-pyqt-6.5.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.5.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.5.3
PyQt6-Qt6==6.5.3
PyQt6-WebEngine==6.5.0
PyQt6-WebEngine-Qt6==6.5.3
PyQt6_sip==13.8.0
| 179 | Python | .py | 6 | 28.666667 | 79 | 0.784884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,635 | requirements-pyqt-6.2.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.2.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.2.3
PyQt6-Qt6==6.2.4
PyQt6-WebEngine==6.2.1
PyQt6-WebEngine-Qt6==6.2.4
PyQt6_sip==13.8.0
| 179 | Python | .py | 6 | 28.666667 | 79 | 0.784884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,636 | requirements-pyqt-6.6.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.6.txt-raw | PyQt6 >= 6.6, < 6.7
PyQt6-Qt6 >= 6.6, < 6.7
PyQt6-WebEngine >= 6.6, < 6.7
PyQt6-WebEngine-Qt6 >= 6.6, < 6.7
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,637 | requirements-pyqt-5.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-5.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt5==5.15.11
PyQt5-Qt5==5.15.15
PyQt5_sip==12.15.0
PyQtWebEngine==5.15.7
PyQtWebEngine-Qt5==5.15.15
| 183 | Python | .py | 6 | 29.333333 | 79 | 0.801136 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,638 | requirements-pyqt-6.3.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.3.txt-raw | PyQt6 >= 6.3, < 6.4
PyQt6-Qt6 >= 6.3, < 6.4
PyQt6-WebEngine >= 6.3, < 6.4
PyQt6-WebEngine-Qt6 >= 6.3, < 6.4
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,639 | requirements-pyqt-6.3.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.3.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.3.1
PyQt6-Qt6==6.3.2
PyQt6-WebEngine==6.3.1
PyQt6-WebEngine-Qt6==6.3.2
PyQt6_sip==13.8.0
| 179 | Python | .py | 6 | 28.666667 | 79 | 0.784884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,640 | requirements-pyqt-6.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.7.1
PyQt6-Qt6==6.7.3
PyQt6-WebEngine==6.7.0
PyQt6-WebEngine-Qt6==6.7.3
PyQt6-WebEngineSubwheel-Qt6==6.7.3
PyQt6_sip==13.8.0
| 214 | Python | .py | 7 | 29.428571 | 79 | 0.791262 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,641 | requirements-pyqt-6.2.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.2.txt-raw | PyQt6 >= 6.2, < 6.3
PyQt6-Qt6 >= 6.2, < 6.3
PyQt6-WebEngine >= 6.2, < 6.3
PyQt6-WebEngine-Qt6 >= 6.2, < 6.3
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,642 | requirements-pyinstaller.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyinstaller.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
altgraph==0.17.4
importlib_metadata==8.5.0
packaging==24.1
pyinstaller==6.11.0
pyinstaller-hooks-contrib==2024.9
zipp==3.20.2
| 207 | Python | .py | 7 | 28.428571 | 79 | 0.81407 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,643 | requirements-pyqt-6.4.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.4.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
PyQt6==6.4.2
PyQt6-Qt6==6.4.3
PyQt6-WebEngine==6.4.0
PyQt6-WebEngine-Qt6==6.4.3
PyQt6_sip==13.8.0
| 179 | Python | .py | 6 | 28.666667 | 79 | 0.784884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,644 | requirements-pyqt-6.5.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-6.5.txt-raw | PyQt6 >= 6.5, < 6.6
PyQt6-Qt6 >= 6.5, < 6.6
PyQt6-WebEngine >= 6.5, < 6.6
PyQt6-WebEngine-Qt6 >= 6.5, < 6.6
| 108 | Python | .py | 4 | 26 | 33 | 0.576923 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,645 | requirements-pylint.txt | qutebrowser_qutebrowser/misc/requirements/requirements-pylint.txt | # This file is automatically generated by scripts/dev/recompile_requirements.py
astroid==3.3.5
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.4.0
cryptography==43.0.3
dill==0.3.9
github3.py==4.0.1
idna==3.10
isort==5.13.2
mccabe==0.7.0
pefile==2024.8.26
platformdirs==4.3.6
pycparser==2.22
PyJWT==2.9.0
pylint==3... | 504 | Python | .py | 25 | 19.12 | 79 | 0.761506 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,646 | requirements-pyqt-5.15.2.txt-raw | qutebrowser_qutebrowser/misc/requirements/requirements-pyqt-5.15.2.txt-raw | #@ filter: PyQt5 == 5.15.2
#@ filter: PyQtWebEngine == 5.15.2
PyQt5 == 5.15.2
PyQtWebEngine == 5.15.2
| 102 | Python | .py | 4 | 24.5 | 34 | 0.653061 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,647 | conf.py | qutebrowser_qutebrowser/doc/extapi/conf.py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# https://www.sphinx-doc.org/en/master/config
# -- Path setup -----------------------------------------------------------... | 5,439 | Python | .py | 133 | 38.887218 | 85 | 0.670532 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,648 | importer.py | qutebrowser_qutebrowser/scripts/importer.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Claude (longneck) <longneck@scratchbook.ch>
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Tool to import data from other browsers.
Currently importing bookmarks from Netscape HTML Bookm... | 11,264 | Python | .py | 293 | 29.303754 | 93 | 0.581017 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,649 | link_pyqt.py | qutebrowser_qutebrowser/scripts/link_pyqt.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Symlink PyQt into a given virtualenv."""
import os
import os.path
import argparse
import shutil
import sys
import subprocess
import tempfile
import filecmp
import js... | 7,188 | Python | .py | 184 | 31.277174 | 82 | 0.608533 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,650 | asciidoc2html.py | qutebrowser_qutebrowser/scripts/asciidoc2html.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Generate the html documentation based on the asciidoc files."""
from typing import Optional
import re
import os
import sys
import subprocess
import shutil
import tem... | 9,618 | Python | .py | 225 | 31.737778 | 107 | 0.553201 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,651 | utils.py | qutebrowser_qutebrowser/scripts/utils.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Utility functions for scripts."""
import os
import os.path
import sys
import contextlib
# Import side-effects are an evil thing, but here it's okay so scripts using
# colors work on Windo... | 2,105 | Python | .py | 74 | 23.864865 | 78 | 0.61 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,652 | hostblock_blame.py | qutebrowser_qutebrowser/scripts/hostblock_blame.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Check by which hostblock list a host was blocked."""
import sys
import io
import os
import os.path
import urllib.request
sys.path.insert(0, os.path.join(os.path.dirn... | 1,164 | Python | .py | 31 | 31.83871 | 78 | 0.643811 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,653 | hist_importer.py | qutebrowser_qutebrowser/scripts/hist_importer.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Josefson Souza <josefson.br@gmail.com>
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Tool to import browser history from other browsers."""
import argparse
import sqlite3
import sys
im... | 5,440 | Python | .py | 129 | 33.992248 | 79 | 0.633024 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,654 | setupcommon.py | qutebrowser_qutebrowser/scripts/setupcommon.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Data used by setup.py and the PyInstaller qutebrowser.spec."""
import sys
import os
import os.path
import subprocess
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
... | 1,861 | Python | .py | 49 | 31.734694 | 78 | 0.634594 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,655 | opengl_info.py | qutebrowser_qutebrowser/scripts/opengl_info.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Show information about the OpenGL setup."""
from PyQt6.QtGui import QOpenGLContext, QOffscreenSurface, QGuiApplication
from PyQt6.QtOpenGL import QOpenGLVersionProfi... | 916 | Python | .py | 24 | 36.666667 | 84 | 0.795455 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,656 | dictcli.py | qutebrowser_qutebrowser/scripts/dictcli.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Michal Siedlaczek <michal.siedlaczek@gmail.com>
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A script installing Hunspell dictionaries.
Use: python -m scripts.dictcli [-h] {list,update... | 8,150 | Python | .py | 200 | 33.685 | 93 | 0.658391 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,657 | keytester.py | qutebrowser_qutebrowser/scripts/keytester.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Small test script to show key presses.
Use python3 -m scripts.keytester to launch it.
"""
from qutebrowser.qt.widgets import QApplication
from qutebrowser.misc impo... | 413 | Python | .py | 13 | 30.307692 | 78 | 0.791878 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,658 | mkvenv.py | qutebrowser_qutebrowser/scripts/mkvenv.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Create a local virtualenv with a PyQt install."""
import argparse
import pathlib
import sys
import re
import os
import os.path
import shutil
import venv as pyvenv
im... | 19,806 | Python | .py | 452 | 35.535398 | 87 | 0.619562 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,659 | change_release.py | qutebrowser_qutebrowser/scripts/dev/change_release.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Change a description of a GitHub release."""
import sys
import argparse
import os.path
import github3
import github3.exceptions
class Error(Exception):
"""Rai... | 1,953 | Python | .py | 55 | 30.618182 | 78 | 0.679104 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,660 | check_coverage.py | qutebrowser_qutebrowser/scripts/dev/check_coverage.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Enforce perfect coverage on some files."""
import os
import os.path
import sys
import enum
import subprocess
import dataclasses
from xml.etree import ElementTree
sy... | 12,784 | Python | .py | 310 | 34.435484 | 84 | 0.664464 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,661 | gen_versioninfo.py | qutebrowser_qutebrowser/scripts/dev/gen_versioninfo.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Generate file_version_info.txt for Pyinstaller use with Windows builds."""
import os.path
import sys
# pylint: disable=import-error,no-member,useless-suppression
fro... | 2,467 | Python | .py | 54 | 37.518519 | 78 | 0.65025 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,662 | misc_checks.py | qutebrowser_qutebrowser/scripts/dev/misc_checks.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Various small code checkers."""
import os
import os.path
import re
import sys
import argparse
import subprocess
import tokenize
import traceback
import pathlib
from t... | 14,651 | Python | .py | 389 | 28.313625 | 88 | 0.557927 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,663 | rewrite_enums.py | qutebrowser_qutebrowser/scripts/dev/rewrite_enums.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Rewrite PyQt enums based on rewrite_find_enums.py output."""
import pathlib
import sys
import re
script_path = pathlib.Path(__file__).parent
replacements = []
with (script_path / 'enums.t... | 848 | Python | .py | 23 | 32.608696 | 78 | 0.690709 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,664 | standardpaths_tester.py | qutebrowser_qutebrowser/scripts/dev/standardpaths_tester.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Show various QStandardPath paths."""
import os
import sys
from PyQt6.QtCore import (QT_VERSION_STR, PYQT_VERSION_STR, qVersion,
QStandardPa... | 1,325 | Python | .py | 39 | 28.717949 | 78 | 0.643307 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,665 | check_doc_changes.py | qutebrowser_qutebrowser/scripts/dev/check_doc_changes.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Check if docs changed and output an error if so."""
import sys
import subprocess
import os
import os.path
sys.path.insert(0, os.path.join(os.path.dirname(__file__),... | 1,225 | Python | .py | 32 | 32.46875 | 78 | 0.633446 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,666 | get_coredumpctl_traces.py | qutebrowser_qutebrowser/scripts/dev/get_coredumpctl_traces.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Get qutebrowser crash information and stacktraces from coredumpctl."""
import os
import os.path
import sys
import argparse
import subprocess
import tempfile
import d... | 4,562 | Python | .py | 130 | 27.1 | 78 | 0.588182 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,667 | build_pyqt_wheel.py | qutebrowser_qutebrowser/scripts/dev/build_pyqt_wheel.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Build updated PyQt wheels."""
import os
import subprocess
import argparse
import sys
import pathlib
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.par... | 2,520 | Python | .py | 65 | 30.923077 | 78 | 0.617345 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,668 | run_pylint_on_tests.py | qutebrowser_qutebrowser/scripts/dev/run_pylint_on_tests.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Run pylint on tests.
This is needed because pylint can't check a folder which isn't a package:
https://bitbucket.org/logilab/pylint/issue/512/
"""
import os
import ... | 2,048 | Python | .py | 62 | 26.419355 | 78 | 0.607107 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,669 | run_vulture.py | qutebrowser_qutebrowser/scripts/dev/run_vulture.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Run vulture on the source files and filter out false-positives."""
import sys
import os
import re
import tempfile
import inspect
import argparse
import vulture
impo... | 7,787 | Python | .py | 170 | 39.788235 | 87 | 0.717173 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,670 | run_profile.py | qutebrowser_qutebrowser/scripts/dev/run_profile.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Profile qutebrowser."""
import sys
import cProfile
import os.path
import os
import tempfile
import subprocess
import shutil
import argparse
import shlex
sys.path.ins... | 2,842 | Python | .py | 70 | 32.342857 | 78 | 0.62441 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,671 | update_version.py | qutebrowser_qutebrowser/scripts/dev/update_version.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Andy Mender <andymenderunix@gmail.com>
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Update version numbers using bump2version."""
import re
import sys
import argparse
import os.path
im... | 3,551 | Python | .py | 84 | 34 | 81 | 0.599884 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,672 | rewrite_find_enums.py | qutebrowser_qutebrowser/scripts/dev/rewrite_find_enums.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Find all PyQt enum instances."""
import pathlib
import ast
import PyQt5
def find_enums(tree):
"""Find all PyQt enums in an AST tree."""
for node in ast.walk(tree):
if not... | 1,351 | Python | .py | 41 | 25.365854 | 78 | 0.578462 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,673 | ua_fetch.py | qutebrowser_qutebrowser/scripts/dev/ua_fetch.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Fetch and print the most common user agents.
This script fetches the most common user agents according to
https://github.com/microlinkhq/top-user-agents, and prints t... | 2,409 | Python | .py | 58 | 36.62069 | 110 | 0.676672 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,674 | rewrite_find_flags.py | qutebrowser_qutebrowser/scripts/dev/rewrite_find_flags.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Find all PyQt flag instances."""
import pathlib
import ast
import PyQt5
def find_flags(tree):
"""Find all PyQt flags in an AST tree."""
for node in ast.walk(tree):
if not ... | 1,677 | Python | .py | 48 | 26.875 | 78 | 0.608075 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,675 | build_release.py | qutebrowser_qutebrowser/scripts/dev/build_release.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Build a new release."""
import os
import sys
import time
import shutil
import pathlib
import subprocess
import argparse
import tarfile
import tempfile
import platfor... | 22,649 | Python | .py | 594 | 29.483165 | 125 | 0.59604 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,676 | cleanup.py | qutebrowser_qutebrowser/scripts/dev/cleanup.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Script to clean up the mess made by Python/setuptools/PyInstaller."""
import os
import os.path
import sys
import glob
import shutil
import fnmatch
sys.path.insert(0,... | 1,505 | Python | .py | 41 | 30.682927 | 78 | 0.62069 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,677 | src2asciidoc.py | qutebrowser_qutebrowser/scripts/dev/src2asciidoc.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Generate asciidoc source for qutebrowser based on docstrings."""
import os
import os.path
import sys
import shutil
import inspect
import subprocess
import tempfile
i... | 20,594 | Python | .py | 491 | 33.09776 | 100 | 0.595424 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,678 | recompile_requirements.py | qutebrowser_qutebrowser/scripts/dev/recompile_requirements.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Script to regenerate requirements files in misc/requirements."""
import re
import sys
import os.path
import glob
import json
import subprocess
import tempfile
import ... | 15,082 | Python | .py | 370 | 31.859459 | 88 | 0.577186 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,679 | update_3rdparty.py | qutebrowser_qutebrowser/scripts/dev/update_3rdparty.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Daniel Schadt
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Update all third-party-modules."""
import argparse
import urllib.request
import urllib.error
import shutil
import json
import ... | 8,177 | Python | .py | 183 | 36.431694 | 85 | 0.628392 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,680 | problemmatchers.py | qutebrowser_qutebrowser/scripts/dev/ci/problemmatchers.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Register problem matchers for GitHub Actions.
Relevant docs:
https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
https://github.com/actions/toolk... | 7,295 | Python | .py | 210 | 21.771429 | 248 | 0.399433 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,681 | generate.py | qutebrowser_qutebrowser/scripts/dev/ci/docker/generate.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Generate Dockerfiles for qutebrowser's CI."""
import sys
import argparse
import jinja2
CONFIGS = {
'archlinux-webkit': {'webengine': False, 'unstable': False,... | 1,120 | Python | .py | 27 | 37.296296 | 91 | 0.675626 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,682 | setup.py | qutebrowser_qutebrowser/scripts/dev/pylint_checkers/setup.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""This is only here so we can install those plugins in tox.ini easily."""
from setuptools import setup
setup(name='qute_pylint', packages=['qute_pylint'])
| 307 | Python | .py | 7 | 42.428571 | 78 | 0.767677 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,683 | config.py | qutebrowser_qutebrowser/scripts/dev/pylint_checkers/qute_pylint/config.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Custom astroid checker for config calls."""
import sys
import pathlib
import yaml
import astroid
from pylint import interfaces, checkers
from pylint.checkers import utils
OPTIONS = None
F... | 2,508 | Python | .py | 64 | 30.921875 | 78 | 0.626595 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,684 | testbrowser_webengine.py | qutebrowser_qutebrowser/scripts/testbrowser/testbrowser_webengine.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Very simple browser for testing purposes."""
import sys
import argparse
try:
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from ... | 1,226 | Python | .py | 33 | 32.545455 | 79 | 0.715736 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,685 | testbrowser_webkit.py | qutebrowser_qutebrowser/scripts/testbrowser/testbrowser_webkit.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Very simple browser for testing purposes."""
import sys
import argparse
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKit im... | 1,176 | Python | .py | 30 | 34.733333 | 79 | 0.715168 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,686 | __main__.py | qutebrowser_qutebrowser/qutebrowser/__main__.py | #!/usr/bin/env python3
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Simple launcher for qutebrowser."""
import sys
import qutebrowser.qutebrowser
if __name__ == '__main__':
sys.exit(qutebrowser.qutebrowser.main())
| 307 | Python | .py | 9 | 32 | 78 | 0.753425 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,687 | app.py | qutebrowser_qutebrowser/qutebrowser/app.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Initialization of qutebrowser and application-wide things.
The run() function will get called once early initialization (in
qutebrowser.py/earlyinit.py) is done. See the qutebrowser.py docst... | 20,668 | Python | .py | 463 | 36.63067 | 86 | 0.669821 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,688 | __init__.py | qutebrowser_qutebrowser/qutebrowser/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A keyboard-driven, vim-like browser based on Python and Qt."""
import os.path
import datetime
_year = datetime.date.today().year
__author__ = "Florian Bruhin"
__copyright__ = "Copyright 20... | 682 | Python | .py | 16 | 41.3125 | 79 | 0.708018 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,689 | qutebrowser.py | qutebrowser_qutebrowser/qutebrowser/qutebrowser.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Early initialization and main entry point.
qutebrowser's initialization process roughly looks like this:
- This file gets imported, either via the setuptools entry point or
__main__.py.
... | 10,191 | Python | .py | 203 | 38.847291 | 91 | 0.600462 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,690 | interceptors.py | qutebrowser_qutebrowser/qutebrowser/extensions/interceptors.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Infrastructure for intercepting requests."""
import enum
import dataclasses
from typing import Optional
from collections.abc import Callable
from qutebrowser.qt.core import QUrl
class Res... | 2,648 | Python | .py | 73 | 30.712329 | 85 | 0.698743 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,691 | loader.py | qutebrowser_qutebrowser/qutebrowser/extensions/loader.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Loader for qutebrowser extensions."""
import pkgutil
import types
import pathlib
import importlib
import argparse
import dataclasses
from typing import Optional
from collections.abc import I... | 4,317 | Python | .py | 109 | 32.66055 | 84 | 0.672426 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,692 | configfiles.py | qutebrowser_qutebrowser/qutebrowser/config/configfiles.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Configuration files residing on disk."""
import enum
import pathlib
import types
import os.path
import sys
import textwrap
import traceback
import configparser
import contextlib
import re
fr... | 39,751 | Python | .py | 865 | 34.416185 | 122 | 0.588135 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,693 | configdata.py | qutebrowser_qutebrowser/qutebrowser/config/configdata.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Configuration data for config.py.
Module attributes:
DATA: A dict of Option objects after init() has been called.
"""
from typing import (Any, Optional, Union, NoReturn, cast)
from collect... | 7,923 | Python | .py | 206 | 31.393204 | 79 | 0.641263 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,694 | stylesheet.py | qutebrowser_qutebrowser/qutebrowser/config/stylesheet.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Handling of Qt qss stylesheets."""
import functools
from typing import Optional
from qutebrowser.qt.core import pyqtSlot, QObject
from qutebrowser.qt.widgets import QWidget
from qutebrowse... | 3,378 | Python | .py | 79 | 34.886076 | 86 | 0.65873 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,695 | config.py | qutebrowser_qutebrowser/qutebrowser/config/config.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Configuration storage and config-related utilities."""
import copy
import contextlib
import functools
from typing import (TYPE_CHECKING, Any, Optional, cast)
from collections.abc import Iter... | 24,271 | Python | .py | 539 | 34.356215 | 88 | 0.597349 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,696 | configutils.py | qutebrowser_qutebrowser/qutebrowser/config/configutils.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Utilities and data structures used by various config code."""
import collections
import itertools
import operator
from typing import (
TYPE_CHECKING, Any, Optional, Union)
from collecti... | 12,225 | Python | .py | 262 | 36.927481 | 88 | 0.619096 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,697 | configcommands.py | qutebrowser_qutebrowser/qutebrowser/config/configcommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Commands related to the configuration."""
import os.path
import contextlib
from typing import TYPE_CHECKING, Optional, Any
from collections.abc import Iterator
from qutebrowser.qt.core impo... | 19,556 | Python | .py | 409 | 35.535452 | 88 | 0.590105 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,698 | configcache.py | qutebrowser_qutebrowser/qutebrowser/config/configcache.py | # SPDX-FileCopyrightText: Jay Kamat <jaygkamat@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Implementation of a basic config cache."""
from typing import Any
from qutebrowser.config import config
class ConfigCache:
"""A 'high-performance' cache for the config system.
Useful for areas which... | 1,139 | Python | .py | 27 | 35.592593 | 78 | 0.676658 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,699 | __init__.py | qutebrowser_qutebrowser/qutebrowser/config/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Modules related to the configuration."""
| 170 | Python | .py | 4 | 41.25 | 78 | 0.775758 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |