Skip to main content

flake8-qa-style

Flake8 based linter with some qa best-practice for writing tests

Installation

pip inslall flake8-qa-style

Rules

  1. CS001: using sleep(1) instead of sleep(var), var - meaningful variable
  2. CS002: using print()
  3. CS003: assert same variables: assert var == var
  4. CS004: assert variable with constant: assert var == 1
  5. CS005: missing type annotation for argument in function
  6. CS006: missing function return type annotation
  7. CS007: file should not start with a blank line
  8. CS008: nested "with" statements of the same type should be comma-separated
  9. CS009: each context manager in a "with" statement must be on its own line
  10. CS010: async function has no asynchronous calls or features

Rules configuration

[flake8]
;for methods with @property decorator skip CS006
skip_property_return_annotation = true

Configuration

Flake8-qa-style is flake8 plugin, so the configuration is the same as flake8 configuration.

You can ignore rules via

  • file setup.cfg: parameter ignore
[flake8]
ignore = CS001
  • comment in code #noqa: CS001

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_qa_style-1.3.0.tar.gz (14.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_qa_style-1.3.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file flake8_qa_style-1.3.0.tar.gz.

File metadata

  • Download URL: flake8_qa_style-1.3.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for flake8_qa_style-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3faef197efd04c2313bb6afaf50f8905f224a3e26eef01944681b92c65130eb9
MD5 cf99921f9a64d97656c842a066e5ad10
BLAKE2b-256 8ea2ca76aeaeb4cf5c366e6016080874c117f75bffc3885e39f3cd40228c3725

See more details on using hashes here.

File details

Details for the file flake8_qa_style-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_qa_style-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 356f0bd2a32cb2387b2b0e8e210059d3d5725e8f52dcfdf8aa9761929be1f2f1
MD5 3e403907bee6c775ff1cc3db177296d2
BLAKE2b-256 692727b0f987f3b23e138f36609e679c9823c9a15a54ed1375e3a1cd09b9c749

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page