Add pylint command

This commit is contained in:
Calen Pennington
2012-05-15 14:33:05 -04:00
parent 08620eaf34
commit 337f1aff54

View File

@@ -28,6 +28,14 @@ INSTALL_DIR_PATH = File.join(DEPLOY_DIR, NORMALIZED_DEPLOY_NAME)
CLOBBER.include('build')
CLEAN.include("#{BUILD_DIR}/*.deb", "#{BUILD_DIR}/util")
task :pylint do
Dir.chdir("djangoapps") do
Dir["*"].each do |app|
sh("pylint -f parseable #{app} | tee #{app}.pylint")
end
end
end
task :test do
sh("django-admin.py test --settings=envs.test --pythonpath=. $(ls djangoapps)")
end