summaryrefslogtreecommitdiff
path: root/src/flake8/api
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-10-01 18:34:25 +0000
committerAnthony Sottile <asottile@umich.edu>2019-10-01 18:34:25 +0000
commit0359533fca164ef21c40c8074fbd3899316b8f91 (patch)
treec379169debed609d2d4adfb89bc0100837eb4e0c /src/flake8/api
parent6bae5f7ef6875b51ed2389f633353ef749bc0f2d (diff)
parentb54164f916922725c17e6d0df75998ada6b27eef (diff)
downloadflake8-0359533fca164ef21c40c8074fbd3899316b8f91.tar.gz
Merge branch 'remove-application-prelim-option-state' into 'master'
Remove application prelimary option state See merge request pycqa/flake8!358
Diffstat (limited to 'src/flake8/api')
-rw-r--r--src/flake8/api/legacy.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py
index 16a33f4..a620930 100644
--- a/src/flake8/api/legacy.py
+++ b/src/flake8/api/legacy.py
@@ -28,12 +28,12 @@ def get_style_guide(**kwargs):
:class:`StyleGuide`
"""
application = app.Application()
- application.parse_preliminary_options_and_args([])
- flake8.configure_logging(
- application.prelim_opts.verbose, application.prelim_opts.output_file
+ prelim_opts, prelim_args = application.parse_preliminary_options_and_args(
+ []
)
- application.make_config_finder()
- application.find_plugins()
+ flake8.configure_logging(prelim_opts.verbose, prelim_opts.output_file)
+ application.make_config_finder(prelim_opts.append_config, prelim_args)
+ application.find_plugins(prelim_opts.config, prelim_opts.isolated)
application.register_plugin_options()
application.parse_configuration_and_cli([])
# We basically want application.initialize to be called but with these