From 37f528ba08f57134f501025efb6e1e76c5a99b2b Mon Sep 17 00:00:00 2001 From: nanoric Date: Thu, 24 Jan 2019 06:22:37 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E6=94=B9=E8=BF=9Bpylint=E7=9A=84?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 7f97f88a..0863a73c 100644 --- a/.pylintrc +++ b/.pylintrc @@ -121,7 +121,7 @@ never-returning-functions=sys.exit # Regular expression matching correct argument names. Overrides argument- # naming-style. -argument-rgx=^[_a-z][a-z0-9_]*$ +argument-rgx=^_?[a-z][a-z0-9_]*$ # Naming style matching correct attribute names. # self.xxxx @@ -146,7 +146,7 @@ bad-names=foo, # attribute-naming-style. # ClassA.XXXX # except that dataclass should be snake_case -class-attribute-rgx=^([A-Z][A-Z_]+|[_a-z][a-z0-9_]+)$ +class-attribute-rgx=^_?([A-Z][A-Z_]+|[a-z][a-z0-9_]+)$ # Naming style matching correct class names. class-naming-style=PascalCase