Commit 3b87def 1 parent 5a774bc commit 3b87def Copy full SHA for 3b87def
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ def parse_sources(
368
368
yield from parse_source (source , parser_choice = parser_choice )
369
369
370
370
371
- def is_valid_deps_source (
371
+ def validate_deps_source (
372
372
path : Path ,
373
373
parser_choice : Optional [ParserChoice ] = None ,
374
374
filter_by_parser : bool = False ,
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ def parse_sources(
209
209
yield from parse_source (source , stdin )
210
210
211
211
212
- def is_valid_code_source (
212
+ def validate_code_source (
213
213
path : PathOrSpecial , base_dir : Optional [Path ] = None
214
214
) -> Optional [CodeSource ]:
215
215
"""Check if the given file path is a valid source for parsing imports.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def find_sources(
26
26
dirs_to_traverse : Dict [Path , Set [Type [Source ]]] = {}
27
27
28
28
for path in settings .code if CodeSource in source_types else []:
29
- validated : Optional [Source ] = is_valid_code_source (path ) # propagate exceptions
29
+ validated : Optional [Source ] = validate_code_source (path ) # propagate exceptions
30
30
if validated is not None : # parse-able file given directly
31
31
assert isinstance (validated , CodeSource ) # sanity check
32
32
yield validated
@@ -35,7 +35,7 @@ def find_sources(
35
35
dirs_to_traverse .setdefault (path , set ()).add (CodeSource )
36
36
37
37
for path in settings .deps if DepsSource in source_types else []:
38
- validated = is_valid_deps_source (
38
+ validated = validate_deps_source (
39
39
path , settings .deps_parser_choice , filter_by_parser = False
40
40
) # propagate exceptions
41
41
if validated is not None : # parse-able file given directly
You can’t perform that action at this time.
0 commit comments