Skip to main content

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

Metadata

Release files for flake8-super-mario 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-super-mario 0.0.1
File Size Uploaded
flake8_super_mario-0.0.1.tar.gz 4.5 kB Details

Release files / flake8_super_mario-0.0.1.tar.gz

Download URL flake8_super_mario-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
41a02f0e374a2e3a469217204114cff0e535924ce79e7264b7a7372f763a910d
BLAKE2b-256 checksum
How to use checksums
413659198eacebc136ab762da0e2c3fadff524e6e9772f03899b8f970a97633d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

0.0.2

1 release file

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page