Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
style: Fixes lint & format
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Jan 29, 2024
1 parent f2c2e5b commit 6598c7f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/api/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from app.models import User, UserScope
from app.schemas.login import TokenPayload

__all__ = ["get_user_crud", "get_repo_crud", "get_guideline_crud", "get_current_user"]
__all__ = ["get_current_user", "get_guideline_crud", "get_repo_crud", "get_user_crud"]

# Scope definition
oauth2_scheme = OAuth2PasswordBearer(
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from app.core.config import settings

__all__ = ["create_access_token", "verify_password", "hash_password"]
__all__ = ["create_access_token", "hash_password", "verify_password"]

pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")

Expand Down
2 changes: 1 addition & 1 deletion src/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from sqlmodel import Field, Relationship, SQLModel

__all__ = ["GHRole", "UserScope", "User", "Repository", "Guideline"]
__all__ = ["GHRole", "Guideline", "Repository", "User", "UserScope"]


class GHRole(str, Enum):
Expand Down
2 changes: 1 addition & 1 deletion src/app/schemas/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from pydantic import BaseModel, Field

__all__ = ["Snippet", "ComplianceResult"]
__all__ = ["ComplianceResult", "Snippet"]


class Snippet(BaseModel):
Expand Down
3 changes: 2 additions & 1 deletion src/app/schemas/guidelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .base import OptionalGHToken

__all__ = ["GuidelineCreate", "GuidelineEdit", "ContentUpdate", "OrderUpdate"]
__all__ = ["ContentUpdate", "GuidelineCreate", "GuidelineEdit", "OrderUpdate"]


class TextContent(BaseModel):
Expand All @@ -32,6 +32,7 @@ class GuidelineExample(BaseModel):
class GuidelineContent(BaseModel):
title: str = Field(..., min_length=3, max_length=100)
details: str = Field(..., min_length=6, max_length=1000)
# category: str


class ParsedGuideline(GuidelineContent):
Expand Down
2 changes: 1 addition & 1 deletion src/app/schemas/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from app.models import UserScope

__all__ = ["Token", "GHAccessToken"]
__all__ = ["GHAccessToken", "Token"]


class GHAccessToken(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/app/schemas/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .base import OptionalGHToken, _Id

__all__ = ["RepoCreate", "RepoCreation", "RepoUpdate", "GuidelineOrder"]
__all__ = ["GuidelineOrder", "RepoCreate", "RepoCreation", "RepoUpdate"]


class RepoCreate(_Id, OptionalGHToken):
Expand Down
2 changes: 1 addition & 1 deletion src/app/schemas/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .base import _Id

__all__ = ["UserCreate", "UserCreation", "Cred", "CredHash"]
__all__ = ["Cred", "CredHash", "UserCreate", "UserCreation"]


# Accesses
Expand Down

0 comments on commit 6598c7f

Please sign in to comment.