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.3
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.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ace2da7db0c696347187ac0688c186897a6bca12adfe0cabbae5d6811c22220 |
|
MD5 | 687844737186dfb96f06416a43b810c8 |
|
BLAKE2b-256 | 89d093d86c16a7a1605bc4c033da17736a21b90deb6022cd061e85c2964d21cb |