Skip to content

Commit 3e9e8f9

Browse files
ci(pre-commit.ci): autoupdate (#680)
* ci(pre-commit.ci): autoupdate updates: - [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](abravalheri/validate-pyproject@v0.22...v0.23) - [github.com/crate-ci/typos: typos-dict-v0.11.34 → typos-dict-v0.11.37](crate-ci/typos@typos-dict-v0.11.34...typos-dict-v0.11.37) - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.3...v0.8.1) * style(pre-commit.ci): auto fixes [...] * update --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent 25a2a73 commit 3e9e8f9

File tree

12 files changed

+23
-21
lines changed

12 files changed

+23
-21
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ ci:
55

66
repos:
77
- repo: https://github.com/abravalheri/validate-pyproject
8-
rev: v0.22
8+
rev: v0.23
99
hooks:
1010
- id: validate-pyproject
1111

1212
- repo: https://github.com/crate-ci/typos
13-
rev: typos-dict-v0.11.34
13+
rev: v1.28.3
1414
hooks:
1515
- id: typos
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.7.3
18+
rev: v0.8.3
1919
hooks:
2020
- id: ruff
2121
args: ["--fix", "--unsafe-fixes"]

src/magicgui/backends/_ipynb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"ComboBox",
3232
"Container",
3333
"DateEdit",
34-
"TimeEdit",
3534
"DateTimeEdit",
3635
"FloatSlider",
3736
"FloatSpinBox",
@@ -45,6 +44,7 @@
4544
"Slider",
4645
"SpinBox",
4746
"TextEdit",
47+
"TimeEdit",
4848
"ToolBar",
4949
"get_text_width",
5050
"show_file_dialog",

src/magicgui/backends/_qtpy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"FloatRangeSlider",
4444
"FloatSlider",
4545
"FloatSpinBox",
46-
"get_text_width",
4746
"Image",
4847
"Label",
4948
"LineEdit",
@@ -57,11 +56,12 @@
5756
"RadioButtons",
5857
"RangeSlider",
5958
"Select",
60-
"show_file_dialog",
6159
"Slider",
6260
"SpinBox",
6361
"Table",
6462
"TextEdit",
6563
"TimeEdit",
6664
"ToolBar",
65+
"get_text_width",
66+
"show_file_dialog",
6767
]

src/magicgui/experimental.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
from .schema._guiclass import button, guiclass, is_guiclass
88

9-
__all__ = ["guiclass", "button", "is_guiclass"]
9+
__all__ = ["button", "guiclass", "is_guiclass"]

src/magicgui/schema/_guiclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def gui(self) -> ContainerWidget: ...
3737
def events(self) -> SignalGroup: ...
3838
# fmt: on
3939

40-
__all__ = ["guiclass", "button", "is_guiclass", "unbind_gui_from_instance"]
40+
__all__ = ["button", "guiclass", "is_guiclass", "unbind_gui_from_instance"]
4141
_BUTTON_ATTR = "_magicgui_button"
4242
_GUICLASS_FLAG = "__magicgui_guiclass__"
4343

src/magicgui/schema/_ui_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class HasAttrs(Protocol):
4040
__attrs_attrs__: tuple[attrs.Attribute, ...]
4141

4242

43-
__all__ = ["build_widget", "get_ui_fields", "UiField"]
43+
__all__ = ["UiField", "build_widget", "get_ui_fields"]
4444

4545
SLOTS = {"slots": True} if sys.version_info >= (3, 10) else {}
4646
T = TypeVar("T")

src/magicgui/type_map/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
)
1010

1111
__all__ = [
12+
"TypeMap",
1213
"get_widget_class",
1314
"register_type",
14-
"type_registered",
1515
"type2callback",
16-
"TypeMap",
16+
"type_registered",
1717
]

src/magicgui/type_map/_magicgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from magicgui.type_map._type_map import TypeMap
88
from magicgui.widgets import FunctionGui
99

10-
__all__ = ["magicgui", "magic_factory", "MagicFactory"]
10+
__all__ = ["MagicFactory", "magic_factory", "magicgui"]
1111

1212
_FGuiVar = TypeVar("_FGuiVar", bound=FunctionGui)
1313

src/magicgui/type_map/_type_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
if TYPE_CHECKING:
4141
from magicgui.type_map._magicgui import MagicFactory
4242

43-
__all__: list[str] = ["register_type", "get_widget_class"]
43+
__all__: list[str] = ["get_widget_class", "register_type"]
4444

4545

4646
# redefining these here for the sake of sphinx autodoc forward refs

src/magicgui/widgets/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@
7575
"CheckBox",
7676
"ComboBox",
7777
"Container",
78-
"create_widget",
7978
"DateEdit",
8079
"DateTimeEdit",
8180
"Dialog",
8281
"EmptyWidget",
8382
"FileEdit",
83+
"FloatRangeSlider",
8484
"FloatSlider",
8585
"FloatSpinBox",
86-
"FloatRangeSlider",
8786
"FunctionGui",
8887
"Image",
8988
"Label",
@@ -94,8 +93,8 @@
9493
"MainFunctionGui",
9594
"MainWindow",
9695
"Password",
97-
"PushButton",
9896
"ProgressBar",
97+
"PushButton",
9998
"QuantityEdit",
10099
"RadioButton",
101100
"RadioButtons",
@@ -111,8 +110,9 @@
111110
"ToolBar",
112111
"TupleEdit",
113112
"Widget",
114-
"show_file_dialog",
113+
"create_widget",
115114
"request_values",
115+
"show_file_dialog",
116116
]
117117

118118
del partial

0 commit comments

Comments
 (0)