Skip to main content

flake8 based linter for frontend tests

Project description

custom-otello-linter

Flake8 based linter for frontend tests

Installation

pip install custom-otello-linter

Configuration

Custom-otello-linter is flake8 plugin, so the configuration is the same as flake8 configuration.

You can ignore rules via

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

## Rules

### Scenario Rules
1. [OCS101. Decorator @vedro.params should not be presented](./custom_otello_linter/rules/OCS101.md)
2. [OCS102. Missing "SCREENSHOTS" allure label when using "make_screenshot_for_comparison"](./custom_otello_linter/rules/OCS102.md)
3. [OCS103. Missing platform in subject: must contain one of platform from dicts.platforms as (platform) or ({{platform}}) placeholder](./custom_otello_linter/rules/OCS103.md)
4. [OCS104. Invalid platform in subject: platform in subject must be placed in the end of the subject and be one of dicts.platforms as (platform) or ({{platform}}) placeholder](./custom_otello_linter/rules/OCS104.md)
5. [OCS105. Platform in subject doesn`t match platform in allure labels](./custom_otello_linter/rules/OCS105.md)

###  Scenario Steps Rules
1. [OCS300. Function make_screenshot used once](./custom_otello_linter/rules/OCS300.md)
2. [OCS301. Missing "make_screenshot_for_comparison" call when using "SCREENSHOTS" label](./custom_otello_linter/rules/OCS301.md)
3. [OCS302. Missing platform param in page opening contexts of tests parametrized with platforms](./custom_otello_linter/rules/OCS302.md)

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

custom_otello_linter-1.0.6.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

custom_otello_linter-1.0.6-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file custom_otello_linter-1.0.6.tar.gz.

File metadata

  • Download URL: custom_otello_linter-1.0.6.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for custom_otello_linter-1.0.6.tar.gz
Algorithm Hash digest
SHA256 78393134bc8ee080a57dfdf1d2795b83531ed0c42ffb000f0c4f9c68a9575652
MD5 4ed8efdffd75c448cddd594b9de3e4ca
BLAKE2b-256 c1e4c6cf1ee1c5fb7a876211b07ecd7c93183c4eef1cebcd54acbb483457e6ff

See more details on using hashes here.

File details

Details for the file custom_otello_linter-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_otello_linter-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb9a4a48edee0534961809072e89e32aa14b6d623ff4a18956e766a80e80f5c
MD5 9ff1de7a558eebcd32a944966057397a
BLAKE2b-256 76bcdace93686afc82cbcc2d418003535988d2d7b8068c96683c7dc854c72b7f

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