Skip to content

Commit b881d0d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 505478e commit b881d0d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

scripts/delete-old-images.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323
from functools import partial
2424
from pprint import pformat
2525

26-
from dateutil.parser import parse as parse_date
27-
28-
from aiohttp_client_cache import CachedSession, SQLiteBackend
2926
import aiohttp
3027
import pandas as pd
3128
import tqdm
3229
import tqdm.asyncio
3330
import yaml
31+
from aiohttp_client_cache import CachedSession, SQLiteBackend
32+
from dateutil.parser import parse as parse_date
3433

3534
HERE = os.path.dirname(__file__)
3635

@@ -126,7 +125,6 @@ async def list_images_catalog(session, registry_host):
126125
url = None
127126

128127

129-
130128
async def get_manifest(session, image):
131129
"""List the tags for an image
132130
@@ -342,13 +340,16 @@ def should_delete_tag(image, info):
342340
return False
343341

344342
def save_stats():
345-
df = pd.DataFrame(rows, columns=[
346-
"image",
347-
"digest",
348-
"tags",
349-
"size",
350-
"date",
351-
])
343+
df = pd.DataFrame(
344+
rows,
345+
columns=[
346+
"image",
347+
"digest",
348+
"tags",
349+
"size",
350+
"date",
351+
],
352+
)
352353
today = datetime.today()
353354
fname = f"registry-{release}-{today.strftime('%Y-%m-%d')}.pkl"
354355
df.to_pickle(fname)

0 commit comments

Comments
 (0)