Find and replace unneeded f-strings in your code.
Project description
rm_unneeded_f_str
Find and replace unneeded f-strings in your code.
Installation
pip install rm_unneeded_f_str
Usage
Run via the CLI on a file or folder:
rm-unneeded-f-str path/to/file.py
rm-unneeded-f-str path/to/folder/
Or use as a pre-commit hook:
- repo: https://github.com/dannysepler/rm_unneeded_f_str
rev: v0.0.4
hooks:
- id: rm_unneeded_f_str
Will replace
-f'hello world'
+'hello world'
-f'''hello world'''
+'''hello world'''
-f'''hello
-world'''
+f'''hello
+world'''
Will not replace
f'hello {world}'
f'''hello
{world}'''
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rm_unneeded_f_str-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a1b7f64edfc7379a4f49e495a5be3a4c15b0dd964915873834ebc3b1209b16 |
|
MD5 | 01227333b412036a6c0a932b43254e5e |
|
BLAKE2b-256 | 6ebc27ee48be713dd88ee9235a3470ec69163016312d818a5a81d411982f7b9b |