Flake8 Extension to 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.
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 = '''
Metadata
Release files for flake8-quotes 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flake8-quotes-0.12.0.zip | 13.0 kB | Without provenance | Details |
Release files / flake8-quotes-0.12.0.zip
| Download URL | flake8-quotes-0.12.0.zip |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1469fe554777f81b3a0be0b828663e400b028fde36d86a03c7c8a036c8ecaca4
|
|
BLAKE2b-256 checksum How to use checksums |
a04f60ff2549d4b4abb3665f7019184652f5bd9a421ad7312cc1aef644317441
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for flake8-quotes 0.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.