Check if this needs to be considered.
(name)
| 303 | |
| 304 | |
| 305 | def is_unexpected(name): |
| 306 | """Check if this needs to be considered.""" |
| 307 | if '._' in name or '.tests' in name or '.setup' in name: |
| 308 | return False |
| 309 | |
| 310 | if name in PUBLIC_MODULES: |
| 311 | return False |
| 312 | |
| 313 | if name in PUBLIC_ALIASED_MODULES: |
| 314 | return False |
| 315 | |
| 316 | if name in PRIVATE_BUT_PRESENT_MODULES: |
| 317 | return False |
| 318 | |
| 319 | return True |
| 320 | |
| 321 | |
| 322 | # These are present in a directory with an __init__.py but cannot be imported |
no outgoing calls
no test coverage detected