Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add pyproject.toml configuration to ruff format command in Makefile #4714

Merged
merged 4 commits into from
Nov 19, 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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fix_codespell: ## run codespell to fix spelling errors

format: ## run code formatters
@uv run ruff check . --fix
@uv run ruff format .
@uv run ruff format . --config pyproject.toml
@cd src/frontend && npm run format

unsafe_fix:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ directory = "coverage"


[tool.ruff]
exclude = ["src/backend/langflow/alembic/*"]
exclude = ["src/backend/base/langflow/alembic/*"]
line-length = 120

[tool.ruff.lint]
Expand Down
4 changes: 0 additions & 4 deletions src/backend/base/langflow/api/v1/api_key.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import TYPE_CHECKING
from uuid import UUID

from fastapi import APIRouter, Depends, HTTPException, Response
Expand All @@ -12,9 +11,6 @@
from langflow.services.database.models.api_key.model import ApiKeyCreate, UnmaskedApiKeyRead
from langflow.services.deps import get_settings_service

if TYPE_CHECKING:
pass

router = APIRouter(tags=["APIKey"], prefix="/api_key")


Expand Down