Flake8 lint for quotes.
Deprecation notice in 0.3.0
To anticipate multiline support, we are renaming --quotes to --inline-quotes. Please adjust your configurations appropriately.
If you are using flake8 it’s as easy as:
pip install flake8-quotes
Now you don’t need to worry about people like @sectioneight constantly complaining that you are using double-quotes and not single-quotes.
By default, we expect single quotes (‘) and look for unwanted double quotes (“). To expect double quotes (“) and find unwanted single quotes (‘), use the CLI option:
flake8 --inline-quotes '"' # We also support "double" and "single" # flake8 --inline-quotes 'double' # # We also support configuration for multiline quotes # flake8 --inline-quotes '"' --multiline-quotes "'" # We also support "'''" # flake8 --inline-quotes '"' --multiline-quotes "'''"
or configuration option in tox.ini/setup.cfg.
inline-quotes = " # We also support "double" and "single" # inline-quotes = double # # We also support configuration for multiline quotes # multiline-quotes = ' # We also support "'''" # multiline-quotes = '''
We follow the PEP8 conventions to avoid backslashes in the string. So, no matter what configuration you are using (single or double quotes) these are always valid strings
s = 'double "quotes" wrapped in singles are ignored' s = "single 'quotes' wrapped in doubles are ignored"
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size flake8-quotes-0.14.0.tar.gz (7.0 kB)||File type Source||Python version None||Upload date||Hashes View|