This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Summary

Pordego plugin that analyzes code using the Radon library.

If the code does not meet a specified threshold, it will print the complex blocks and cause the pordego tool to return an error code.

Configuration

source_paths

There is one required parameter “source_paths”. This parameter should be a list of paths to directories containing Python source code (other types of code are ignored). The paths are searched recursively, so only the top level folder need be specified. The paths can be absolute or relative to the directory where pordego is run.

ignore_paths

Optional. A list of file patterns to ignore, such as “test” which will ignore all files containing “test”

complexity_threshold

Optional (default “B”). The maximum allowable complexity. See https://radon.readthedocs.io/en/latest/api.html#radon.complexity.cc_rank for a description of the ranks.

ignore_block_list

Optional. For lsiting all that legacy code that hasn’t been refactored yet.

Each entry in the list should be a string formatted like so: <path to file> <class name.method name or function name> <Max complexity grade>

<Path to file> should start with one of the paths specified in source_paths, so if the source path is relative, this should be as well Functions are specified with just the function name, methods that are part of a class (including class/staticmethods) are joined to the class name with a ‘.’ <Max complexity grade> specifies the worst grade that is allowed for the block of code. If the calculated grade is at or above the threshold grade, it will pass.

The easiest way to generate the ignore_block_list is to run the complexity plugin without ignore_block_list. The plugin prints the list of complex blocks in the same format as the ignore_block_list.

Example: path/to/my/src/mymodule.py MyClass.some_method D path/to/my/src/mymodule.py some_free_function E

Release History

Release History

1.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pordego_complexity-1.0.2-py2-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jun 24, 2016
pordego-complexity-1.0.2.zip (8.1 kB) Copy SHA256 Checksum SHA256 Source Jun 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting