You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BLD: fix ignored path checking in validate_unwanted_patterns.py
The previous behaviour filtered out too many paths: any subdirectory
whose relative path *contained* any of the ignored paths (which could be
arbitrary strings) would be ignored. E.g., if PATHS_TO_IGNORE contained
"foo", all of "./foo", "./spam/foo", "./spam/foo/eggs", "./barfoobaz",
"./spam/foo.py" would get filtered out.
On the other hand, individual files that *did* appear in the PAHTS_TO_IGNORE
were *not* ignored.
Now the behaviour should be a bit more robust. Ignored file pahts can be
specified as relative paths or absolute paths (since they are all passed
through os.path.abspath); any files below a subdirectory included
in PATHS_TO_IGNORE will be filtered out, and so will any files which are
explicitly mentioned in PATHS_TO_IGNORE.
0 commit comments