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
Close
Hashes for flake8-no-unnecessary-fstrings-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd38060772735cc633fb879461c089232c779909d130dfa63d6f6d7390caa151 |
|
MD5 | 6b4130cd3ef8000f0d1109297b21b285 |
|
BLAKE2b-256 | 846e5f782a51f93fc8dbeeed6473bdc4594d8e72ecd9ecb98ba51c781237475e |
Close
Hashes for flake8_no_unnecessary_fstrings-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2194ca3686b51202872baa699a246b44855cd801dcb5b82a0ffaf1bf5cb58afe |
|
MD5 | 0fa57424123efa4ab3b499666994a64c |
|
BLAKE2b-256 | 54f2fe099a1b2a466ddb71b70e33e325ae5f7890dea2e8be7aeac6265dd70911 |