Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #97

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black
ci:
Expand Down
1 change: 1 addition & 0 deletions nazurin/database/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nazurin database drivers and database manager."""

from __future__ import annotations

import importlib
Expand Down
1 change: 1 addition & 0 deletions nazurin/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nazurin models."""

from .caption import Caption
from .file import File
from .illust import Illust
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nazurin site plugins & plugin manager."""

from glob import glob
from importlib import import_module
from os import path
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/artstation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Artstation site plugin."""

from .api import Artstation
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/bilibili/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Bilibili dynamic site plugin."""

from .api import Bilibili
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/bluesky/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Bluesky site plugin."""

from .api import Bluesky
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/danbooru/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Danbooru site plugin."""

from .api import Danbooru
from .commands import *
from .config import PRIORITY
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/deviant_art/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DeviantArt site plugin."""

from .api import DeviantArt
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/gelbooru/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Gelbooru site plugin."""

from .api import Gelbooru
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/kemono/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Kemono.party site plugin."""

from .api import Kemono
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/lofter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Lofter site plugin."""

from .api import Lofter
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/moebooru/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Moebooru site plugin."""

from .api import Moebooru
from .commands import *
from .config import PRIORITY
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/pixiv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pixiv site plugin."""

from .api import Pixiv
from .commands import *
from .config import PRIORITY
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/twitter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Twitter site plugin."""

from .api import Twitter
from .commands import *
from .config import PRIORITY
Expand Down
8 changes: 5 additions & 3 deletions nazurin/sites/twitter/api/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ async def tweet_detail(self, tweet_id: str):
)
self.headers.update(
{
Headers.AUTHORIZATION: AuthorizationToken.LOGGED_IN
if AUTH_TOKEN
else AuthorizationToken.GUEST
Headers.AUTHORIZATION: (
AuthorizationToken.LOGGED_IN
if AUTH_TOKEN
else AuthorizationToken.GUEST
)
}
)
variables = WebAPI.variables
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/wallhaven/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Wallhaven site plugin."""

from .api import Wallhaven
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/weibo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sina Weibo site plugin."""

from .api import Weibo
from .config import PRIORITY
from .interface import handle, patterns
Expand Down
1 change: 1 addition & 0 deletions nazurin/sites/zerochan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Zerochan site plugin."""

from .api import Zerochan
from .commands import *
from .config import PRIORITY
Expand Down
1 change: 1 addition & 0 deletions nazurin/storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nazurin storage drivers and storage manager."""

import asyncio
import importlib

Expand Down
Loading