Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Unified Diff: PRESUBMIT.py

Issue 10199016: Add disabled_warnings arg to RunPylint() and use the default pylintrc file by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Add hashlib to the ignored symbols by pylint Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | presubmit_canned_checks.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 39794a818fa0ac223917fc4735e0f65f188947ed..b7a352e28c30aaf5ee294e32215f545e1f9f532e 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -19,11 +19,16 @@ def CommonChecks(input_api, output_api, tests_to_black_list):
r'^site-packages-py[0-9]\.[0-9][\/\\].+',
r'^svn_bin[\/\\].+',
r'^testing_support[\/\\]_rietveld[\/\\].+']
+ disabled_warnings = [
+ 'R0401', # Cyclic import
+ 'W0613', # Unused argument
+ ]
results.extend(input_api.canned_checks.RunPylint(
input_api,
output_api,
white_list=[r'.*\.py$'],
- black_list=black_list))
+ black_list=black_list,
+ disabled_warnings=disabled_warnings))
# TODO(maruel): Make sure at least one file is modified first.
# TODO(maruel): If only tests are modified, only run them.
« no previous file with comments | « no previous file | presubmit_canned_checks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698