Pylint: "locally defined disables" still give warnings. How to suppress them? -


i work software framework has couple of classes method names containing capital letters (due c++ wrappers). of course not pep8 , pylint shows corresponding error c0103. added c0111 list ignore missing docstrings methods, this:

def configure(self): # pylint: disable=c0103,c0111 

it works, warnings because of local disablings:

class: i0011 -> locally disabling c0103 class: i0011 -> locally disabling c0111 

how should suppress them?

ok, 1 has ignore ignore-warning explicitly. 1 can in pylint config file: if don't have one, generate standard configuration via

pylint --generate-rcfile > pylint.rc 

and uncomment line disable=... , add i0011 list. suppresses warnings regarding "locally defined disablings".

the other method add following line beginning of file (or block, whatever), if don't want suppress warning globally:

#pylint: disable=i0011 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -