Skip to content

Commit

Permalink
Fixed pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperAnonymous committed Feb 18, 2024
1 parent 9f3f12e commit 5f318a7
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ min-public-methods=0
# Disable the message "C0114: Missing module docstring"
# Disabled the message "W0511: fixme"
# Disabled the message "R0913: Too many arguments"
disable=C0114, W0511, R0913
# Disabled the message "W0212: Access to a protected member _ of a client class"
disable=C0114, W0511, R0913, W0212

[FORMAT]
# Disabled the message "W0603: Using the global statement"
Expand Down
2 changes: 1 addition & 1 deletion bot/db/models/bot_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GlobalConfig(Entity):
The name of the config.
"""

__slots__ = ("_id",)
__slots__ = ()

def __init__(self, _id: str) -> None:
"""
Expand Down
3 changes: 0 additions & 3 deletions bot/db/models/entity.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
"""Base entity class for all models"""

from abc import abstractmethod
from datetime import datetime

from bot.db.services import BaseService


class Entity:
"""
Expand Down
1 change: 0 additions & 1 deletion bot/db/models/user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""ADEPT User model."""

from bot.db.models.entity import Entity
from bot.db.services.user_service import UserService


class AdeptMember(Entity):
Expand Down
4 changes: 2 additions & 2 deletions bot/db/services/configs_service.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Service for dynamic bot configs."""

from ..models.bot_configs import GlobalConfig, SpamConfigs
from bot.db.models.bot_configs import GlobalConfig, SpamConfigs

from .base_service import BaseService
from bot.db.services.base_service import BaseService


class ConfigsService(BaseService):
Expand Down
2 changes: 1 addition & 1 deletion bot/db/services/user_service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""User service."""

from .base_service import BaseService
from bot.db.services.base_service import BaseService


class UserService(BaseService):
Expand Down
1 change: 0 additions & 1 deletion bot/management/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import configs
from bot import util, welcome
from bot.db.services import UserService
from bot.db.models import AdeptMember


class WelcomeCog(commands.Cog):
Expand Down

0 comments on commit 5f318a7

Please sign in to comment.