flake8 – ignore warnings for a function

From the documentation on mccabe (which is used by flake8 under the hood):

To silence violations reported by mccabe, place your # noqa: C901
on the function definition line, where the error is reported for
(possibly a decorator).

So you should put the # noqa comment on the line containing def or the line with a decorator.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)