Skip to content

Commit 6afde0d

Browse files
chore(internal): bummp ruff dependency (#2080)
1 parent 5a1a412 commit 6afde0d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ select = [
194194
"T201",
195195
"T203",
196196
# misuse of typing.TYPE_CHECKING
197-
"TCH004",
197+
"TC004",
198198
# import rules
199199
"TID251",
200200
]

requirements-dev.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ requests==2.31.0
140140
respx==0.22.0
141141
rich==13.7.1
142142
# via inline-snapshot
143-
ruff==0.6.9
143+
ruff==0.9.4
144144
setuptools==68.2.2
145145
# via nodeenv
146146
six==1.16.0

scripts/utils/ruffen-docs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _md_match(match: Match[str]) -> str:
4747
with _collect_error(match):
4848
code = format_code_block(code)
4949
code = textwrap.indent(code, match["indent"])
50-
return f'{match["before"]}{code}{match["after"]}'
50+
return f"{match['before']}{code}{match['after']}"
5151

5252
def _pycon_match(match: Match[str]) -> str:
5353
code = ""
@@ -97,7 +97,7 @@ def finish_fragment() -> None:
9797
def _md_pycon_match(match: Match[str]) -> str:
9898
code = _pycon_match(match)
9999
code = textwrap.indent(code, match["indent"])
100-
return f'{match["before"]}{code}{match["after"]}'
100+
return f"{match['before']}{code}{match['after']}"
101101

102102
src = MD_RE.sub(_md_match, src)
103103
src = MD_PYCON_RE.sub(_md_pycon_match, src)

src/openai/_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def to_json(
197197
@override
198198
def __str__(self) -> str:
199199
# mypy complains about an invalid self arg
200-
return f'{self.__repr_name__()}({self.__repr_str__(", ")})' # type: ignore[misc]
200+
return f"{self.__repr_name__()}({self.__repr_str__(', ')})" # type: ignore[misc]
201201

202202
# Override the 'construct' method in a way that supports recursive parsing without validation.
203203
# Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836.

0 commit comments

Comments
 (0)