Skip to content

Commit 9b5cb21

Browse files
Add support for autopep8 aggressive option from config file (#807)
1 parent 2dc19c2 commit 9b5cb21

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pyls/config/pycodestyle_conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
('ignore', 'plugins.pycodestyle.ignore', list),
1616
('max-line-length', 'plugins.pycodestyle.maxLineLength', int),
1717
('select', 'plugins.pycodestyle.select', list),
18+
('aggressive', 'plugins.pycodestyle.aggressive', int),
1819
]
1920

2021

pyls/plugins/autopep8_format.py

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def _autopep8_config(config):
5757
'ignore': settings.get('ignore'),
5858
'max_line_length': settings.get('maxLineLength'),
5959
'select': settings.get('select'),
60+
'aggressive': settings.get('aggressive'),
6061
}
6162

6263
# Filter out null options

0 commit comments

Comments
 (0)