flake8 offers an extra option: –max-complexity, which will emit a warning if the McCabe complexity of a function is higher than the value. By default it’s deactivated
Hello, I like to keep this feature turned off, but somehow it’s on and I don’t know when, where or how I turned it on. I don’t have any config file at all. Can you shed some light here how to turn it off? Thank you, Feng
Hello Feng, you can list the configuration location(s) from you project directory with : flake8 -v missing_file Then you search a "setup.cfg" or "tox.ini" in the directory. http://flake8.readthedocs.org/en/latest/config.html Best regards, -- Florent 2014-07-11 1:30 GMT+02:00 Liang, Feng <feng.liang@tektronix.com>:
Hello,
I like to keep this feature turned off, but somehow it’s on and I don’t know when, where or how I turned it on. I don’t have any config file at all.
Can you shed some light here how to turn it off?
Thank you,
Feng
_______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality
participants (2)
-
Florent -
Liang, Feng