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.2.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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8_consistent_quotes-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9a54d90adcccd5e748481884ed2aca651cc8a46d388eba3df85d88de52820ee4
MD5 5cc8a108dc000ac1ea9f560767159468
BLAKE2b-256 94293307fba0592a3cde08a30df75d314a4c1a762f5e525772a42909f59b9b3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8_consistent_quotes-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58fd58404ba9f467c08f042290bd61d0083ed59091fafd9f77e70655f2a01fde
MD5 a97013664e0dc9fd86dee93d04783037
BLAKE2b-256 a1cf9f265bade170aa883437af200d8d34e0629be81b52005ea8aba332b89135

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