Skip to content

Commit 1363d09

Browse files
committed
cleanup using ruff
1 parent c18b121 commit 1363d09

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

tools/last_user_activity.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
It implements disk-based caching to minimize API requests and respect rate limits.
55
"""
66

7+
import argparse
8+
import asyncio
79
import os
10+
import pathlib
811
import sys
9-
import asyncio
10-
import aiohttp
11-
import json
12-
from rich import print
13-
from datetime import datetime, timezone, timedelta
14-
import humanize
12+
from datetime import datetime, timedelta, timezone
1513
from itertools import count
16-
import diskcache
17-
import pathlib
1814
from pathlib import Path
19-
from typing import Optional, List, Dict
20-
import argparse
15+
from typing import Dict, List, Optional
16+
17+
import aiohttp
18+
import diskcache
19+
import humanize
20+
from rich import print
2121

2222
default_orgs = [
2323
"binder-examples",
@@ -386,7 +386,6 @@ async def main(orgs, debug: bool, timelimit_days: int, config_file: str):
386386
if last_activity
387387
else "[red]never[/red]"
388388
)
389-
orgs_str = ", ".join(user_orgs)
390389
u_owner = " (owner)" if username in org_owners.get(org, []) else ""
391390
inviter = manual_users.get(username, {}).get("inviter", None)
392391
if inviter:

0 commit comments

Comments
 (0)