• Home
  • Raw
  • Download

Lines Matching +full:node +full:- +full:version

8 #   name: "infra/python/wheels/configparser-py2_py3"
9 # version: "version:3.5.0"
12 # name: "infra/python/wheels/futures-py2_py3"
13 # version: "version:3.1.1"
16 # name: "infra/python/wheels/isort-py2_py3"
17 # version: "version:4.3.4"
21 # version: "version:1.10.11"
24 # name: "infra/python/wheels/backports_functools_lru_cache-py2_py3"
25 # version: "version:1.5"
28 # name: "infra/python/wheels/lazy-object-proxy/${vpython_platform}"
29 # version: "version:1.3.1"
32 # name: "infra/python/wheels/singledispatch-py2_py3"
33 # version: "version:3.4.0.3"
36 # name: "infra/python/wheels/enum34-py2"
37 # version: "version:1.1.6"
40 # name: "infra/python/wheels/mccabe-py2_py3"
41 # version: "version:0.6.1"
44 # name: "infra/python/wheels/six-py2_py3"
45 # version: "version:1.10.0"
51 # name: "infra/python/wheels/astroid-py2_py3"
52 # version: "version:1.6.6"
56 # name: "infra/python/wheels/pylint-py2_py3"
57 # version: "version:1.9.5-45a720817e4de1df2f173c7e4029e176"
66 the command line or from an environment variable set in pre-upload.py.
84 from pylint.__pkginfo__ import version as pylint_version
93 SKIPLIST = ['/site-packages/*', '/contrib/*', '/frontend/afe/management.py']
107 # are imported for their side-effects and are not meant to be used.
133 if modname.startswith(ROOT_MODULE) or modname.startswith(ROOT_MODULE[:-1]):
163 def visit_importfrom(self, node): argument
165 node.modname = patch_modname(node.modname)
166 return super(CustomImportsChecker, self).visit_importfrom(node)
172 def visit_module(self, node): argument
181 @param node: node of the ast we're currently checking.
183 super(CustomVariablesChecker, self).visit_module(node)
192 def visit_importfrom(self, node): argument
194 node.modname = patch_modname(node.modname)
195 return super(CustomVariablesChecker, self).visit_importfrom(node)
197 def visit_expr(self, node): argument
203 if not isinstance(node.value, astroid.Call):
205 func = node.value.func
213 self.add_message('W0104', node=node, line=node.fromlineno)
219 def visit_module(self, node): argument
223 @param node: the node we're visiting.
228 def visit_functiondef(self, node): argument
232 @param node: node of the ast we're currently checking.
239 if (node.name in ('run_once', 'initialize', 'cleanup') and
240 hasattr(node.parent.frame(), 'ancestors') and
242 node.parent.frame().ancestors())):
245 if _is_test_case_method(node):
248 super(CustomDocStringChecker, self).visit_functiondef(node)
289 @return: True if this file is a non-skiplisted python file.
376 if args.startswith('--'):
398 output = git_repo.gitcmd('show --no-ext-diff %s:%s'
410 pylint on a temp file into which we've 'git show'n the committed version
431 temp_files = [os.path.join(tempdir.name, file_path.split('/')[-1:][0])
443 def _is_test_case_method(node): argument
444 """Determine if the given function node is a method of a TestCase.
449 @params node: A function node.
451 if not hasattr(node.parent.frame(), 'ancestors'):
454 parent_class_names = {x.name for x in node.parent.frame().ancestors()}
468 # C0112: Non-empty Docstring needed.
471 # cleaning all the lint in it. See chromium-os:37364.
485 pylint_base_opts = ['--rcfile=%s' % pylint_rc,
486 '--reports=no',
487 '--disable=W,R,E,C,F',
488 '--enable=W0104,W0611,W1201,C0111,C0112,E0602,'
490 '--no-docstring-rgx=%s' % no_docstring_rgx,]
493 pylint_base_opts = ['--disable-msg-cat=%s' % all_failures,
494 '--reports=no',
495 '--include-ids=y',
496 '--ignore-docstrings=n',
497 '--no-docstring-rgx=%s' % no_docstring_rgx,]