From 9b5cb2197405b2290161deb2abd8e2b139a53691 Mon Sep 17 00:00:00 2001 From: andrewzigerelli Date: Thu, 28 May 2020 14:35:35 -0400 Subject: [PATCH] Add support for autopep8 aggressive option from config file (#807) --- pyls/config/pycodestyle_conf.py | 1 + pyls/plugins/autopep8_format.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyls/config/pycodestyle_conf.py b/pyls/config/pycodestyle_conf.py index c09375b0..49d3d16f 100644 --- a/pyls/config/pycodestyle_conf.py +++ b/pyls/config/pycodestyle_conf.py @@ -15,6 +15,7 @@ ('ignore', 'plugins.pycodestyle.ignore', list), ('max-line-length', 'plugins.pycodestyle.maxLineLength', int), ('select', 'plugins.pycodestyle.select', list), + ('aggressive', 'plugins.pycodestyle.aggressive', int), ] diff --git a/pyls/plugins/autopep8_format.py b/pyls/plugins/autopep8_format.py index 61260068..1e4e4e1a 100644 --- a/pyls/plugins/autopep8_format.py +++ b/pyls/plugins/autopep8_format.py @@ -57,6 +57,7 @@ def _autopep8_config(config): 'ignore': settings.get('ignore'), 'max_line_length': settings.get('maxLineLength'), 'select': settings.get('select'), + 'aggressive': settings.get('aggressive'), } # Filter out null options