Melevir / flake8-functions-names

An extension for flake8 that validates functions names, decomposition and conformity with annotations.
MIT License
27 stars 9 forks source link

FNE005 False Positive on Magic Methods #8

Closed erikvanderwerf closed 3 years ago

erikvanderwerf commented 3 years ago

Magic/dunder methods such as __exit__(self, exc_type, exc_val, exc_tb) -> bool and __contains__(self, x) -> bool raise a FNE005 that is impossible to fix, and I don't want to add #noqa lines to these methods.

Melevir commented 3 years ago

Thanks for the report!

Fixed, try version 0.0.7.

If I forgot some buildin dunder methods, that returns bool, feel free to reopen the issue and add them here: https://github.com/Melevir/flake8-functions-names/blob/main/flake8_functions_names/words.py#L1