Skip to content

Commit c62e1c9

Browse files
Further reformat Editor confpage.py code style
Co-authored-by: Carlos Cordoba <[email protected]>
1 parent 3381e10 commit c62e1c9

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

spyder/plugins/editor/confpage.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def setup_page(self):
6969
"in a file.")
7070
)
7171
scroll_past_end_box = newcb(
72-
_("Allow scrolling past file end"), 'scroll_past_end')
72+
_("Allow scrolling past file end"), 'scroll_past_end'
73+
)
7374

7475
interface_layout = QVBoxLayout()
7576
interface_layout.addWidget(showtabbar_box)
@@ -81,7 +82,8 @@ def setup_page(self):
8182
# -- Helpers group
8283
helpers_group = QGroupBox(_("Helpers"))
8384
showindentguides_box = newcb(
84-
_("Show indent guides"), 'indent_guides')
85+
_("Show indent guides"), 'indent_guides'
86+
)
8587
showcodefolding_box = newcb(
8688
_("Show code folding"),
8789
'code_folding',
@@ -115,9 +117,11 @@ def setup_page(self):
115117
# -- Highlight group
116118
highlight_group = QGroupBox(_("Highlight"))
117119
currentline_box = newcb(
118-
_("Highlight current line"), 'highlight_current_line')
120+
_("Highlight current line"), 'highlight_current_line'
121+
)
119122
currentcell_box = newcb(
120-
_("Highlight current cell"), 'highlight_current_cell')
123+
_("Highlight current cell"), 'highlight_current_cell'
124+
)
121125
occurrence_box = newcb(
122126
_("Highlight occurrences of selected text after"),
123127
'occurrence_highlighting',
@@ -136,9 +140,11 @@ def setup_page(self):
136140
occurrence_box.checkbox.toggled.connect(
137141
occurrence_spin.slabel.setEnabled)
138142
occurrence_spin.spinbox.setEnabled(
139-
self.get_option('occurrence_highlighting'))
143+
self.get_option('occurrence_highlighting')
144+
)
140145
occurrence_spin.slabel.setEnabled(
141-
self.get_option('occurrence_highlighting'))
146+
self.get_option('occurrence_highlighting')
147+
)
142148

143149
occurrence_glayout = QGridLayout()
144150
occurrence_glayout.addWidget(occurrence_box, 0, 0)
@@ -365,8 +371,8 @@ def enable_tabwidth_spin(index):
365371
autosave_checkbox = newcb(
366372
_('Automatically save a backup copy of unsaved files'),
367373
'autosave_enabled',
368-
tip=_("If Spyder quits unexpectedly, "
369-
"it will offer to recover them on next launch"),
374+
tip=_("If Spyder quits unexpectedly, it will offer to recover"
375+
"them on next launch"),
370376
)
371377
autosave_spinbox = self.create_spinbox(
372378
_('Autosave interval: '),

0 commit comments

Comments
 (0)