A flake8 plugin with super_mario specific validations
Project description
flake8-super-mario
An extension for flake8 with super_mario specific validations.
Mario is a framework for business logic flow. It's best when user follows all rules. Some rules are checked by Mario itself and some are best with static analysis and can be checked with this plugin.
Installation
pip install flake8-super-mario
Example
from super_mario import BasePipeline, process_pipe
class SimplePipeline(BasePipeline):
pipeline = [
'sum_numbers',
]
def sum_numbers(a, b):
return {'d': a + b}
Usage:
$ flake8 test.py
text.py:1:5: SME001 Pipe sum_numbers has no pipe decorator
Error codes
Error code | Description |
---|---|
SME001 | Pipe XXX has no pipe decorator |
SME002 | Pipe XXX has too high cyclomatic complexity (X > Y) |
SME003 | Pipe XXX has too high cognitive complexity (X > Y) |
SME004 | Pipe XXX is of process type and is not pure |
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
File details
Details for the file flake8_super_mario-0.0.2.tar.gz
.
File metadata
- Download URL: flake8_super_mario-0.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201671c6ff7d34c05e157579f8f332b9a0a3cbd18f0c89b59728dfe6f06bf886 |
|
MD5 | 607cc386af642225f2fa1e0bdb17bbe3 |
|
BLAKE2b-256 | 48208e4fbca1fdc1b4cffbfc82bb1b0ab19db9fe418bb91a466205362ab585db |