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.7.tar.gz (17.0 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.7-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_otello_linter-1.0.7.tar.gz
  • Upload date:
  • Size: 17.0 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.7.tar.gz
Algorithm Hash digest
SHA256 eecba666331129bb91d589d9365859adda81bc0b5e6ad3e3612dca7695aa3cc0
MD5 48182242a546b99b1b57e8994a4734a2
BLAKE2b-256 8e065045d6051a741a744f6c2a96db1d7d1ccd9f199b34aedca816da4691b0f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for custom_otello_linter-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c03766f9c4a889602069633306a501af8886cc8e3b5756c11f571aecdaaf8b30
MD5 c7de4481e52549182a880fe5553c1ed8
BLAKE2b-256 c2c0f0d983b6c76bf8d356c7cdbb17b6775bbd5a55af68fd116839c8247db657

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