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
- CS008: nested "with" statements of the same type should be comma-separated
- CS009: each context manager in a "with" statement must be on its own line
- CS010: async function has no asynchronous calls or features
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
Metadata
Release files for flake8-qa-style 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8_qa_style-1.3.0.tar.gz | 14.5 kB | Without provenance | Details for flake8_qa_style-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_qa_style-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_qa_style-1.3.0-py3-none-any.whl |
Total release size: 35.6 kB
Release files / flake8_qa_style-1.3.0.tar.gz
| Download URL | flake8_qa_style-1.3.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3faef197efd04c2313bb6afaf50f8905f224a3e26eef01944681b92c65130eb9
|
|
BLAKE2b-256 checksum How to use checksums |
8ea2ca76aeaeb4cf5c366e6016080874c117f75bffc3885e39f3cd40228c3725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / flake8_qa_style-1.3.0-py3-none-any.whl
| Download URL | flake8_qa_style-1.3.0-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
356f0bd2a32cb2387b2b0e8e210059d3d5725e8f52dcfdf8aa9761929be1f2f1
|
|
BLAKE2b-256 checksum How to use checksums |
692727b0f987f3b23e138f36609e679c9823c9a15a54ed1375e3a1cd09b9c749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for flake8-qa-style 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.