From 0febec05f2fd3d9cabdc87b63c244982963e2670 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 8 Apr 2024 17:23:31 +0000
Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
src/freebooter/__main__.py | 1 +
src/freebooter/_assets.py | 1 +
src/freebooter/_config.py | 1 +
src/freebooter/config.py | 1 +
src/freebooter/file_management.py | 1 +
src/freebooter/metadata.py | 1 +
src/freebooter/middlewares/__init__.py | 1 +
src/freebooter/middlewares/collector.py | 1 +
src/freebooter/middlewares/common.py | 1 +
src/freebooter/middlewares/dropper.py | 1 +
src/freebooter/middlewares/ignorer.py | 1 +
src/freebooter/middlewares/limiter.py | 1 +
src/freebooter/middlewares/metadata.py | 1 +
src/freebooter/types.py | 1 +
src/freebooter/uploaders/__init__.py | 1 +
src/freebooter/uploaders/common.py | 1 +
src/freebooter/uploaders/discord_webhook.py | 1 +
src/freebooter/uploaders/instagram_instagrapi.py | 9 ++++++---
src/freebooter/uploaders/local.py | 1 +
src/freebooter/uploaders/twitter_tweepy.py | 1 +
src/freebooter/uploaders/youtube_dataapi.py | 1 +
src/freebooter/util/__init__.py | 1 +
src/freebooter/util/frozen_dict.py | 1 +
src/freebooter/watchers/__init__.py | 1 +
src/freebooter/watchers/common.py | 1 +
src/freebooter/watchers/discord_dpy.py | 1 +
src/freebooter/watchers/discord_selfcord.py | 1 +
src/freebooter/watchers/instagram_instaloader.py | 1 +
src/freebooter/watchers/local.py | 1 +
src/freebooter/watchers/pusher.py | 1 +
src/freebooter/watchers/rss.py | 1 +
src/freebooter/watchers/youtube_ytdl.py | 1 +
tests/__init__.py | 1 +
33 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/src/freebooter/__main__.py b/src/freebooter/__main__.py
index 9ef509b..34c36c2 100644
--- a/src/freebooter/__main__.py
+++ b/src/freebooter/__main__.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import asyncio
diff --git a/src/freebooter/_assets.py b/src/freebooter/_assets.py
index c7e1ae1..d55b199 100644
--- a/src/freebooter/_assets.py
+++ b/src/freebooter/_assets.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from importlib.resources import files
diff --git a/src/freebooter/_config.py b/src/freebooter/_config.py
index d91e83d..f5aeaba 100644
--- a/src/freebooter/_config.py
+++ b/src/freebooter/_config.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import json
diff --git a/src/freebooter/config.py b/src/freebooter/config.py
index c9ea562..03bddb5 100644
--- a/src/freebooter/config.py
+++ b/src/freebooter/config.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from abc import ABCMeta
diff --git a/src/freebooter/file_management.py b/src/freebooter/file_management.py
index d3183d8..5f43cec 100644
--- a/src/freebooter/file_management.py
+++ b/src/freebooter/file_management.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import warnings
diff --git a/src/freebooter/metadata.py b/src/freebooter/metadata.py
index 3bebaf4..2c00be1 100644
--- a/src/freebooter/metadata.py
+++ b/src/freebooter/metadata.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import mimetypes
diff --git a/src/freebooter/middlewares/__init__.py b/src/freebooter/middlewares/__init__.py
index 79dd8cd..ccd74df 100644
--- a/src/freebooter/middlewares/__init__.py
+++ b/src/freebooter/middlewares/__init__.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from .collector import *
diff --git a/src/freebooter/middlewares/collector.py b/src/freebooter/middlewares/collector.py
index 25deee7..7da4a11 100644
--- a/src/freebooter/middlewares/collector.py
+++ b/src/freebooter/middlewares/collector.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from concurrent.futures import Future
diff --git a/src/freebooter/middlewares/common.py b/src/freebooter/middlewares/common.py
index e390e0b..00a39fe 100644
--- a/src/freebooter/middlewares/common.py
+++ b/src/freebooter/middlewares/common.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from abc import ABCMeta
diff --git a/src/freebooter/middlewares/dropper.py b/src/freebooter/middlewares/dropper.py
index 789ca90..1cf437e 100644
--- a/src/freebooter/middlewares/dropper.py
+++ b/src/freebooter/middlewares/dropper.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import random
diff --git a/src/freebooter/middlewares/ignorer.py b/src/freebooter/middlewares/ignorer.py
index 83f097b..621400e 100644
--- a/src/freebooter/middlewares/ignorer.py
+++ b/src/freebooter/middlewares/ignorer.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import random
diff --git a/src/freebooter/middlewares/limiter.py b/src/freebooter/middlewares/limiter.py
index f4ef6bc..b1e4627 100644
--- a/src/freebooter/middlewares/limiter.py
+++ b/src/freebooter/middlewares/limiter.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import random
diff --git a/src/freebooter/middlewares/metadata.py b/src/freebooter/middlewares/metadata.py
index 73aeaf1..fd59532 100644
--- a/src/freebooter/middlewares/metadata.py
+++ b/src/freebooter/middlewares/metadata.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import random
diff --git a/src/freebooter/types.py b/src/freebooter/types.py
index a945c75..60bfb00 100644
--- a/src/freebooter/types.py
+++ b/src/freebooter/types.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from concurrent.futures import Future
diff --git a/src/freebooter/uploaders/__init__.py b/src/freebooter/uploaders/__init__.py
index f5c3d93..1cbc3dd 100644
--- a/src/freebooter/uploaders/__init__.py
+++ b/src/freebooter/uploaders/__init__.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from .common import *
diff --git a/src/freebooter/uploaders/common.py b/src/freebooter/uploaders/common.py
index 1f3e648..f5f938c 100644
--- a/src/freebooter/uploaders/common.py
+++ b/src/freebooter/uploaders/common.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from abc import ABCMeta
diff --git a/src/freebooter/uploaders/discord_webhook.py b/src/freebooter/uploaders/discord_webhook.py
index a583c81..93f346b 100644
--- a/src/freebooter/uploaders/discord_webhook.py
+++ b/src/freebooter/uploaders/discord_webhook.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import random
diff --git a/src/freebooter/uploaders/instagram_instagrapi.py b/src/freebooter/uploaders/instagram_instagrapi.py
index ac8cd9f..7b42a47 100644
--- a/src/freebooter/uploaders/instagram_instagrapi.py
+++ b/src/freebooter/uploaders/instagram_instagrapi.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import datetime
@@ -416,9 +417,11 @@ def upload(
self.upload_video(
media,
metadata,
- InstagramVideoType.REELS
- if self._mode == "hybrid"
- else InstagramVideoType.VIDEO,
+ (
+ InstagramVideoType.REELS
+ if self._mode == "hybrid"
+ else InstagramVideoType.VIDEO
+ ),
),
)
)
diff --git a/src/freebooter/uploaders/local.py b/src/freebooter/uploaders/local.py
index 01a7576..054dfd4 100644
--- a/src/freebooter/uploaders/local.py
+++ b/src/freebooter/uploaders/local.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from pathlib import Path
diff --git a/src/freebooter/uploaders/twitter_tweepy.py b/src/freebooter/uploaders/twitter_tweepy.py
index 2dd8ce5..c00f62f 100644
--- a/src/freebooter/uploaders/twitter_tweepy.py
+++ b/src/freebooter/uploaders/twitter_tweepy.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import time
diff --git a/src/freebooter/uploaders/youtube_dataapi.py b/src/freebooter/uploaders/youtube_dataapi.py
index c3d2b80..0a43d12 100644
--- a/src/freebooter/uploaders/youtube_dataapi.py
+++ b/src/freebooter/uploaders/youtube_dataapi.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import typing
diff --git a/src/freebooter/util/__init__.py b/src/freebooter/util/__init__.py
index d7a3727..8e7ea2d 100644
--- a/src/freebooter/util/__init__.py
+++ b/src/freebooter/util/__init__.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from .frozen_dict import *
diff --git a/src/freebooter/util/frozen_dict.py b/src/freebooter/util/frozen_dict.py
index f5ebbe3..3484d8d 100644
--- a/src/freebooter/util/frozen_dict.py
+++ b/src/freebooter/util/frozen_dict.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from collections.abc import Mapping
diff --git a/src/freebooter/watchers/__init__.py b/src/freebooter/watchers/__init__.py
index 17bdd1b..5803b33 100644
--- a/src/freebooter/watchers/__init__.py
+++ b/src/freebooter/watchers/__init__.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from .common import *
diff --git a/src/freebooter/watchers/common.py b/src/freebooter/watchers/common.py
index 90a2f87..0ac19df 100644
--- a/src/freebooter/watchers/common.py
+++ b/src/freebooter/watchers/common.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import asyncio
diff --git a/src/freebooter/watchers/discord_dpy.py b/src/freebooter/watchers/discord_dpy.py
index 08ca6d7..ee2d9f8 100644
--- a/src/freebooter/watchers/discord_dpy.py
+++ b/src/freebooter/watchers/discord_dpy.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from asyncio import Task, get_event_loop
diff --git a/src/freebooter/watchers/discord_selfcord.py b/src/freebooter/watchers/discord_selfcord.py
index b54764e..f4f0ddf 100644
--- a/src/freebooter/watchers/discord_selfcord.py
+++ b/src/freebooter/watchers/discord_selfcord.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from asyncio import Task, get_event_loop
diff --git a/src/freebooter/watchers/instagram_instaloader.py b/src/freebooter/watchers/instagram_instaloader.py
index ffa89c1..51a231d 100644
--- a/src/freebooter/watchers/instagram_instaloader.py
+++ b/src/freebooter/watchers/instagram_instaloader.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from os import environ
diff --git a/src/freebooter/watchers/local.py b/src/freebooter/watchers/local.py
index 4759ba4..0e831a7 100644
--- a/src/freebooter/watchers/local.py
+++ b/src/freebooter/watchers/local.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from pathlib import Path
diff --git a/src/freebooter/watchers/pusher.py b/src/freebooter/watchers/pusher.py
index 743ebba..d736fb9 100644
--- a/src/freebooter/watchers/pusher.py
+++ b/src/freebooter/watchers/pusher.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from .common import ThreadWatcher
diff --git a/src/freebooter/watchers/rss.py b/src/freebooter/watchers/rss.py
index de8e7e9..31cbd3f 100644
--- a/src/freebooter/watchers/rss.py
+++ b/src/freebooter/watchers/rss.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
import mimetypes
diff --git a/src/freebooter/watchers/youtube_ytdl.py b/src/freebooter/watchers/youtube_ytdl.py
index f1470f9..095f66e 100644
--- a/src/freebooter/watchers/youtube_ytdl.py
+++ b/src/freebooter/watchers/youtube_ytdl.py
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations
from logging import getLogger
diff --git a/tests/__init__.py b/tests/__init__.py
index 7f43984..41e61e9 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -15,4 +15,5 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
+
from __future__ import annotations