mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Recreate file_checker_manager since it has references to old style_guide/formatter.
This commit is contained in:
parent
348722d77b
commit
55fbdec61c
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,8 @@ class StyleGuide(object):
|
|||
# Application#make_guide but it works pretty well.
|
||||
# Stop cringing... I know it's gross.
|
||||
self._application.make_guide()
|
||||
self._application.file_checker_manager = None
|
||||
self._application.make_file_checker_manager()
|
||||
|
||||
def input_file(self, filename, lines=None, expected=None, line_offset=0):
|
||||
"""Run collected checks on a single file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue