Skip to content

Commit

Permalink
feat: ディレクトリ名をabcからabstractに
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Dec 24, 2022
1 parent 4a36d13 commit caaaa4e
Show file tree
Hide file tree
Showing 26 changed files with 23 additions and 22 deletions.
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ per-file-ignores=
./mipac/__init__.py:E402,F403,F811,F401
./mipac/**/__init__.py:F403,F401
./mipac/_version.py:E501
[tool.black]
exclude = 'mipac/_version.py'
3 changes: 1 addition & 2 deletions mipac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@

__path__ = __import__('pkgutil').extend_path(__path__, __name__)

from .abc import * # noqa: F403, F401
from .abstract import * # noqa: F403, F401
from .models import * # noqa: F403, F401
from .types import *
from .models import *
from .manager import *
from .actions import *
from .abc import *

from . import _version

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion mipac/actions/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from mipac.abc.action import AbstractAction
from mipac.abstract.action import AbstractAction
from mipac.errors.base import ParameterError
from mipac.http import HTTPClient, Route
from mipac.models.chat import ChatMessage
Expand Down
2 changes: 1 addition & 1 deletion mipac/actions/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.action import AbstractAction
from mipac.abstract.action import AbstractAction
from mipac.errors.base import ParameterError
from mipac.http import HTTPClient, Route
from mipac.types.drive import IDriveFile
Expand Down
2 changes: 1 addition & 1 deletion mipac/actions/my.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from mipac.abc.action import AbstractAction
from mipac.abstract.action import AbstractAction
from mipac.http import HTTPClient, Route
from mipac.models.follow import FollowRequest
from mipac.types.follow import IFollowRequest
Expand Down
2 changes: 1 addition & 1 deletion mipac/actions/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, AsyncIterator, Optional

from mipac.abc.action import AbstractAction
from mipac.abstract.action import AbstractAction
from mipac.errors.base import ParameterError
from mipac.http import HTTPClient, Route
from mipac.manager.favorite import FavoriteManager
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.core.models.chart import RawActiveUsersChart, RawDriveChart
from mipac.http import HTTPClient, Route

Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.actions.drive import DriveActions, FileActions, FolderActions
from mipac.http import HTTPClient

Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.errors.base import NotExistRequiredData
from mipac.http import HTTPClient, Route
from mipac.util import check_multi_arg
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/favorite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route
from mipac.models.user import FollowRequest, UserDetailed
from mipac.types.user import IFollowRequest
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/moderator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/my.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.actions.my import MyActions
from mipac.http import HTTPClient

Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.actions.note import ClientNoteActions, NoteActions
from mipac.http import HTTPClient, Route

Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.http import HTTPClient, Route
from mipac.models.emoji import CustomEmoji
from mipac.types.instance import IInstanceMetaLite
Expand Down
2 changes: 1 addition & 1 deletion mipac/manager/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Optional

from mipac.abc.manager import AbstractManager
from mipac.abstract.manager import AbstractManager
from mipac.actions.user import UserActions
from mipac.http import HTTPClient

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion mipac/types/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import TYPE_CHECKING, List, Literal, TypedDict

if TYPE_CHECKING:
from mipac.types.channel import IChannel
from mipac.types.emoji import ICustomEmojiLite
from mipac.types.instance import IInstanceLite
from mipac.types.note import INote
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[tool.black]
line-length = 79
exclude = 'mipac/_version.py'


[tool.isort]
profile = "black"
Expand All @@ -8,3 +10,6 @@ line_length = 79
[build-system]
requires = ["setuptools", "versioneer[toml]"]
build-backend = "setuptools.build_meta"

[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F403"]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

packages = [
'mipac',
'mipac.abc',
'mipac.abstract',
'mipac.actions',
'mipac.core',
'mipac.core.models',
Expand Down

0 comments on commit caaaa4e

Please sign in to comment.