(store: Store)
| 8 | |
| 9 | |
| 10 | def clean(store: Store) -> int: |
| 11 | legacy_path = os.path.expanduser('~/.pre-commit') |
| 12 | for directory in (store.directory, legacy_path): |
| 13 | if os.path.exists(directory): |
| 14 | rmtree(directory) |
| 15 | output.write_line(f'Cleaned {directory}.') |
| 16 | return 0 |