flake8 based linter for vedro framework
Project description
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
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
Contexts Rules
Project details
Release history Release notifications | RSS feed
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.0.2.tar.gz
(20.4 kB
view details)
Built Distribution
File details
Details for the file flake8_vedro-1.0.2.tar.gz
.
File metadata
- Download URL: flake8_vedro-1.0.2.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ac12032cad38b1aae480c9d766c132cd830db4bd3184aed839f7c2ba4a7e65 |
|
MD5 | 63971dde86213ecaf9894d843656c407 |
|
BLAKE2b-256 | 7905779c119d7b85a3e349c1c679f96638017683d7df18241a014e05dd9bedd0 |
File details
Details for the file flake8_vedro-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: flake8_vedro-1.0.2-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33ee904ff84a893a9e3db8d71d107fcb37233428245aac979d4ddaafb1a7dbbc |
|
MD5 | db96e3a0aef9183eb2aed7b7e33e8885 |
|
BLAKE2b-256 | caef4a85a222b73abe0e86fe964b594f7f2e650792db26adceec64f169c28f2f |