Flake8 lint for quotes.
Project description
Deprecation notice in 0.3.0
To anticipate multiline support, we are renaming --quotes to --inline-quotes. Please adjust your configurations appropriately.
Usage
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.
Configuration
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 = '''
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
flake8-quotes-0.11.0.tar.gz
(6.8 kB
view details)
File details
Details for the file flake8-quotes-0.11.0.tar.gz.
File metadata
- Download URL: flake8-quotes-0.11.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b8e5ea5407e8308ff237ab814414a1dcd4c309c5c47363b6ad07a35068684e1
|
|
| MD5 |
27a8fd2c1c18b1ae70ad82abceefa75a
|
|
| BLAKE2b-256 |
d59b20adf6a3c718a4ad48c1968e2851aa27b9cb9c907b96519fe7797bebef7f
|