Skip to content

Commit

Permalink
Add support for autopep8 aggressive option from config file (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewzigerelli authored May 28, 2020
1 parent 2dc19c2 commit 9b5cb21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyls/config/pycodestyle_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]


Expand Down
1 change: 1 addition & 0 deletions pyls/plugins/autopep8_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b5cb21

Please sign in to comment.