[meld] preferences: noqa all our long lines :(



commit 4dc31c88915b41c15c79238494430cfd6f4890f9
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Dec 23 14:50:11 2017 +1000

    preferences: noqa all our long lines :(
    
    These are legitimately easier to read like this, and unfortunately
    flake8 doesn't have the knobs we'd like to be able to just ignore them
    as a block or something.
    
    Anyway, this is disgusting, but it was the last thing to make a vanilla
    flake8 run pass.

 meld/preferences.py | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/meld/preferences.py b/meld/preferences.py
index 1fb08755..34526ab6 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -192,23 +192,23 @@ class PreferencesDialog(Component):
             ('use-system-font', self.checkbutton_default_font, 'active'),
             ('custom-font', self.fontpicker, 'font'),
             ('indent-width', self.spinbutton_tabsize, 'value'),
-            ('insert-spaces-instead-of-tabs', self.checkbutton_spaces_instead_of_tabs, 'active'),
-            ('highlight-current-line', self.checkbutton_highlight_current_line, 'active'),
-            ('show-line-numbers', self.checkbutton_show_line_numbers, 'active'),
-            ('highlight-syntax', self.checkbutton_use_syntax_highlighting, 'active'),
+            ('insert-spaces-instead-of-tabs', self.checkbutton_spaces_instead_of_tabs, 'active'),  # noqa: 
E501
+            ('highlight-current-line', self.checkbutton_highlight_current_line, 'active'),  # noqa: E501
+            ('show-line-numbers', self.checkbutton_show_line_numbers, 'active'),  # noqa: E501
+            ('highlight-syntax', self.checkbutton_use_syntax_highlighting, 'active'),  # noqa: E501
             ('use-system-editor', self.system_editor_checkbutton, 'active'),
             ('custom-editor-command', self.custom_edit_command_entry, 'text'),
-            ('folder-shallow-comparison', self.checkbutton_shallow_compare, 'active'),
-            ('folder-filter-text', self.checkbutton_folder_filter_text, 'active'),
-            ('folder-ignore-symlinks', self.checkbutton_ignore_symlinks, 'active'),
-            ('vc-show-commit-margin', self.checkbutton_show_commit_margin, 'active'),
+            ('folder-shallow-comparison', self.checkbutton_shallow_compare, 'active'),  # noqa: E501
+            ('folder-filter-text', self.checkbutton_folder_filter_text, 'active'),  # noqa: E501
+            ('folder-ignore-symlinks', self.checkbutton_ignore_symlinks, 'active'),  # noqa: E501
+            ('vc-show-commit-margin', self.checkbutton_show_commit_margin, 'active'),  # noqa: E501
             ('vc-commit-margin', self.spinbutton_commit_margin, 'value'),
-            ('vc-break-commit-message', self.checkbutton_break_commit_lines, 'active'),
-            ('ignore-blank-lines', self.checkbutton_ignore_blank_lines, 'active'),
+            ('vc-break-commit-message', self.checkbutton_break_commit_lines, 'active'),  # noqa: E501
+            ('ignore-blank-lines', self.checkbutton_ignore_blank_lines, 'active'),  # noqa: E501
             # Sensitivity bindings must come after value bindings, or the key
             # writability in gsettings overrides manual sensitivity setting.
-            ('vc-show-commit-margin', self.spinbutton_commit_margin, 'sensitive'),
-            ('vc-show-commit-margin', self.checkbutton_break_commit_lines, 'sensitive'),
+            ('vc-show-commit-margin', self.spinbutton_commit_margin, 'sensitive'),  # noqa: E501
+            ('vc-show-commit-margin', self.checkbutton_break_commit_lines, 'sensitive'),  # noqa: E501
         ]
         for key, obj, attribute in bindings:
             settings.bind(key, obj, attribute, Gio.SettingsBindFlags.DEFAULT)
@@ -216,7 +216,7 @@ class PreferencesDialog(Component):
         invert_bindings = [
             ('use-system-editor', self.custom_edit_command_entry, 'sensitive'),
             ('use-system-font', self.fontpicker, 'sensitive'),
-            ('folder-shallow-comparison', self.checkbutton_folder_filter_text, 'sensitive'),
+            ('folder-shallow-comparison', self.checkbutton_folder_filter_text, 'sensitive'),  # noqa: E501
         ]
         for key, obj, attribute in invert_bindings:
             settings.bind(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]