diff options
| author | Carl Meyer <carl@oddbird.net> | 2017-08-03 00:25:37 -0700 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2017-08-03 00:25:37 -0700 |
| commit | 4e58068657ece52e3f1636cb028e42c15b86fec3 (patch) | |
| tree | c739fe9428a1a3f46d836773e243cdcdb22ddb27 /src/flake8/api | |
| parent | 6df26ffd57178e50194aea31b3bf9c572f91fa54 (diff) | |
| download | flake8-4e58068657ece52e3f1636cb028e42c15b86fec3.tar.gz | |
Add support for local (in-repo, non-setuptools) plugins.
Closes #357
Diffstat (limited to 'src/flake8/api')
| -rw-r--r-- | src/flake8/api/legacy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py index 2b983c8..b332860 100644 --- a/src/flake8/api/legacy.py +++ b/src/flake8/api/legacy.py @@ -6,6 +6,7 @@ In 3.0 we no longer have an "engine" module but we maintain the API from it. import logging import os.path +import flake8 from flake8.formatting import base as formatter from flake8.main import application as app @@ -26,6 +27,10 @@ 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) + application.make_config_finder() application.find_plugins() application.register_plugin_options() application.parse_configuration_and_cli([]) |
