mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
Fixes #2665. Regenerated by tabbott with `lint --fix` after a rebase and change in parameters. Note from tabbott: In a few cases, this converts technical debt in the form of unsorted imports into different technical debt in the form of our largest files having very long, ugly import sequences at the start. I expect this change will increase pressure for us to split those files, which isn't a bad thing. Signed-off-by: Anders Kaseorg <anders@zulip.com>
20 lines
562 B
Python
Executable File
20 lines
562 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
|
|
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
sys.path.append(ZULIP_PATH)
|
|
from scripts.lib import clean_emoji_cache, clean_node_cache, clean_venv_cache
|
|
from scripts.lib.zulip_tools import parse_cache_script_args
|
|
|
|
|
|
def main() -> None:
|
|
args = parse_cache_script_args("This script cleans unused zulip caches.")
|
|
os.chdir(ZULIP_PATH)
|
|
clean_venv_cache.main(args)
|
|
clean_node_cache.main(args)
|
|
clean_emoji_cache.main(args)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|