Skip to main content

Flake8 lint for quotes.

Project description

Build Status

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


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.10.0.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file flake8-quotes-0.10.0.tar.gz.

File metadata

File hashes

Hashes for flake8-quotes-0.10.0.tar.gz
Algorithm Hash digest
SHA256 e71b13113ee373e6451343972a22bd375f29c97de9abde6a6d0be2ff3668385a
MD5 055cd26bf391efb3fc85a3cc121561a0
BLAKE2b-256 4690010a9f7a2d753e91d49c5d065897deab851c9b680b383b3c6986f55bdf5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page