MCPcopy Create free account
hub / github.com/PyCQA/mccabe / get_module_complexity

Function get_module_complexity

mccabe.py:292–295  ·  view source on GitHub ↗

Returns the complexity of a module

(module_path, threshold=7)

Source from the content-addressed store, hash-verified

290
291
292def get_module_complexity(module_path, threshold=7):
293 """Returns the complexity of a module"""
294 code = _read(module_path)
295 return get_code_complexity(code, threshold, filename=module_path)
296
297
298def _read(filename):

Callers

nothing calls this directly

Calls 2

_readFunction · 0.85
get_code_complexityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…