contrib: pylintrc: enable some more CrOS linting settings

BUG=None
TEST=precq on python scripts in here catch more stuff

Change-Id: I07a5a35bd2179584ef8c44d381d10f721def2169
Reviewed-on: https://chromium-review.googlesource.com/1136465
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
diff --git a/contrib/fromupstream.py b/contrib/fromupstream.py
index 8949eb5..9442db2 100755
--- a/contrib/fromupstream.py
+++ b/contrib/fromupstream.py
@@ -1,8 +1,9 @@
 #!/usr/bin/env python2
-#
+# -*- coding: utf-8 -*-
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
+
 """This is a tool for picking patches from upstream and applying them."""
 
 from __future__ import print_function
@@ -76,8 +77,9 @@
 def _get_pw_url(project):
     """Retrieve the patchwork server URL from .pwclientrc.
 
-    @param project: patchwork project name; if None, we retrieve the default
-        from pwclientrc
+    Args:
+        project: patchwork project name; if None, we retrieve the default
+            from pwclientrc
     """
     config = ConfigParser.ConfigParser()
     config.read([_PWCLIENTRC])
diff --git a/contrib/pylintrc b/contrib/pylintrc
index aa51d73..4cbb96e 100644
--- a/contrib/pylintrc
+++ b/contrib/pylintrc
@@ -2,6 +2,10 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+[MASTER]
+
+load-plugins=chromite.cli.cros.lint
+
 [MESSAGES CONTROL]
 
 disable=
@@ -63,3 +67,9 @@
 
 # Minimum lines number of a similarity.
 min-similarity-lines=8
+
+
+[IMPORTS]
+
+# Deprecated modules which should not be used, separated by a comma
+deprecated-modules=regsub,TERMIOS,Bastion,rexec,optparse