Metadata-Version: 2.1
Name: rm-unneeded-f-str
Version: 0.0.8
Summary: Find and replace unneeded f-strings in your code.
Home-page: https://github.com/dannysepler/rm_unneeded_f_str
Author: Danny Sepler
Author-email: dannysepler@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

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:

```yaml
-   repo: https://github.com/dannysepler/rm_unneeded_f_str
    rev: v0.0.8
    hooks:
    -   id: rm_unneeded_f_str
```

## Will replace

```diff
-f'hello world'
+'hello world'
-f'''hello world'''
+'''hello world'''
-f'''hello
-world'''
+f'''hello
+world'''
```

## Will not replace

```python
f'hello {world}'
f'''hello
{world}'''
```


