()
| 29 | |
| 30 | |
| 31 | def check_pypi_stats() -> dict: |
| 32 | try: |
| 33 | if config.get_pypi_stats_path(): # Put into try except |
| 34 | return { |
| 35 | "enabled": True, |
| 36 | "description": "PyPI typosquatting protection enabled" |
| 37 | } |
| 38 | except MissingFile: |
| 39 | pass |
| 40 | |
| 41 | return { |
| 42 | "enabled": False, |
| 43 | "description": "PyPI download stats not found, typosquatting protection is disabled. Run `aura update` to download" |
| 44 | } |
| 45 | |
| 46 | |
| 47 | def check_reverse_dependencies() -> dict: |
no outgoing calls
no test coverage detected