Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit ab5cd79

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

33 files changed

+38
-3
lines changed

src/freebooter/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import asyncio

src/freebooter/_assets.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from importlib.resources import files

src/freebooter/_config.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import json

src/freebooter/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from abc import ABCMeta

src/freebooter/file_management.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import warnings

src/freebooter/metadata.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import mimetypes

src/freebooter/middlewares/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from .collector import *

src/freebooter/middlewares/collector.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from concurrent.futures import Future

src/freebooter/middlewares/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from abc import ABCMeta

src/freebooter/middlewares/dropper.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import random

src/freebooter/middlewares/ignorer.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import random

src/freebooter/middlewares/limiter.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import random

src/freebooter/middlewares/metadata.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import random

src/freebooter/types.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from concurrent.futures import Future

src/freebooter/uploaders/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from .common import *

src/freebooter/uploaders/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from abc import ABCMeta

src/freebooter/uploaders/discord_webhook.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import random

src/freebooter/uploaders/instagram_instagrapi.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import datetime
@@ -416,9 +417,11 @@ def upload(
416417
self.upload_video(
417418
media,
418419
metadata,
419-
InstagramVideoType.REELS
420-
if self._mode == "hybrid"
421-
else InstagramVideoType.VIDEO,
420+
(
421+
InstagramVideoType.REELS
422+
if self._mode == "hybrid"
423+
else InstagramVideoType.VIDEO
424+
),
422425
),
423426
)
424427
)

src/freebooter/uploaders/local.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from pathlib import Path

src/freebooter/uploaders/twitter_tweepy.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import time

src/freebooter/uploaders/youtube_dataapi.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import typing

src/freebooter/util/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from .frozen_dict import *

src/freebooter/util/frozen_dict.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from collections.abc import Mapping

src/freebooter/watchers/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from .common import *

src/freebooter/watchers/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import asyncio

src/freebooter/watchers/discord_dpy.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from asyncio import Task, get_event_loop

src/freebooter/watchers/discord_selfcord.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from asyncio import Task, get_event_loop

src/freebooter/watchers/instagram_instaloader.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from os import environ

src/freebooter/watchers/local.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from pathlib import Path

src/freebooter/watchers/pusher.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from .common import ThreadWatcher

src/freebooter/watchers/rss.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
import mimetypes

src/freebooter/watchers/youtube_ytdl.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from logging import getLogger

tests/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
18+
1819
from __future__ import annotations

0 commit comments

Comments
 (0)