/flake8-quotes

Flake8 extension for checking quotes in python

Primary LanguagePythonMIT LicenseMIT

Flake8 Extension to lint for quotes.

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 --quotes '"'

or configuration option in tox.ini/setup.cfg.

quotes = "