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

* ci: [pre-commit.ci] autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.8.1)
- [github.com/abravalheri/validate-pyproject: v0.20.2 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.20.2...v0.23)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0)

* style: [pre-commit.ci] auto fixes [...]

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2024-12-03 11:03:25 -05:00
committed by GitHub
parent e7a87897f5
commit c9528ff85a
8 changed files with 27 additions and 27 deletions

View File

@@ -5,19 +5,19 @@ ci:
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9 rev: v0.8.1
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --unsafe-fixes] args: [--fix, --unsafe-fixes]
- id: ruff-format - id: ruff-format
- repo: https://github.com/abravalheri/validate-pyproject - repo: https://github.com/abravalheri/validate-pyproject
rev: v0.20.2 rev: v0.23
hooks: hooks:
- id: validate-pyproject - id: validate-pyproject
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2 rev: v1.13.0
hooks: hooks:
- id: mypy - id: mypy
exclude: tests|examples exclude: tests|examples

View File

@@ -26,8 +26,6 @@ from .spinbox import QLargeIntSpinBox
from .utils import QMessageHandler, ensure_main_thread, ensure_object_thread from .utils import QMessageHandler, ensure_main_thread, ensure_object_thread
__all__ = [ __all__ = [
"ensure_main_thread",
"ensure_object_thread",
"QCollapsible", "QCollapsible",
"QColorComboBox", "QColorComboBox",
"QColormapComboBox", "QColormapComboBox",
@@ -36,8 +34,8 @@ __all__ = [
"QElidingLabel", "QElidingLabel",
"QElidingLineEdit", "QElidingLineEdit",
"QEnumComboBox", "QEnumComboBox",
"QLabeledDoubleRangeSlider",
"QIconifyIcon", "QIconifyIcon",
"QLabeledDoubleRangeSlider",
"QLabeledDoubleSlider", "QLabeledDoubleSlider",
"QLabeledRangeSlider", "QLabeledRangeSlider",
"QLabeledSlider", "QLabeledSlider",
@@ -48,11 +46,13 @@ __all__ = [
"QSearchableComboBox", "QSearchableComboBox",
"QSearchableListWidget", "QSearchableListWidget",
"QSearchableTreeWidget", "QSearchableTreeWidget",
"ensure_main_thread",
"ensure_object_thread",
] ]
if TYPE_CHECKING: if TYPE_CHECKING:
from .combobox import QColormapComboBox # noqa: TCH004 from .combobox import QColormapComboBox # noqa: TC004
from .spinbox._quantity import QQuantity # noqa: TCH004 from .spinbox._quantity import QQuantity # noqa: TC004
def __getattr__(name: str) -> Any: def __getattr__(name: str) -> Any:

View File

@@ -15,9 +15,9 @@ from ._cmap_line_edit import QColormapLineEdit
from ._cmap_utils import draw_colormap from ._cmap_utils import draw_colormap
__all__ = [ __all__ = [
"QColormapItemDelegate",
"draw_colormap",
"QColormapLineEdit",
"CmapCatalogComboBox", "CmapCatalogComboBox",
"QColormapComboBox", "QColormapComboBox",
"QColormapItemDelegate",
"QColormapLineEdit",
"draw_colormap",
] ]

View File

@@ -13,7 +13,7 @@ __all__ = (
if TYPE_CHECKING: 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 def __getattr__(name: str) -> Any: # pragma: no cover

View File

@@ -1,16 +1,16 @@
from __future__ import annotations from __future__ import annotations
__all__ = [ __all__ = [
"addFont",
"Animation",
"ENTRY_POINT", "ENTRY_POINT",
"font", "Animation",
"icon",
"IconFont", "IconFont",
"IconFontMeta", "IconFontMeta",
"IconOpts", "IconOpts",
"pulse",
"QIconifyIcon", "QIconifyIcon",
"addFont",
"font",
"icon",
"pulse",
"setTextIcon", "setTextIcon",
"spin", "spin",
] ]

View File

@@ -8,6 +8,7 @@ from ._range_style import MONTEREY_SLIDER_STYLES_FIX
from ._sliders import QDoubleRangeSlider, QDoubleSlider, QRangeSlider from ._sliders import QDoubleRangeSlider, QDoubleSlider, QRangeSlider
__all__ = [ __all__ = [
"MONTEREY_SLIDER_STYLES_FIX",
"QDoubleRangeSlider", "QDoubleRangeSlider",
"QDoubleSlider", "QDoubleSlider",
"QLabeledDoubleRangeSlider", "QLabeledDoubleRangeSlider",
@@ -15,5 +16,4 @@ __all__ = [
"QLabeledRangeSlider", "QLabeledRangeSlider",
"QLabeledSlider", "QLabeledSlider",
"QRangeSlider", "QRangeSlider",
"MONTEREY_SLIDER_STYLES_FIX",
] ]

View File

@@ -1,27 +1,27 @@
from typing import TYPE_CHECKING, Any from typing import TYPE_CHECKING, Any
if TYPE_CHECKING: if TYPE_CHECKING:
from superqt.cmap import draw_colormap # noqa: TCH004 from superqt.cmap import draw_colormap # noqa: TC004
__all__ = ( __all__ = (
"CodeSyntaxHighlight", "CodeSyntaxHighlight",
"FunctionWorker",
"GeneratorWorker",
"QMessageHandler",
"QSignalDebouncer",
"QSignalThrottler",
"WorkerBase",
"create_worker", "create_worker",
"qimage_to_array",
"draw_colormap", "draw_colormap",
"ensure_main_thread", "ensure_main_thread",
"ensure_object_thread", "ensure_object_thread",
"exceptions_as_dialog", "exceptions_as_dialog",
"FunctionWorker",
"GeneratorWorker",
"new_worker_qthread", "new_worker_qthread",
"qdebounced", "qdebounced",
"QMessageHandler", "qimage_to_array",
"QSignalDebouncer",
"QSignalThrottler",
"qthrottled", "qthrottled",
"signals_blocked", "signals_blocked",
"thread_worker", "thread_worker",
"WorkerBase",
) )
from ._code_syntax_highlight import CodeSyntaxHighlight from ._code_syntax_highlight import CodeSyntaxHighlight

View File

@@ -125,7 +125,7 @@ def test_debouncer_method_definition(qtbot):
def test_class_with_slots(qtbot): def test_class_with_slots(qtbot):
class A: class A:
__slots__ = ("count", "__weakref__") __slots__ = ("__weakref__", "count")
def __init__(self): def __init__(self):
self.count = 0 self.count = 0