Return True if ``location`` should be skipped. Always ignore VCS and some special filetypes.
(location)
| 91 | |
| 92 | |
| 93 | def skip_ignored(location): |
| 94 | """ |
| 95 | Return True if ``location`` should be skipped. |
| 96 | Always ignore VCS and some special filetypes. |
| 97 | """ |
| 98 | ignored = partial(ignore.is_ignored, ignores=ignore.ignores_VCS) |
| 99 | |
| 100 | if TRACE_DEEP: |
| 101 | logger_debug() |
| 102 | logger_debug( |
| 103 | "Codebase.populate: walk: skip_ignored:", |
| 104 | location, |
| 105 | "ignored:", |
| 106 | ignored(location), |
| 107 | "is_special:", |
| 108 | is_special(location), |
| 109 | ) |
| 110 | |
| 111 | return is_special(location) or ignored(location) |
| 112 | |
| 113 | |
| 114 | def is_ignored(location, includes=tuple(), excludes=tuple()): |
no test coverage detected