This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ New Features
1717
1818Bug Fixes
1919
20- * Fix ``--match `` option to only consider filename when matching full paths (#550).
20+ * Fix ``--match `` option to consider both the base filename and the full-path when matching full paths (#550).
2121
22226.1.1 - May 17th, 2021
2323---------------------------
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ def _get_property_decorators(conf):
288288 # Skip any dirs that do not match match_dir
289289 dirs [:] = [d for d in dirs if match_dir (d )]
290290
291- for filename in map ( os . path . basename , filenames ) :
292- if match (filename ):
291+ for filename in filenames :
292+ if match (filename ) or match ( os . path . basename ( filename )) :
293293 full_path = os .path .join (root , filename )
294294 yield (
295295 full_path ,
@@ -302,7 +302,7 @@ def _get_property_decorators(conf):
302302 match , _ = _get_matches (config )
303303 ignore_decorators = _get_ignore_decorators (config )
304304 property_decorators = _get_property_decorators (config )
305- if match (os .path .basename (name )):
305+ if match (name ) or match ( os .path .basename (name )):
306306 yield (
307307 name ,
308308 list (config .checked_codes ),
You can’t perform that action at this time.
0 commit comments