Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: [pre-commit.ci] autoupdate #257

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.8.1
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.20.2
rev: v0.23
hooks:
- id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy
exclude: tests|examples
Expand Down
10 changes: 5 additions & 5 deletions src/superqt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
from .utils import QMessageHandler, ensure_main_thread, ensure_object_thread

__all__ = [
"ensure_main_thread",
"ensure_object_thread",
"QCollapsible",
"QColorComboBox",
"QColormapComboBox",
Expand All @@ -36,8 +34,8 @@
"QElidingLabel",
"QElidingLineEdit",
"QEnumComboBox",
"QLabeledDoubleRangeSlider",
"QIconifyIcon",
"QLabeledDoubleRangeSlider",
"QLabeledDoubleSlider",
"QLabeledRangeSlider",
"QLabeledSlider",
Expand All @@ -48,11 +46,13 @@
"QSearchableComboBox",
"QSearchableListWidget",
"QSearchableTreeWidget",
"ensure_main_thread",
"ensure_object_thread",
]

if TYPE_CHECKING:
from .combobox import QColormapComboBox # noqa: TCH004
from .spinbox._quantity import QQuantity # noqa: TCH004
from .combobox import QColormapComboBox # noqa: TC004
from .spinbox._quantity import QQuantity # noqa: TC004


def __getattr__(name: str) -> Any:
Expand Down
6 changes: 3 additions & 3 deletions src/superqt/cmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from ._cmap_utils import draw_colormap

__all__ = [
"QColormapItemDelegate",
"draw_colormap",
"QColormapLineEdit",
"CmapCatalogComboBox",
"QColormapComboBox",
"QColormapItemDelegate",
"QColormapLineEdit",
"draw_colormap",
]
2 changes: 1 addition & 1 deletion src/superqt/combobox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


if TYPE_CHECKING:
from superqt.cmap import QColormapComboBox # noqa: TCH004
from superqt.cmap import QColormapComboBox # noqa: TC004


def __getattr__(name: str) -> Any: # pragma: no cover
Expand Down
10 changes: 5 additions & 5 deletions src/superqt/fonticon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from __future__ import annotations

__all__ = [
"addFont",
"Animation",
"ENTRY_POINT",
"font",
"icon",
"Animation",
"IconFont",
"IconFontMeta",
"IconOpts",
"pulse",
"QIconifyIcon",
"addFont",
"font",
"icon",
"pulse",
"setTextIcon",
"spin",
]
Expand Down
2 changes: 1 addition & 1 deletion src/superqt/sliders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
from ._sliders import QDoubleRangeSlider, QDoubleSlider, QRangeSlider

__all__ = [
"MONTEREY_SLIDER_STYLES_FIX",
"QDoubleRangeSlider",
"QDoubleSlider",
"QLabeledDoubleRangeSlider",
"QLabeledDoubleSlider",
"QLabeledRangeSlider",
"QLabeledSlider",
"QRangeSlider",
"MONTEREY_SLIDER_STYLES_FIX",
]
16 changes: 8 additions & 8 deletions src/superqt/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
from typing import TYPE_CHECKING, Any

if TYPE_CHECKING:
from superqt.cmap import draw_colormap # noqa: TCH004
from superqt.cmap import draw_colormap # noqa: TC004

__all__ = (
"CodeSyntaxHighlight",
"FunctionWorker",
"GeneratorWorker",
"QMessageHandler",
"QSignalDebouncer",
"QSignalThrottler",
"WorkerBase",
"create_worker",
"qimage_to_array",
"draw_colormap",
"ensure_main_thread",
"ensure_object_thread",
"exceptions_as_dialog",
"FunctionWorker",
"GeneratorWorker",
"new_worker_qthread",
"qdebounced",
"QMessageHandler",
"QSignalDebouncer",
"QSignalThrottler",
"qimage_to_array",
"qthrottled",
"signals_blocked",
"thread_worker",
"WorkerBase",
)

from ._code_syntax_highlight import CodeSyntaxHighlight
Expand Down
2 changes: 1 addition & 1 deletion tests/test_throttler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def call2():

def test_class_with_slots(qtbot):
class A:
__slots__ = ("count", "__weakref__")
__slots__ = ("__weakref__", "count")

def __init__(self):
self.count = 0
Expand Down
Loading