From 7fc4081495d7e825447c5889a52a3ef3293f754a Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 5 Feb 2013 11:17:40 -0500 Subject: [PATCH] Make pylint work on bare .py files from rake --- rakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rakefile b/rakefile index 05652edbba..5647b5b13a 100644 --- a/rakefile +++ b/rakefile @@ -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