From 129cc8e6e916533ff51a5d65721cf904542a1c27 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 10 Oct 2016 10:12:01 +0300 Subject: fix Pylint warnings --- .pylintrc | 55 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 25 deletions(-) (limited to '.pylintrc') diff --git a/.pylintrc b/.pylintrc index 86cac01..4cb9bbf 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,31 +1,36 @@ [MESSAGES CONTROL] -disable=missing-docstring,too-many-public-methods,too-few-public-methods,multiple-imports,duplicate-code +#disable=old-ne-operator,filter-builtin-not-iterating,nonzero-method,long-builtin,unpacking-in-except,backtick,suppressed-message,setslice-method,round-builtin,coerce-builtin,input-builtin,raising-string,raw_input-builtin,apply-builtin,delslice-method,useless-suppression,hex-method,zip-builtin-not-iterating,range-builtin-not-iterating,intern-builtin,old-octal-literal,xrange-builtin,no-absolute-import,cmp-builtin,reduce-builtin,next-method-called,getslice-method,oct-method,reload-builtin,dict-view-method,file-builtin,long-suffix,parameter-unpacking,dict-iter-method,cmp-method,old-division,using-cmp-argument,buffer-builtin,old-raise-syntax,indexing-exception,unicode-builtin,unichr-builtin,coerce-method,basestring-builtin,map-builtin-not-iterating,metaclass-assignment,print-statement,import-star-module-level,standarderror-builtin,execfile-builtin +disable=duplicate-code,missing-docstring,multiple-imports,too-many-public-methods,too-few-public-methods [BASIC] +#bad-functions=map,filter bad-functions= -good-names=i,j,k -bad-names= -name-group= -include-naming-hint=no -inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ -inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ -method-rgx=[a-z_][a-z0-9_]{2,30}$ -method-name-hint=[a-z_][a-z0-9_]{2,30}$ -class-rgx=[A-Z_][a-zA-Z0-9]+$ -class-name-hint=[A-Z_][a-zA-Z0-9]+$ -attr-rgx=[a-z_][a-z0-9_]{0,30}$ -attr-name-hint=[a-z_][a-z0-9_]{0,30}$ -function-rgx=[a-z_][a-z0-9_]{2,30}$ -function-name-hint=[a-z_][a-z0-9_]{2,30}$ -module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ -module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ -class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{1,30}|(__.*__))$ -class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{1,30}|(__.*__))$ -variable-rgx=[a-z_][a-z0-9_]{0,30}$ -variable-name-hint=[a-z_][a-z0-9_]{0,30}$ -argument-rgx=[a-z_][a-z0-9_]{0,30}$ -argument-name-hint=[a-z_][a-z0-9_]{0,30}$ -no-docstring-rgx=^_ -docstring-min-length=-1 +#good-names=i,j,k,ex,Run,_ +good-names=_,e,fd,i,n +#bad-names=foo,bar,baz,toto,tutu,tata +#name-group= +#include-naming-hint=no +#class-rgx=[A-Z_][a-zA-Z0-9]+$ +#class-name-hint=[A-Z_][a-zA-Z0-9]+$ +#module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ +#module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ +#inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ +#inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ +#variable-rgx=[a-z_][a-z0-9_]{2,30}$ +#variable-name-hint=[a-z_][a-z0-9_]{2,30}$ +#const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ +#const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ +#function-rgx=[a-z_][a-z0-9_]{2,30}$ +#function-name-hint=[a-z_][a-z0-9_]{2,30}$ +#attr-rgx=[a-z_][a-z0-9_]{2,30}$ +#attr-name-hint=[a-z_][a-z0-9_]{2,30}$ +#argument-rgx=[a-z_][a-z0-9_]{2,30}$ +#argument-name-hint=[a-z_][a-z0-9_]{2,30}$ +#method-rgx=[a-z_][a-z0-9_]{2,30}$ +#method-name-hint=[a-z_][a-z0-9_]{2,30}$ +#class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ +#class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ +#no-docstring-rgx=^_ +#docstring-min-length=-1 -- cgit v1.2.3