• 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.
97 SKIPLIST = ['/site-packages/*', '/contrib/*', '/frontend/afe/management.py']
115 # are imported for their side-effects and are not meant to be used.
141 if modname.startswith(ROOT_MODULE) or modname.startswith(ROOT_MODULE[:-1]):
171 def visit_importfrom(self, node): argument
173 node.modname = patch_modname(node.modname)
174 return super(CustomImportsChecker, self).visit_importfrom(node)
180 def visit_module(self, node): argument
189 @param node: node of the ast we're currently checking.
191 super(CustomVariablesChecker, self).visit_module(node)
200 def visit_importfrom(self, node): argument
202 node.modname = patch_modname(node.modname)
203 return super(CustomVariablesChecker, self).visit_importfrom(node)
205 def visit_expr(self, node): argument
211 if not isinstance(node.value, astroid.Call):
213 func = node.value.func
221 self.add_message('W0104', node=node, line=node.fromlineno)
227 def visit_module(self, node): argument
231 @param node: the node we're visiting.
236 def visit_functiondef(self, node): argument
240 @param node: node of the ast we're currently checking.
247 if (node.name in ('run_once', 'initialize', 'cleanup') and
248 hasattr(node.parent.frame(), 'ancestors') and
250 node.parent.frame().ancestors())):
253 if _is_test_case_method(node):
256 super(CustomDocStringChecker, self).visit_functiondef(node)
297 @return: True if this file is a non-skiplisted python file.
384 if args.startswith('--'):
406 output = git_repo.gitcmd('show --no-ext-diff %s:%s'
418 pylint on a temp file into which we've 'git show'n the committed version
439 temp_files = [os.path.join(tempdir.name, file_path.split('/')[-1:][0])
451 def _is_test_case_method(node): argument
452 """Determine if the given function node is a method of a TestCase.
457 @params node: A function node.
459 if not hasattr(node.parent.frame(), 'ancestors'):
462 parent_class_names = {x.name for x in node.parent.frame().ancestors()}
476 # C0112: Non-empty Docstring needed.
479 # cleaning all the lint in it. See chromium-os:37364.
493 pylint_base_opts = ['--rcfile=%s' % pylint_rc,
494 '--reports=no',
495 '--disable=W,R,E,C,F',
496 '--enable=W0104,W0611,W1201,C0111,C0112,E0602,'
498 '--no-docstring-rgx=%s' % no_docstring_rgx,]
501 pylint_base_opts = ['--disable-msg-cat=%s' % all_failures,
502 '--reports=no',
503 '--include-ids=y',
504 '--ignore-docstrings=n',
505 '--no-docstring-rgx=%s' % no_docstring_rgx,]