Skip to content

Commit 5782127

Browse files
committed
Update code style: remove deprecated Ruff rules and switch to f-string formatting
1 parent 6fd03c5 commit 5782127

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎examples/models.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
base_url=os.environ.get("GATEWAY_URL"), # defaults to https://llm.qntx.fun/v1
1919
)
2020

21-
print("[gateway] %s\n" % client.base_url)
21+
print(f"[gateway] {client.base_url}\n")
2222
print("Available models:")
2323

2424
for m in client.models.list():

‎pyproject.toml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ select = [
6868
"RUF", # ruff-specific
6969
]
7070
ignore = [
71-
"ANN101", # missing self annotation
72-
"ANN102", # missing cls annotation
7371
"ANN401", # dynamically typed expressions (Any)
7472
]
7573

0 commit comments

Comments
 (0)