Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#97)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.3.0](psf/black-pre-commit-mirror@23.12.1...24.3.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Apr 2, 2024
1 parent d486712 commit 3b038f2
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 4 deletions.
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

0 comments on commit 3b038f2

Please sign in to comment.