Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2024
1 parent a7cf3c6 commit f2c8769
Show file tree
Hide file tree
Showing 40 changed files with 49 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boot Script of Tubee"""

import os

from coverage import Coverage
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/2be32221762a_video_check_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-09 04:26:06.407841
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/34935013ab33_initial_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-03-10 23:05:03.634539
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-31 15:27:45.040777
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-01-28 03:12:12.355166
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/8271190eec99_action_tag_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-01-27 01:43:19.571472
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-03-12 10:21:53.211649
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/9542bd4e6db2_add_tag_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-22 02:43:42.004723
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-06-14 11:27:10.424903
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions tests/models/test_channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of Channel Model"""

import json
import unittest
from datetime import datetime, timezone
Expand Down
1 change: 1 addition & 0 deletions tests/models/test_user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of User Model"""

import unittest
from unittest import mock

Expand Down
1 change: 1 addition & 0 deletions tests/models/test_video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of Video Model"""

import unittest
from unittest import mock

Expand Down
1 change: 1 addition & 0 deletions tests/routes/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of Main Routes"""

import unittest

from tubee import create_app, db
Expand Down
1 change: 1 addition & 0 deletions tests/routes/test_user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of User Routes"""

import unittest

from tubee import create_app, db, login_manager
Expand Down
1 change: 1 addition & 0 deletions tests/test_basics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of App Basics"""

import unittest

from flask import current_app
Expand Down
1 change: 1 addition & 0 deletions tests/test_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of App Basics"""

import unittest

from tubee import create_app, db
Expand Down
1 change: 1 addition & 0 deletions tests/test_hub.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of utils.hub"""

import unittest
import uuid
from os.path import dirname, join
Expand Down
1 change: 1 addition & 0 deletions tests/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases of Celery Tasks"""

import unittest
from unittest import mock

Expand Down
1 change: 1 addition & 0 deletions tubee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main Application of Tubee"""

import logging
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions tubee/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Forms"""

from flask_wtf import FlaskForm
from wtforms.fields import (
BooleanField,
Expand Down
1 change: 1 addition & 0 deletions tubee/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Collect models for import
"""

# flake8: noqa
from .action import Action, ActionType
from .callback import Callback
Expand Down
1 change: 1 addition & 0 deletions tubee/models/action.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Action Model"""

from dataclasses import dataclass
from enum import Enum
from typing import Union
Expand Down
1 change: 1 addition & 0 deletions tubee/models/callback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Callback Model"""

from dataclasses import dataclass
from datetime import datetime

Expand Down
1 change: 1 addition & 0 deletions tubee/models/channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Channel Model"""

from dataclasses import dataclass
from datetime import datetime, timedelta
from urllib.parse import urlencode
Expand Down
1 change: 1 addition & 0 deletions tubee/models/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Notification Model"""

from dataclasses import dataclass
from datetime import datetime
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions tubee/models/subscription.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Subscription Model"""

from dataclasses import dataclass
from datetime import datetime

Expand Down
1 change: 1 addition & 0 deletions tubee/models/subscription_tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SubscriptionTag Model"""

from dataclasses import dataclass

from .. import db
Expand Down
1 change: 1 addition & 0 deletions tubee/models/tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tag Model"""

from dataclasses import dataclass

from loguru import logger
Expand Down
1 change: 1 addition & 0 deletions tubee/models/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""User Model"""

import json
from dataclasses import dataclass

Expand Down
1 change: 1 addition & 0 deletions tubee/models/video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Video Model"""

from dataclasses import dataclass
from datetime import datetime
from typing import Union
Expand Down
1 change: 1 addition & 0 deletions tubee/routes/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""API for Frontend Access"""

from flask import Blueprint
from flask_login import current_user, login_required

Expand Down
1 change: 1 addition & 0 deletions tubee/routes/api_task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""API for Tasks"""

from flask import Blueprint, jsonify
from flask_login import login_required

Expand Down
1 change: 1 addition & 0 deletions tubee/routes/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The Main Routes"""

import bs4
from flask import Blueprint, jsonify, render_template, request
from flask_login import current_user # type: ignore
Expand Down
1 change: 1 addition & 0 deletions tubee/routes/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Routes involves user credentials"""

from dropbox.oauth import (
BadRequestException,
BadStateException,
Expand Down
12 changes: 10 additions & 2 deletions tubee/static/css/tag_listing.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
linear-gradient(to right, white, white),
linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)),
linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));
background-position: left center, right center, left center, right center;
background-position:
left center,
right center,
left center,
right center;
background-repeat: no-repeat;
background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
background-size:
20px 100%,
20px 100%,
10px 100%,
10px 100%;
background-attachment: local, local, scroll, scroll;
scrollbar-width: none; /* Firefox */
}
Expand Down
1 change: 1 addition & 0 deletions tubee/tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Defines All Async Task for Celery"""

from datetime import datetime
from enum import Enum
from random import randrange
Expand Down
1 change: 1 addition & 0 deletions tubee/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Some Misc Functions used in this app
"""

import logging
import secrets
import string
Expand Down
1 change: 1 addition & 0 deletions tubee/utils/dropbox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Dropbox Related Functions"""

import dropbox
from flask import current_app, url_for

Expand Down
1 change: 1 addition & 0 deletions tubee/utils/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
REQUIRED_PARAMETERS {list} -- A list of required parameters to compsoe
request to hub
"""

import re
from urllib.parse import urljoin, urlparse

Expand Down
1 change: 1 addition & 0 deletions tubee/utils/youtube.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""YouTube Data API Functions"""

import json
from typing import Union

Expand Down

0 comments on commit f2c8769

Please sign in to comment.