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.1
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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af1094bcf9e8a713e38f175bec58c77751531d11c21bcc0fed41d7d561cea116 |
|
MD5 | e69e09cd96ba0693676dd2459f666fff |
|
BLAKE2b-256 | 58f902c7f1765cefd7404e36ca14380b1ef4c9c6e393f4c9b1f361572bc2a966 |