Skip to content

Commit 0574047

Browse files
committed
Apply formatting changes from ruff-format
This addresses code formatting issues discovered during the CI process for this pull request. No functional changes are otherwise present.
1 parent d447365 commit 0574047

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Diff for: bottles/frontend/new_bottle_dialog.py

+14-11
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,11 @@ def set_path(dialog, result):
160160
self.label_choose_env.set_label(file.get_basename())
161161
self.label_choose_env.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
162162

163-
def create_filter(name: str,
164-
patterns: Sequence[str],
165-
) -> Gtk.FileFilter:
166-
'''Creates a filter with the specified name and patterns
163+
def create_filter(
164+
name: str,
165+
patterns: Sequence[str],
166+
) -> Gtk.FileFilter:
167+
"""Creates a filter with the specified name and patterns
167168
168169
The use of patterns is particularly notable here as the other
169170
strategy for defining filters via `filter.add_mime_type` is
@@ -174,7 +175,7 @@ def create_filter(name: str,
174175
manually specify the patterns and name. This will ideally be
175176
replaced with the `add_mime_type` function once the root cause is
176177
discovered.
177-
'''
178+
"""
178179
filter = Gtk.FileFilter()
179180
filter.set_name(name)
180181
for pattern in patterns:
@@ -185,12 +186,14 @@ def create_filter(name: str,
185186
filters = Gio.ListStore.new(Gtk.FileFilter)
186187

187188
# This filter is intended to be "application/yaml" mime type
188-
yaml_filter = create_filter(name="YAML",
189-
patterns=["*.yaml", "*.yml"],
190-
)
191-
all_filter = create_filter(name=_("All Files"),
192-
patterns=["*"],
193-
)
189+
yaml_filter = create_filter(
190+
name="YAML",
191+
patterns=["*.yaml", "*.yml"],
192+
)
193+
all_filter = create_filter(
194+
name=_("All Files"),
195+
patterns=["*"],
196+
)
194197

195198
filters.append(yaml_filter)
196199
filters.append(all_filter)

0 commit comments

Comments
 (0)