mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 19:56:52 +00:00
Report error when non-exiting path is passed to flake8
This commit is contained in:
parent
f834499726
commit
59218ca323
3 changed files with 17 additions and 3 deletions
|
|
@ -219,7 +219,6 @@ class Manager(object):
|
|||
filename, filename_patterns
|
||||
)
|
||||
is_stdin = filename == '-'
|
||||
file_exists = os.path.exists(filename)
|
||||
# NOTE(sigmavirus24): If a user explicitly specifies something,
|
||||
# e.g, ``flake8 bin/script`` then we should run Flake8 against
|
||||
# that. Since should_create_file_checker looks to see if the
|
||||
|
|
@ -230,8 +229,7 @@ class Manager(object):
|
|||
explicitly_provided = (not running_from_vcs and
|
||||
not running_from_diff and
|
||||
(argument == filename))
|
||||
return ((file_exists and
|
||||
(explicitly_provided or matches_filename_patterns)) or
|
||||
return ((explicitly_provided or matches_filename_patterns) or
|
||||
is_stdin)
|
||||
|
||||
checks = self.checks.to_dictionary()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue