A flake8 plugin to ban f-strings
Project description
flake8-no-unnecessary-fstrings
A flake8 plugin to detect f-strings that don't actually do any interpolation.
Installation
Install from pip
with:
python -m pip install flake8-no-unnecessary-fstrings
Python 3.6+ supported.
When installed it will automatically be run as part of flake8
; you can
check it is being picked up with:
$ flake8 --version
3.7.9 (flake8-no-unnecessary-fstrings: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.0 on Darwin
Rules
- NUF001: No unecessary f-strings
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
File details
Details for the file flake8-no-unnecessary-fstrings-1.0.1.tar.gz
.
File metadata
- Download URL: flake8-no-unnecessary-fstrings-1.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd38060772735cc633fb879461c089232c779909d130dfa63d6f6d7390caa151 |
|
MD5 | 6b4130cd3ef8000f0d1109297b21b285 |
|
BLAKE2b-256 | 846e5f782a51f93fc8dbeeed6473bdc4594d8e72ecd9ecb98ba51c781237475e |
File details
Details for the file flake8_no_unnecessary_fstrings-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_no_unnecessary_fstrings-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2194ca3686b51202872baa699a246b44855cd801dcb5b82a0ffaf1bf5cb58afe |
|
MD5 | 0fa57424123efa4ab3b499666994a64c |
|
BLAKE2b-256 | 54f2fe099a1b2a466ddb71b70e33e325ae5f7890dea2e8be7aeac6265dd70911 |