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
- CS001: using sleep(1) instead of sleep(var), var - meaningful variable
- CS002: using print()
- CS003: assert same variables: assert var == var
- CS004: assert variable with constant: assert var == 1
- CS005: missing type annotation for argument in function
- 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
: parameterignore
[flake8]
ignore = CS001
- comment in code
#noqa: CS001
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-qa-style-1.0.0.tar.gz
(11.0 kB
view details)
Built Distribution
File details
Details for the file flake8-qa-style-1.0.0.tar.gz
.
File metadata
- Download URL: flake8-qa-style-1.0.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373f10483e90970157e84ab382411547aa826aaff1da566008514413ccd29337 |
|
MD5 | 5ec93e46eb30c84a3443ad61269abd54 |
|
BLAKE2b-256 | b92074747adb23f8fe37b5fe360df85e98b8439de4eb69e2fa221834dfe0b706 |
File details
Details for the file flake8_qa_style-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_qa_style-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65dc86e5514bd578a2578bdb31645f0b2646007ef386f7c2bf81410acfbc8261 |
|
MD5 | d21d3955e59461b81da5963d37210d58 |
|
BLAKE2b-256 | 05a7cdc796fb3725bf436d90b09f36d647f3d391c34f646f1f37c54313a53ffb |