Make pylint work on bare .py files from rake

This commit is contained in:
Calen Pennington
2013-02-05 11:17:40 -05:00
parent 0b650122fb
commit 7fc4081495

View File

@@ -147,6 +147,11 @@ end
pythonpath_prefix = "PYTHONPATH=#{File.dirname(app)}"
end
app = File.basename(app)
if app =~ /.py$/
app = app.gsub('.py', '')
elsif app =~ /.pyc$/
next
end
sh("#{pythonpath_prefix} pylint --rcfile=.pylintrc -f parseable #{app} | tee #{report_dir}/#{app}.pylint.report")
end
end