Commit 862769fd by Clinton Blackburn

Merge pull request #23 from edx/clintonb/pylint-update

Upgraded to Pylint 1.5.x
parents fe2e726c 01c068ee
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
# pygtk.require(). # pygtk.require().
#init-hook= #init-hook=
# Profiled execution.
profile=no
# Add files or directories to the blacklist. They should be base names, not # Add files or directories to the blacklist. They should be base names, not
# paths. # paths.
ignore= ignore=
...@@ -84,10 +81,6 @@ reports=no ...@@ -84,10 +81,6 @@ reports=no
# (RP0004). # (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Add a comment according to your evaluation note. This is used by the global
# evaluation report (RP0004).
comment=no
# Template used to display messages. This is a python new-style format string # Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details # used to format the message information. See doc for all details
...@@ -96,9 +89,6 @@ comment=no ...@@ -96,9 +89,6 @@ comment=no
[BASIC] [BASIC]
# Required attributes for module, separated by a comma
required-attributes=
# List of builtins function names that should not be used, separated by a comma # List of builtins function names that should not be used, separated by a comma
bad-functions=map,filter,apply,input bad-functions=map,filter,apply,input
...@@ -205,10 +195,6 @@ ignore-mixin-members=yes ...@@ -205,10 +195,6 @@ ignore-mixin-members=yes
# (useful for classes with attributes dynamically set). # (useful for classes with attributes dynamically set).
ignored-classes=SQLObject ignored-classes=SQLObject
# When zope mode is activated, add a predefined set of Zope acquired attributes
# to generated-members.
zope=no
# C Extension modules must be imported to be inspected. For security reasons, # C Extension modules must be imported to be inspected. For security reasons,
# this # is not done by default, but we expect all imported code to be run at # this # is not done by default, but we expect all imported code to be run at
# some point anyway, so we explicitly allow it here # some point anyway, so we explicitly allow it here
...@@ -261,10 +247,6 @@ additional-builtins= ...@@ -261,10 +247,6 @@ additional-builtins=
[CLASSES] [CLASSES]
# List of interface methods to ignore, separated by a comma. This is used for
# instance to not check methods defines in Zope's Interface base class.
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
# List of method names used to declare (i.e. assign) instance attributes. # List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp defining-attr-methods=__init__,__new__,setUp
......
...@@ -58,7 +58,6 @@ evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / state ...@@ -58,7 +58,6 @@ evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / state
comment = no comment = no
[BASIC] [BASIC]
required-attributes =
bad-functions = map,filter,apply,input bad-functions = map,filter,apply,input
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$ const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$
......
...@@ -4,7 +4,7 @@ from setuptools import setup ...@@ -4,7 +4,7 @@ from setuptools import setup
setup( setup(
name='edx-lint', name='edx-lint',
version='0.3.2', version='0.4.0',
description='edX-authored pylint checkers', description='edX-authored pylint checkers',
url='https://github.com/edx/edx-lint', url='https://github.com/edx/edx-lint',
author='edX', author='edX',
...@@ -30,7 +30,7 @@ setup( ...@@ -30,7 +30,7 @@ setup(
}, },
install_requires=[ install_requires=[
'pylint==1.4.4', 'pylint>=1.5.1,<1.6.0',
'pylint-django==0.6.1', 'pylint-django>=0.7.1,<1.0.0',
], ],
) )
...@@ -14,13 +14,6 @@ def load_tests(loader, tests, pattern): ...@@ -14,13 +14,6 @@ def load_tests(loader, tests, pattern):
# Load our plugin. # Load our plugin.
linter.load_plugin_modules(['edx_lint.pylint']) linter.load_plugin_modules(['edx_lint.pylint'])
# Configure the linter that runs the tests.
# This line prevents pylint from complaining about missing __revision__ in
# all the test files. But is this removing other required attributes that
# maybe we do want to check for?
linter.global_set_option('required-attributes', ())
here = os.path.dirname(os.path.abspath(__file__)) here = os.path.dirname(os.path.abspath(__file__))
tests = make_tests( tests = make_tests(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment