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

Commit

Permalink
build(deps-dev): bump ruff from 0.1.9 to 0.1.14 (#60)
Browse files Browse the repository at this point in the history
* build(deps-dev): Bump ruff from 0.1.9 to 0.1.14

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.9 to 0.1.14.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.1.9...v0.1.14)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* build(deps-dev): Bump ruff from 0.1.9 to 0.1.14

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.9 to 0.1.14.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.1.9...v0.1.14)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* style: Fixes lint & format

* style(precommit): bumps ruff in precommit hooks

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: F-G Fernandez <[email protected]>
  • Loading branch information
dependabot[bot] and frgfm authored Jan 29, 2024
1 parent 962e007 commit 762c187
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 29 deletions.
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

0 comments on commit 762c187

Please sign in to comment.