Skip to main content

Flake8 plugin to ensure consistent usage of quotes

Project description

Project: flake8-consistent-quotes

Description

This project provides a plugin for Flake8 that checks for quote consistency at the file level. The plugin is intended for use in projects that do not have an established convention for single vs. double quotes.

If your project does follow a specific quote style convention, consider using the flake8-quotes plugin instead.

How the Plugin Works

The plugin counts the number of quote types used within a file and raises an error if the less frequently used quote appears. In such cases, the plugin emits the error: FCQ001.

Usage

To install the plugin, use the following command:

pip install flake8-consistent-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_consistent_quotes-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_consistent_quotes-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file flake8_consistent_quotes-0.1.1.tar.gz.

File metadata

  • Download URL: flake8_consistent_quotes-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for flake8_consistent_quotes-0.1.1.tar.gz
Algorithm Hash digest
SHA256 764ab8ede63a0c54cf1838d7281103bbb3be1a51aec2daa7945b270181785f7a
MD5 7c92409c75e87c8998b02b81800b7a07
BLAKE2b-256 58cc8873e18a93da915b09fab18723d370127d2a3eb600d54358325eb267db22

See more details on using hashes here.

File details

Details for the file flake8_consistent_quotes-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_consistent_quotes-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for flake8_consistent_quotes-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cddc9a5f15a4f041874aded0e06c2bcd63a6f55d46801cc7e4d906f1cf0f084
MD5 4b486e144b6f078fb5fe2b368877c7d0
BLAKE2b-256 625ac9df65cf413de055e30a3362754476e16264666a13bf34d97e7d6b8f4178

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