vtcode 0.123.7

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
id: prefer-fstring
language: Python
severity: hint
message: Prefer f-strings over `.format()` or `%` formatting.
note: |
  f-strings (Python 3.6+) are more readable and performant than
  `.format()` or `%`-style formatting. They inline the expressions
  directly in the string literal, making the output easier to read.
rule:
  any:
    - pattern: '"{}" % $$$ARGS'
    - pattern: "'{}' % $$$ARGS"
    - pattern: '"$STR".format($$$ARGS)'
    - pattern: "'$STR'.format($$$ARGS)"
files:
  - "**/*.py"
  - "!**/examples/**"