Skip to content

Commit

Permalink
fix(pandasai-lint): sort linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanSaleem committed May 31, 2024
1 parent 6954fae commit cc9437e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 152 deletions.
2 changes: 1 addition & 1 deletion server/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ disable = missing-module-docstring,
unused-argument,
c-extension-no-member,
not-callable,
invalid-name,
invalid-name,
3 changes: 1 addition & 2 deletions server/api/v1/users/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
from app.controllers.user import UserController
from app.schemas.extras.token import Token
from app.schemas.requests.users import LoginUserRequest
from app.schemas.responses.users import Me, UserResponse
from app.schemas.responses.users import Me
from core.factory import Factory
from core.fastapi.dependencies import AuthenticationRequired

user_router = APIRouter()

Expand Down
1 change: 0 additions & 1 deletion server/app/controllers/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from app.models import User
from app.models.user import ConnectorType, Space
from app.repositories import UserRepository
from app.repositories.dataset import DatasetRepository
from app.repositories.space import SpaceRepository
from core.controller import BaseController
Expand Down
1 change: 0 additions & 1 deletion server/app/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
String,
UniqueConstraint,
)
from sqlalchemy.dialects.postgresql import ENUM as PGEnum
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.orm import relationship

Expand Down
1 change: 0 additions & 1 deletion server/core/factory/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from app.repositories.organization import OrganizationRepository
from app.repositories.space import SpaceRepository
from core.database import get_session
from core.repository.base import BaseRepository


class Factory:
Expand Down
4 changes: 1 addition & 3 deletions server/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from fastapi.middleware import Middleware
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse
from sqlalchemy.ext.asyncio import AsyncSession

from api import router
from app.controllers.space import SpaceController
Expand All @@ -16,13 +15,12 @@
from app.repositories.space import SpaceRepository
from app.repositories.user import UserRepository
from core.config import config
from core.database.session import get_session, session
from core.database.session import session
from core.exceptions import CustomException
from core.fastapi.dependencies import Logging
from core.fastapi.middlewares import (
AuthBackend,
AuthenticationMiddleware,
ResponseLoggerMiddleware,
SQLAlchemyMiddleware,
)
from core.utils.dataframe import convert_dataframe_to_dict
Expand Down
158 changes: 16 additions & 142 deletions server/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ fastapi-event = "^0.1.3"
pydantic = "^1.10.5"
isort = "^5.12.0"
black = "^23.1.0"
pylint = "^2.16.2"
pytest = "^7.2.1"
httpx = "^0.23.3"
email-validator = "^1.3.1"
Expand All @@ -25,6 +24,7 @@ greenlet = "^3.0.3"
pandas = "^2.2.2"
python-jose = "^3.3.0"
passlib = "^1.7.4"
pylint = "^3.2.2"

[tool.poetry.dev-dependencies]
behave = "^1.2.6"
Expand Down

0 comments on commit cc9437e

Please sign in to comment.