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.pyrm-unneeded-f-str path/to/folder/
Or use as a pre-commit hook:
- repo: https://github.com/dannysepler/rm_unneeded_f_str
rev: v0.2.0
hooks:
- id: rm-unneeded-f-str
Will replace
-f'hello'
+'hello'
-f'''hello'''
+'''hello'''
-rf'hello'
+r'hello'
-f'''hello
-world'''
+f'''hello
+world'''
Will not replace
f'hello {world}'
f'''hello
{world}'''
Metadata
Release files for rm-unneeded-f-str 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rm_unneeded_f_str-0.2.0.tar.gz | 3.6 kB | Without provenance | Details for rm_unneeded_f_str-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rm_unneeded_f_str-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for rm_unneeded_f_str-0.2.0-py2.py3-none-any.whl |
Total release size: 7.7 kB
Release files / rm_unneeded_f_str-0.2.0.tar.gz
| Download URL | rm_unneeded_f_str-0.2.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0da1f61f92a224fe90a256dd49e53ee90e799103826b8f38f56e0852a2eba92c
|
|
BLAKE2b-256 checksum How to use checksums |
971a77fc3f8f80f891f6cea1dface8cf49566dfc8990044eb8cfa7069cbdb411
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / rm_unneeded_f_str-0.2.0-py2.py3-none-any.whl
| Download URL | rm_unneeded_f_str-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b8fcc0addd6a696223dcddfcfb5b61126c0623242f7103d5d565e301f77cf0fe
|
|
BLAKE2b-256 checksum How to use checksums |
0bfd43ec4251455fed7059b8bc208852c9e9415367c6f87e2ecc35c434e032c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for rm-unneeded-f-str 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.