Created
January 4, 2012 18:57
-
-
Save diyan/1561460 to your computer and use it in GitHub Desktop.
PyLint configuration for one of our Python project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MESSAGES CONTROL] | |
# Disable the following messages: | |
# C0111: Missing docstring. Used when a module, function, class or method has no docstring. | |
# Some special methods like __init__ doesn't necessary require a docstring. | |
# R0903: Too few public methods (%s/%s). Used when class has too few public methods, so be sure it's really worth it. | |
# W0232: Class has no __init__ method. Used when a class has no __init__ method, neither its parent classes. | |
# R0201: Method could be a function. Used when a method doesn't use its bound instance, and so | |
# could be written as a function. | |
# W0511: Used when a warning note as FIXME or XXX is detected. | |
# W0232: Class has no __init__ method. Used when a class has no __init__ method, neither its parent classes. | |
disable=C0111,R0903,W0232,R0201,W0511,W0232 | |
[REPORTS] | |
# Include message's id in output | |
include-ids=yes | |
[BASIC] | |
# Test methods or functions should have verbose names which could be longer that usual methods/functions | |
# Regular expression which should only match correct function names | |
method-rgx=[a-z_][a-z0-9_]{2,100}$ | |
# Regular expression which should only match correct function names | |
function-rgx=[a-z_][a-z0-9_]{2,100}$ | |
# Good variable names which should always be accepted, separated by a comma | |
# Reconsider later that 'id' variable name is a good idea. | |
good-names=i,k,ex,_,id | |
[FORMAT] | |
# Maximum number of characters on a single line. | |
max-line-length=120 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment