Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index e0f0dfb0b16a73b7112080989db6f4755c2ab51f..b24fbb67302440cd6bbb5f8e13fc660490a8614c 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -16,12 +16,12 @@ Setup instructions: |
To run the tests directly: |
export PYTHONPATH="../google_appengine/" |
- nosetests --with-gae --gae-lib-root=../ |
+ nosetests --with-gae --gae-lib-root=../google_appengine/ |
To interact with the environment: |
(insert a line: import code; code.interact(locals=local())) |
export PYTHONPATH="../google_appengine/" |
- nosetests --with-gae --gae-lib-root=../ -s |
+ nosetests --with-gae --gae-lib-root=../google_appengine/ -s |
""" |
@@ -72,10 +72,18 @@ def CommonChecks(input_api, output_api): |
input_api.os_path.join(sdk_path, 'lib'), |
input_api.os_path.join(sdk_path, 'lib', 'simplejson'), |
] + sys.path |
+ # Update our environment to include the standard modules in AppEngine. |
+ import appcfg |
+ appcfg.fix_sys_path() |
+ disabled_warnings = [ |
+ 'E1101', # has no member, disabled due to webapp2 and AppEngine SDK |
M-A Ruel
2012/05/29 20:03:49
An option would be to add 'webapp2.RequestHandler'
cmp
2012/05/29 20:20:28
Done.
|
+ 'W0232', # has no init, disabled due to webapp2 |
+ ] |
results.extend(input_api.canned_checks.RunPylint( |
input_api, |
output_api, |
- black_list=black_list)) |
+ black_list=black_list, |
+ disabled_warnings=disabled_warnings)) |
finally: |
sys.path = backup_sys_path |
return results |