MetOffice/CATNIP

reduce max-complexity

Opened this issue · 0 comments

We want to reduce the max-complexity over time - currently set in .flake8 as:

max-complexity = 22

which is far higher than the default. This will require several functions to be refactored to reduce branching. See https://en.wikipedia.org/wiki/Cyclomatic_complexity for how this is calculated.