Skip to main content

A demo flake8 plugin that tries to protect against Python mutable defaults issue

Project description

flake8-explicitclassvar

A demo flake8 plugin that tries to protect against Python mutable defaults issue.

Development

  1. Create a venv: uv venv
  2. Activate it: source .venv/bin/activate
  3. Install the plugin in editable mode: uv pip install -e .
  4. Run Flake8: flake8 tests/

Rule

  • ECV100: class variable must be annotated with ClassVar or have a default of None"

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_explicitclassvar-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

flake8_explicitclassvar-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file flake8_explicitclassvar-0.1.0.tar.gz.

File metadata

File hashes

Hashes for flake8_explicitclassvar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1dd751b5ffd75a96cf4afdf0db6b82821dd6b2b16d47b4824e13715e443c71d0
MD5 85876030c97f3a739cec7900c75a438c
BLAKE2b-256 634eb823448e8550a5be6c9148fa46e23ff633aaa1bedcaeb236183f7fe54583

See more details on using hashes here.

File details

Details for the file flake8_explicitclassvar-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_explicitclassvar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3951197b4331ee9e617df968e877f3de89d09e5a10238b44ee45b082bdd8c31
MD5 7d5741a7e54fb7e7fab07293e5d5f4c2
BLAKE2b-256 a4ecd0c0336bbf6230d01ffddafee4e0dc93374e0e44e7d866cf6f21e77f1b3c

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