MetOffice / CATNIP

Climate Analysis Tool: Now In Python
Other
5 stars 2 forks source link

reduce max-complexity #147

Open nhsavage opened 3 years ago

nhsavage commented 3 years ago

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.