|
| 1 | +======================= |
| 2 | +flake8-unused-fstrings |
| 3 | +======================= |
| 4 | + |
| 5 | +.. start short_desc |
| 6 | +
|
| 7 | +**Flake8 plugin to catch f-strings with no fields.** |
| 8 | + |
| 9 | +.. end short_desc |
| 10 | +
|
| 11 | +
|
| 12 | +.. start shields |
| 13 | +
|
| 14 | +.. list-table:: |
| 15 | + :stub-columns: 1 |
| 16 | + :widths: 10 90 |
| 17 | + |
| 18 | + * - Tests |
| 19 | + - |actions_linux| |actions_windows| |actions_macos| |coveralls| |
| 20 | + * - Activity |
| 21 | + - |commits-latest| |commits-since| |maintained| |
| 22 | + * - QA |
| 23 | + - |codefactor| |actions_flake8| |actions_mypy| |
| 24 | + * - Other |
| 25 | + - |license| |language| |requires| |
| 26 | + |
| 27 | +.. |actions_linux| image:: https://github.com/python-formate/flake8-unused-fstrings/workflows/Linux/badge.svg |
| 28 | + :target: https://github.com/python-formate/flake8-unused-fstrings/actions?query=workflow%3A%22Linux%22 |
| 29 | + :alt: Linux Test Status |
| 30 | + |
| 31 | +.. |actions_windows| image:: https://github.com/python-formate/flake8-unused-fstrings/workflows/Windows/badge.svg |
| 32 | + :target: https://github.com/python-formate/flake8-unused-fstrings/actions?query=workflow%3A%22Windows%22 |
| 33 | + :alt: Windows Test Status |
| 34 | + |
| 35 | +.. |actions_macos| image:: https://github.com/python-formate/flake8-unused-fstrings/workflows/macOS/badge.svg |
| 36 | + :target: https://github.com/python-formate/flake8-unused-fstrings/actions?query=workflow%3A%22macOS%22 |
| 37 | + :alt: macOS Test Status |
| 38 | + |
| 39 | +.. |actions_flake8| image:: https://github.com/python-formate/flake8-unused-fstrings/workflows/Flake8/badge.svg |
| 40 | + :target: https://github.com/python-formate/flake8-unused-fstrings/actions?query=workflow%3A%22Flake8%22 |
| 41 | + :alt: Flake8 Status |
| 42 | + |
| 43 | +.. |actions_mypy| image:: https://github.com/python-formate/flake8-unused-fstrings/workflows/mypy/badge.svg |
| 44 | + :target: https://github.com/python-formate/flake8-unused-fstrings/actions?query=workflow%3A%22mypy%22 |
| 45 | + :alt: mypy status |
| 46 | + |
| 47 | +.. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-formate/flake8-unused-fstrings/badge.svg |
| 48 | + :target: https://dependency-dash.repo-helper.uk/github/python-formate/flake8-unused-fstrings/ |
| 49 | + :alt: Requirements Status |
| 50 | + |
| 51 | +.. |coveralls| image:: https://img.shields.io/coveralls/github/python-formate/flake8-unused-fstrings/master?logo=coveralls |
| 52 | + :target: https://coveralls.io/github/python-formate/flake8-unused-fstrings?branch=master |
| 53 | + :alt: Coverage |
| 54 | + |
| 55 | +.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/python-formate/flake8-unused-fstrings?logo=codefactor |
| 56 | + :target: https://www.codefactor.io/repository/github/python-formate/flake8-unused-fstrings |
| 57 | + :alt: CodeFactor Grade |
| 58 | + |
| 59 | +.. |license| image:: https://img.shields.io/github/license/python-formate/flake8-unused-fstrings |
| 60 | + :target: https://github.com/python-formate/flake8-unused-fstrings/blob/master/LICENSE |
| 61 | + :alt: License |
| 62 | + |
| 63 | +.. |language| image:: https://img.shields.io/github/languages/top/python-formate/flake8-unused-fstrings |
| 64 | + :alt: GitHub top language |
| 65 | + |
| 66 | +.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/flake8-unused-fstrings/v1.0.1 |
| 67 | + :target: https://github.com/python-formate/flake8-unused-fstrings/pulse |
| 68 | + :alt: GitHub commits since tagged version |
| 69 | + |
| 70 | +.. |commits-latest| image:: https://img.shields.io/github/last-commit/python-formate/flake8-unused-fstrings |
| 71 | + :target: https://github.com/python-formate/flake8-unused-fstrings/commit/master |
| 72 | + :alt: GitHub last commit |
| 73 | + |
| 74 | +.. |maintained| image:: https://img.shields.io/maintenance/yes/2026 |
| 75 | + :alt: Maintenance |
| 76 | + |
| 77 | +.. end shields |
| 78 | +
|
| 79 | +Installation |
| 80 | +-------------- |
| 81 | + |
| 82 | +.. start installation |
| 83 | +
|
| 84 | +``flake8-unused-fstrings`` can be installed from GitHub. |
| 85 | + |
| 86 | +To install with ``pip``: |
| 87 | + |
| 88 | +.. code-block:: bash |
| 89 | +
|
| 90 | + $ python -m pip install git+https://github.com/python-formate/flake8-unused-fstrings |
| 91 | +
|
| 92 | +.. end installation |
| 93 | +
|
| 94 | +
|
| 95 | +Rules |
| 96 | +------ |
| 97 | + |
| 98 | +* **NUF001**: f-string without interpolation. |
0 commit comments