Skip to content

Commit ddbfaa2

Browse files
committed
chore(ruff) Autofixes for ruff with Python 3.10+
Fixed 2 errors: - src/cihai_cli/cli.py: 2 × G004 (logging-f-string) Found 44 errors (2 fixed, 42 remaining). No fixes available (40 hidden fixes can be enabled with the `--unsafe-fixes` option).
1 parent 0bfee2c commit ddbfaa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cihai_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def command_info(c: Cihai, char: str, show_all: bool) -> None:
127127
query = c.unihan.lookup_char(char).first()
128128
attrs = {}
129129
if not query:
130-
log.info(f"No records found for {char}")
130+
log.info("No records found for %s", char)
131131
sys.exit()
132132
for col, _, _ in query.__table__.columns._collection:
133133
value = getattr(query, col)
@@ -159,7 +159,7 @@ def command_reverse(c: Cihai, char: str, show_all: bool) -> None:
159159
"""Lookup a word or phrase by searching definitions."""
160160
query = c.unihan.reverse_char([char])
161161
if not query.count():
162-
log.info(f"No records found for {char}")
162+
log.info("No records found for %s", char)
163163
sys.exit()
164164
for k in query:
165165
attrs = {}

0 commit comments

Comments
 (0)