Commit 30452d32 by Calen Pennington

Get pylint running on all modules again

parent ebe67d2d
......@@ -66,9 +66,13 @@ end
desc "Run pylint on all #{system} code"
task "pylint_#{system}" => report_dir do
Dir["#{system}/djangoapps/*", "#{system}/lib/*"].each do |app|
ENV['PYTHONPATH'] = File.dirname(app)
if File.exists? "#{app}/setup.py"
pythonpath_prefix = "PYTHONPATH=#{app}"
else
pythonpath_prefix = "PYTHONPATH=#{File.dirname(app)}"
end
app = File.basename(app)
sh("pylint --rcfile=.pylintrc -f parseable #{app} | tee #{report_dir}/#{app}.pylint.report")
sh("#{pythonpath_prefix} pylint --rcfile=.pylintrc -f parseable #{app} | tee #{report_dir}/#{app}.pylint.report")
end
end
task :pylint => "pylint_#{system}"
......
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