adonutwithsprinklez / CodenameEmpty

A text based adventure roguelite
GNU General Public License v3.0
6 stars 0 forks source link

Refactor generated strings to use f-strings #165

Open adonutwithsprinklez opened 6 months ago

adonutwithsprinklez commented 6 months ago

Currently the game uses lots of "%s".format(string) to modify strings in the game. These should be refactored to use f-strings for consistency.

HexDecimal commented 6 months ago

Ruff can automatically refactor these by converting percent syntax into format UP031 then format syntax into f-strings UP032.

adonutwithsprinklez commented 6 months ago

Ruff can automatically refactor these by converting percent syntax into format UP031 then format syntax into f-strings UP032.

Interesting. I will have to look into that when I begin work on this issue. Thanks for bringing it to my attention!