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 <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32339}
This commit is contained in:

committed by
Commit Bot

parent
5b0643d8b6
commit
d9603b276b
21
pylintrc
21
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}$
|
||||
|
||||
|
Reference in New Issue
Block a user