Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit d9603b2

Browse files
MirkoBonadeiCommit Bot
authored andcommitted
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 <[email protected]> Commit-Queue: Mirko Bonadei <[email protected]> Cr-Commit-Position: refs/heads/master@{#32339}
1 parent 5b0643d commit d9603b2

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pylintrc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ max-line-length=80
9797
# Maximum number of lines in a module
9898
max-module-lines=1000
9999

100-
# We use two spaces for indents, instead of the usual four spaces or tab.
101-
indent-string=' '
102-
103100

104101
[BASIC]
105102

@@ -117,24 +114,6 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
117114
# (CapWords)
118115
class-rgx=[A-Z_][a-zA-Z0-9]+$
119116

120-
# Regular expression which should only match correct function names
121-
# The Chromium standard is different than PEP-8, so we need to redefine this to
122-
# only allow:
123-
# - CapWords
124-
# - main: Standard for main function.
125-
function-rgx=([A-Z_][a-zA-Z0-9]{2,60}|main)$
126-
127-
# Regular expression which should only match correct method names
128-
# The Chromium standard is different than PEP-8, so we need to redefine this to
129-
# only allow:
130-
# - CapWords, starting with a capital letter. No underscores in function
131-
# names. Can also have a "_" prefix (private method) or a "test" prefix
132-
# (unit test).
133-
# - Methods that look like __xyz__, which are used to do things like
134-
# __init__, __del__, etc.
135-
# - setUp, tearDown: For unit tests.
136-
method-rgx=((_|test)?[A-Z][a-zA-Z0-9]{2,60}|__[a-z]+__|setUp|tearDown)$
137-
138117
# Regular expression which should only match correct instance attribute names
139118
attr-rgx=[a-z_][a-z0-9_]{2,30}$
140119

0 commit comments

Comments
 (0)