From d9603b276b0a207c45944d3979bbb22fe1117852 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Mon, 5 Oct 2020 11:02:19 +0200 Subject: [PATCH] Update pylintrc to match Chromium style guide. According to [1], the Chromium Python Style Guide has changed and it is not requiring any custom change compared to PEP-8. This CL removes the exceptions from pylintrc. [1] - https://chromium.googlesource.com/chromium/src/+/master/styleguide/python/python.md#our-previous-python-style Bug: None Change-Id: I2c8c8ab20536a4bea094dfa658c9c8391ea30251 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186664 Reviewed-by: Karl Wiberg Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#32339} --- pylintrc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pylintrc b/pylintrc index 9809ebe998..d8e7b0293e 100644 --- a/pylintrc +++ b/pylintrc @@ -97,9 +97,6 @@ max-line-length=80 # Maximum number of lines in a module max-module-lines=1000 -# We use two spaces for indents, instead of the usual four spaces or tab. -indent-string=' ' - [BASIC] @@ -117,24 +114,6 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ # (CapWords) class-rgx=[A-Z_][a-zA-Z0-9]+$ -# Regular expression which should only match correct function names -# The Chromium standard is different than PEP-8, so we need to redefine this to -# only allow: -# - CapWords -# - main: Standard for main function. -function-rgx=([A-Z_][a-zA-Z0-9]{2,60}|main)$ - -# Regular expression which should only match correct method names -# The Chromium standard is different than PEP-8, so we need to redefine this to -# only allow: -# - CapWords, starting with a capital letter. No underscores in function -# names. Can also have a "_" prefix (private method) or a "test" prefix -# (unit test). -# - Methods that look like __xyz__, which are used to do things like -# __init__, __del__, etc. -# - setUp, tearDown: For unit tests. -method-rgx=((_|test)?[A-Z][a-zA-Z0-9]{2,60}|__[a-z]+__|setUp|tearDown)$ - # Regular expression which should only match correct instance attribute names attr-rgx=[a-z_][a-z0-9_]{2,30}$