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

build(deps-dev): bump ruff from 0.1.9 to 0.1.14 #60

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.9'
rev: 'v0.1.14'
hooks:
- id: ruff
args:
Expand Down
59 changes: 40 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ prometheus-fastapi-instrumentator = "^6.1.0"
optional = true

[tool.poetry.group.quality.dependencies]
ruff = "==0.1.9"
ruff = "==0.1.14"
mypy = "==1.8.0"
types-requests = ">=2.0.0"
types-python-jose = ">=3.3.0"
Expand Down
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
Loading