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
- CS007: file should not start with a blank line
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
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.1.tar.gz
(11.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_qa_style-1.0.1.tar.gz.
File metadata
- Download URL: flake8_qa_style-1.0.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd95fda96882aea3d28675a293beef981c73fd9ca15085ecec9de1e5f03226cb
|
|
| MD5 |
d70e7396d4ae57d40d37daf944547a48
|
|
| BLAKE2b-256 |
a532b40c89e637f468dd900dbdcea3027c3cb169fb519c3cdab104175e94c20f
|
File details
Details for the file flake8_qa_style-1.0.1-py3-none-any.whl.
File metadata
- Download URL: flake8_qa_style-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfd5ae8254bb5e36c699f0caf853e104561a55fb9109030491f3a91632e225d
|
|
| MD5 |
30e7019e22b3e9b86bb83a4d2992e5db
|
|
| BLAKE2b-256 |
d370f9b603ac6fdf2e709c7cc1c560bc73ba5961bc953e2e568066087b7de4b5
|