Skip to content

Commit 4cdefa5

Browse files
goffrieConvex, Inc.
authored andcommitted
Use ruff for Python formatting & linting (#40908)
GitOrigin-RevId: 736c2541b10b0f9bc4bb400adb82f1a1476e22dc
1 parent 816801a commit 4cdefa5

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.flake8

Lines changed: 0 additions & 7 deletions
This file was deleted.

python/convex/http_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import requests
1010
from requests.exceptions import HTTPError
1111

12-
from . import __version__ # Also update in pyproject.toml
13-
from . import ConvexError
12+
from . import (
13+
ConvexError,
14+
__version__, # Also update in pyproject.toml
15+
)
1416
from .values import (
1517
CoercibleToConvexValue,
1618
ConvexValue,
@@ -66,7 +68,7 @@ def set_debug(self, value: bool) -> None:
6668
def _request(self, url: str, name: str, args: FunctionArgs) -> ConvexValue:
6769
if args is None:
6870
args = {}
69-
if not type(args) is dict:
71+
if type(args) is not dict:
7072
raise Exception(
7173
f"Arguments to a Convex function must be a dictionary. Received: {args}"
7274
)

python/convex/values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def strict_convex_to_json(v: ConvexValue) -> JsonValue:
208208

209209

210210
def coerce_args_to_convex(
211-
v: Optional[Mapping[str, CoercibleToConvexValue]] = None
211+
v: Optional[Mapping[str, CoercibleToConvexValue]] = None,
212212
) -> Dict[str, ConvexValue]:
213213
"""Convert a mapping of strings to objects convertable to Convex values into a dict."""
214214
if v is None:

0 commit comments

Comments
 (0)