Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 23, 2024
1 parent a6279de commit d4e2738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kscale/web/krec.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def upload_krec(
logger.warning("File extension is not .krec - are you sure this is a valid K-Rec file?")

try:
krec.KRec.load(file_path)
krec.KRec.load(str(file_path.resolve()))
except Exception as e:
raise ValueError(f"Failed to load K-Rec from {file_path} - are you sure this is a valid K-Rec file?") from e

Expand Down Expand Up @@ -69,8 +69,8 @@ async def upload_krec(
return create_response["krec_id"]


def upload_krec_sync(robot_id: str, file_path: Path, name: str, description: str | None = None) -> str:
return asyncio.run(upload_krec(robot_id, file_path, name, description))
def upload_krec_sync(robot_id: str, file_path: Path, description: str | None = None) -> str:
return asyncio.run(upload_krec(robot_id, file_path, description))


async def fetch_krec_info(krec_id: str, cache_dir: Path) -> dict:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ select = [
]

ignore = [
"ANN101", "ANN102",
"D101", "D102", "D103", "D104", "D105", "D106", "D107",
"N812", "N817",
"PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR2004",
Expand Down

0 comments on commit d4e2738

Please sign in to comment.