Skip to content

Commit 7bd7959

Browse files
committed
Integrate ruff linting
Also removes existing errors
1 parent 326d432 commit 7bd7959

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: astral-sh/setup-uv@v6
3535
- run: uv python install python3.13
36+
- run: uv run ruff check src/obelisk/
3637
- run: uv run pytest

src/obelisk/asynchronous/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ async def _verify_token(self):
9494
try:
9595
await self._get_token()
9696
return
97-
except:
97+
except: # noqa: E722
98+
self.log.info("excepted, Retrying token fetch")
9899
continue
99100

100101
async def http_post(self, url: str, data: Any = None,

src/obelisk/asynchronous/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from datetime import datetime, timedelta
33
from math import floor
4-
from typing import AsyncGenerator, Generator, List, Literal, Optional
4+
from typing import AsyncGenerator, List, Literal, Optional
55

66
import httpx
77
from pydantic import ValidationError

0 commit comments

Comments
 (0)