Landscape.io offers nice and good Python code tests based on PEP8, PyLint, McCabe, etc.
Some of my parser methods contain large switch blocks, so I would like to disable the MC0001 McCabe for the selected methods. How can i do this?
I found this syntax for PyLint:
for file in get_files():
Source: https://docs.landscape.io/suppressing.html
... but the syntax is not shown for mccabe . Based on my research on Google, you can disable the McCabe rule for all files in a project, but this is not my goal. Here is the yaml file that globally disabled MC0001:
mccabe: disable: - MC0001
Source: https://0x7df.wordpress.com/tag/mccabe/
source share