Lines Matching +full:begin +full:- +full:after +full:- +full:commit +full:- +full:hash
3 # [VPYTHON:BEGIN]
8 # name: "infra/python/wheels/configparser-py2_py3"
12 # name: "infra/python/wheels/futures-py2_py3"
16 # name: "infra/python/wheels/isort-py2_py3"
24 # name: "infra/python/wheels/backports_functools_lru_cache-py2_py3"
28 # name: "infra/python/wheels/lazy-object-proxy/${vpython_platform}"
32 # name: "infra/python/wheels/singledispatch-py2_py3"
36 # name: "infra/python/wheels/enum34-py2"
40 # name: "infra/python/wheels/mccabe-py2_py3"
44 # name: "infra/python/wheels/six-py2_py3"
51 # name: "infra/python/wheels/astroid-py2_py3"
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]):
282 in this commit.
297 @return: True if this file is a non-skiplisted python file.
308 Invokes pylint on files after confirming that they're not block listed.
384 if args.startswith('--'):
390 def git_show_to_temp_file(commit, original_file, new_temp_file): argument
396 @param commit: commit hash of the commit we're running repo upload on.
406 output = git_repo.gitcmd('show --no-ext-diff %s:%s'
407 % (commit, original_file),
412 def check_committed_files(work_tree_files, commit, pylint_base_opts): argument
414 Get a list of files corresponding to the commit hash.
417 of a file in the commit we mean to upload. To work around this we run
421 @param work_tree_files: list of files in this commit specified by their
423 @param commit: hash of the commit this upload applies to.
431 # All files that are a part of this commit should have an abs path within
439 temp_files = [os.path.join(tempdir.name, file_path.split('/')[-1:][0])
443 git_show_to_temp_file(commit, *file_tuple)
444 # Only check if we successfully git showed all files in the commit.
467 """Main function checks each file in a commit for pylint violations."""
476 # C0112: Non-empty Docstring needed.
479 # cleaning all the lint in it. See chromium-os:37364.
486 # 2. Docstrings are optional on private methods, and any methods that begin
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,]