Skip to main content

flake8 based linter for e2e tests

Project description

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

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

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-qa-style-1.0.0.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

flake8_qa_style-1.0.0-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page