mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
application: Inline creation of config.ConfigFileFinder
Simplify the initialization code path by invoking `config.ConfigFileFinder` directly instead of the extra hop by calling the static class-level `Application.make_config_finder()` method.
This commit is contained in:
parent
21d2adf21f
commit
9fa5663986
4 changed files with 13 additions and 28 deletions
|
|
@ -346,9 +346,8 @@ class FileProcessor(object):
|
|||
:rtype:
|
||||
bool
|
||||
"""
|
||||
if (
|
||||
not self.options.disable_noqa
|
||||
and any(defaults.NOQA_FILE.match(line) for line in self.lines)
|
||||
if not self.options.disable_noqa and any(
|
||||
defaults.NOQA_FILE.match(line) for line in self.lines
|
||||
):
|
||||
return True
|
||||
elif any(defaults.NOQA_FILE.search(line) for line in self.lines):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue