Home | History | Annotate | Download | only in utils

Lines Matching refs:pylint

3 Wrapper to patch pylint library functions to suit autotest.
6 files. It runs pylint on a list of files that it obtains either through
22 # Do a basic check to see if pylint is even installed.
24 import pylint
25 from pylint.__pkginfo__ import version as pylint_version
27 print ("Unable to import pylint, it may need to be installed."
28 " Run 'sudo aptitude install pylint' if you haven't already.")
34 # some files make pylint blow up, so make sure we ignore them
57 import pylint.lint
58 from pylint.checkers import base, imports, variables
60 # need to put autotest root dir on sys.path so pylint will be happy
64 # patch up pylint import checker to handle our importing magic
67 # A list of modules for pylint to ignore, specifically, these modules
77 Error raised when pylint complains about a file.
104 effects. Pylint doesn't understand this and flags them as unused, since
106 to transplant said modules into the dictionary of modules pylint has
107 already seen, before pylint checks it.
109 @param to_consume: a dictionary of names pylint needs to see referenced.
110 @param consumed: a dictionary of names that pylint has seen referenced.
197 Teaches pylint to look for @param with each argument in the
231 Run pylint on a list of files so we get consolidated errors.
234 @param base_opts: a list of pylint config options.
236 @raises: pylint_error if pylint finds problems with a file
242 pylint_runner = pylint.lint.Run(list(base_opts) + list(file_paths),
264 Invokes pylint on files after confirming that they're not black listed.
266 @param base_opts: pylint base options.
267 @param file_path: path to the file we need to run pylint on.
274 pylint_runner = pylint.lint.Run(base_opts + [file_path], exit=False)
295 @param base_opts: pylint base options.
325 @param args_list: list of files/pylint args passed in through argv.
326 @param pylint_base_opts: default pylint options.
369 pylint on a temp file into which we've 'git show'n the committed version
375 @param pylint_base_opts: a list of pylint config options.
401 """Main function checks each file in a commit for pylint violations."""