flake8-vedro
Flake8 based linter for Vedro framework
Installation
pip install flake8-vedro
Configuration
Flake8-vedro is flake8 plugin, so the configuration is the same as flake8 configuration.
You can ignore rules via
- file
setup.cfg: parameterignore
[flake8]
ignore = VDR101
- comment in code
#noqa: VDR101
Some rules in linter should be configurated:
[flake8]
scenario_params_max_count = 8 # VDR109
allowed_to_redefine_list = page,page2 # VDR311
is_context_assert_optional = true # VDR400
allowed_interfaces_list = KafkaApi,SmthApi # VDR302
allow_partial_redefinitions_in_one_step = True # VDR312
allow_unused_with_block_attributes = False # VDR313
ignore_variables_pattern = ^(log|history).* # VDR313
allow_ifs_in_steps = init,given # VDR314
Rules
Scenario Rules
- VDR001. Decorator @vedro.only should not be presented
- VDR002. Scenario should be inherited from class vedro.Scenario
- VDR103. Scenario should be located in the folder "scenarios/”
- VDR104. Scenario should have a subject
- VDR105. Scenario subject should not be empty
- VDR106. Scenario should have only one subject
- VDR107. Subject is not parameterized*
- VDR108. Calling functions in parametrization
- VDR109. Limit the amount of parameters in a parametrized scenario
Scenario Steps Rules
- VDR300. Step name should start with..
- VDR301. Steps name should be in right order
- VDR302. Interface should not be used in given or asserted steps
- VDR303. Scenario should have a "when" step
- VDR304. Scenario should have only one "when" step
- VDR305. Scenario should have a "then" step
- VDR306. Scenario should have only one "then" step
- VDR307. Step should have an assertion
- VDR308. Step should have specific assertions
- VDR309. Step should not have comparison without assert
- VDR310. Some steps should not have an assertion
- VDR311. Scope variables should not be redefined
- VDR312. Scope variables should not be partially redefined
- VDR313. Scope variables should not be left unused
- VDR314. Steps should not have branching
Contexts Rules
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8_vedro-1.2.0.tar.gz
(24.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8_vedro-1.2.0.tar.gz.
File metadata
- Download URL: flake8_vedro-1.2.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a99b123a6395e73fac4a55b209e8763b190a94f891c5afbee66660a0e5a699a
|
|
| MD5 |
f750c778acf64fa9bf0267c04c1c7135
|
|
| BLAKE2b-256 |
48b41787b4ac4601164657b1afb1020aaae3297a16108d17038f713c415006c6
|
File details
Details for the file flake8_vedro-1.2.0-py3-none-any.whl.
File metadata
- Download URL: flake8_vedro-1.2.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd9eefc3b4f974334184f1310220bffbd00b47fc41215d2365ad8cf7f0d4161
|
|
| MD5 |
eb0594110f9103178d789c81741253a9
|
|
| BLAKE2b-256 |
ecc9230b9df262194bf33357afab48d948a0358b1c81e621210a62853f72f887
|