From b93b541733b9d7cae7dd011ea7c3ce8da77cfbbb Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 27 Jan 2015 15:17:28 -0500 Subject: [PATCH] Add our custom pylint plugin So far, it checks: * Whether setUp is called in TestCase setUp methods. * If _("translate me") functions are called with only string literals. --- pylintrc | 2 +- requirements/edx/github.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pylintrc b/pylintrc index 16fad723e1..cf32ce3508 100644 --- a/pylintrc +++ b/pylintrc @@ -19,7 +19,7 @@ persistent=yes # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. -load-plugins= +load-plugins=edx_lint.pylint [MESSAGES CONTROL] diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index 3852958938..292d26ccea 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -37,3 +37,4 @@ git+https://github.com/mitocw/django-cas.git@60a5b8e5a62e63e0d5d224a87f0b489201a -e git+https://github.com/pmitros/RecommenderXBlock.git@9b07e807c89ba5761827d0387177f71aa57ef056#egg=recommender-xblock -e git+https://github.com/edx/edx-milestones.git@547f2250ee49e73ce8d7ff4e78ecf1b049892510#egg=edx-milestones -e git+https://github.com/edx/edx-search.git@264bb3317f98e9cb22b932aa11b89d0651fd741c#egg=edx-search +git+https://github.com/edx/edx-lint.git@e0e73bcc7b3b7ed632a1db6e3b32b0a249721261#egg=edx_lint