This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ New Features
17
17
18
18
Bug Fixes
19
19
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).
21
21
22
22
6.1.1 - May 17th, 2021
23
23
---------------------------
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ def _get_property_decorators(conf):
288
288
# Skip any dirs that do not match match_dir
289
289
dirs [:] = [d for d in dirs if match_dir (d )]
290
290
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 )) :
293
293
full_path = os .path .join (root , filename )
294
294
yield (
295
295
full_path ,
@@ -302,7 +302,7 @@ def _get_property_decorators(conf):
302
302
match , _ = _get_matches (config )
303
303
ignore_decorators = _get_ignore_decorators (config )
304
304
property_decorators = _get_property_decorators (config )
305
- if match (os .path .basename (name )):
305
+ if match (name ) or match ( os .path .basename (name )):
306
306
yield (
307
307
name ,
308
308
list (config .checked_codes ),
You can’t perform that action at this time.
0 commit comments