From eb34c4cd8adab561e484192d6c6fb7ae2c04be73 Mon Sep 17 00:00:00 2001 From: lluni Date: Thu, 4 Jan 2024 19:39:41 +0100 Subject: [PATCH] Sort imports --- cleanup.py | 4 +++- masto.py | 3 ++- reddit.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cleanup.py b/cleanup.py index 99682fa..b732ff9 100644 --- a/cleanup.py +++ b/cleanup.py @@ -2,9 +2,11 @@ # ----- imports ----- # +from os import getenv + from dotenv import load_dotenv from mastodon import Mastodon, MastodonRatelimitError -from os import getenv + def cleanup(offset: int = 200, num_batches: int = 10, limit: int = 40, start_id: int | None = None): """Delete old posts without any interactions. diff --git a/masto.py b/masto.py index 552f6dc..39c6d6d 100644 --- a/masto.py +++ b/masto.py @@ -1,8 +1,9 @@ """Initialize Mastodon.py, login the account and register an application""" +from os import getenv + from dotenv import load_dotenv from mastodon import Mastodon -from os import getenv # ----- load .env ----- # diff --git a/reddit.py b/reddit.py index 43a8d61..861e55b 100644 --- a/reddit.py +++ b/reddit.py @@ -1,8 +1,9 @@ """Initialize PRAW""" +from os import getenv + import praw from dotenv import load_dotenv -from os import getenv # ----- load .env ----- #