File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def kind_from_path(path: Path, base: bool = False) -> FileType:
7878 """
7979 # pathlib.Path.match patterns are very limited, they do not support *a*.yml
8080 # glob.glob supports **/foo.yml but not multiple extensions
81- pathex = wcmatch .pathlib .PurePath (path .absolute ().resolve ())
81+ pathex = wcmatch .pathlib .PurePath (str ( path .absolute ().resolve () ))
8282 kinds = options .kinds if not base else BASE_KINDS
8383 for entry in kinds :
8484 for k , v in entry .items ():
@@ -245,9 +245,11 @@ def discover_lintables(options: Namespace) -> Dict[str, Any]:
245245 if out is None :
246246 exclude_pattern = "|" .join (str (x ) for x in options .exclude_paths )
247247 _logger .info ("Looking up for files, excluding %s ..." , exclude_pattern )
248- out = WcMatch (
249- '.' , exclude_pattern = exclude_pattern , flags = RECURSIVE , limit = 256
250- ).match ()
248+ out = set (
249+ WcMatch (
250+ '.' , exclude_pattern = exclude_pattern , flags = RECURSIVE , limit = 256
251+ ).match ()
252+ )
251253
252254 return OrderedDict .fromkeys (sorted (out ))
253255
You can’t perform that action at this time.
0 commit comments