| Conditions | 4 |
| Total Lines | 21 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # pyre-strict |
||
| 38 | @staticmethod |
||
| 39 | def path_can_safely_be_skipped(path: str) -> bool: |
||
| 40 | """ |
||
| 41 | Make sure that we only check Python files that are in the present |
||
| 42 | codebase. |
||
| 43 | |||
| 44 | :param path: |
||
| 45 | :return: |
||
| 46 | """ |
||
| 47 | if not path.endswith('.py'): |
||
| 48 | return True |
||
| 49 | |||
| 50 | if './lib/' in path: |
||
| 51 | # Prevent false positive in Scrutinizer. |
||
| 52 | return True |
||
| 53 | |||
| 54 | if './bin/activate_this.py' in path: |
||
| 55 | # Prevent false positive in Scrutinizer. |
||
| 56 | return True |
||
| 57 | |||
| 58 | return False |
||
| 59 |