Searched +full:pylint +full:- +full:exit (Results 1 – 25 of 44) sorted by relevance
12
| /third_party/benchmark/.github/workflows/ |
| D | pylint.yml | 1 name: pylint 10 pylint: 12 runs-on: ubuntu-latest 15 - uses: actions/checkout@v2 16 - name: Set up Python 3.8 17 uses: actions/setup-python@v1 19 python-version: 3.8 20 - name: Install dependencies 22 python -m pip install --upgrade pip 23 pip install pylint pylint-exit conan [all …]
|
| /third_party/grpc/tools/distrib/ |
| D | pylint_code.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 set -ex 19 IGNORE_PATTERNS=--ignore-patterns='.*pb2\.py,.*pb2_grpc\.py' 38 python3 -m virtualenv $VIRTUALENV -p $(which python3) 42 $PYTHON -m pip install --upgrade pip==19.3.1 44 # TODO(https://github.com/grpc/grpc/issues/23394): Update Pylint. 45 $PYTHON -m pip install --upgrade astroid==2.3.3 pylint==2.2.2 "isort>=4.3.0,<5.0.0" 47 EXIT=0 49 $PYTHON -m pylint --rcfile=.pylintrc -rn "$dir" ${IGNORE_PATTERNS} || EXIT=1 53 $PYTHON -m pylint --rcfile=.pylintrc-tests -rn "$dir" ${IGNORE_PATTERNS} || EXIT=1 [all …]
|
| /third_party/jerryscript/tools/ |
| D | check-pylint.sh | 9 # http://www.apache.org/licenses/LICENSE-2.0 20 pylint --version &>/dev/null 21 if [ $? -ne 0 ] 23 echo -e "${TERM_RED}Can't run check-pylint because pylint isn't installed.${TERM_NORMAL}\n" 24 exit 1 27 find ./tools ./jerry-debugger -name "*.py" \ 28 | xargs pylint --rcfile=tools/pylint/pylintrc
|
| /third_party/googletest/googlemock/test/ |
| D | gmock_test_utils.py | 46 # pylint: disable=C6204 73 """Returns the argument to exit(), or -1 if exit() wasn't called. 81 # the argument to exit() directly. 84 # On Unix, os.WEXITSTATUS() must be used to extract the exit status 89 return -1 93 # pylint: disable-msg=C6409 102 # pylint: enable-msg=C6409
|
| /third_party/googletest/googletest/test/ |
| D | gtest_test_utils.py | 32 # pylint: disable-msg=C6204 51 # pylint: enable-msg=C6204 55 # The environment variable for specifying the path to the premature-exit file. 73 TestCase = _test_module.TestCase # pylint: disable=C6409 86 # here to maintain module-wide state. 87 global _gtest_flags_are_parsed # pylint: disable=W0603 100 prefix = '--' + flag + '=' 106 # We don't increment i in case we just found a --gtest_* flag 115 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags 173 'a path to the binary via the --build_dir flag or the BUILD_DIR\n' [all …]
|
| D | googletest-filter-unittest.py | 34 the GTEST_FILTER environment variable or the --gtest_filter flag. 36 googletest-filter-unittest_ (a program written with Google Test) with different 60 [sys.executable, '-c', 'import os; print \'EMPTY_VAR\' in os.environ']) 65 # We set an env variable to a non-empty string, unset it, and invoke 75 [sys.executable, '-c', 'import os; print \'UNSET_VAR\' not in os.environ' 83 # the difference between "" and NULL -- Borland and Solaris < 5.10) 101 # Command to run the googletest-filter-unittest_ program. 102 COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-filter-unittest_') 108 TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)') 115 LIST_TESTS_FLAG = '--gtest_list_tests' [all …]
|
| /third_party/boringssl/src/third_party/googletest/test/ |
| D | gtest_test_utils.py | 32 # pylint: disable-msg=C6204 52 # pylint: enable-msg=C6204 56 # The environment variable for specifying the path to the premature-exit file. 74 TestCase = _test_module.TestCase # pylint: disable=C6409 87 # here to maintain module-wide state. 88 global _gtest_flags_are_parsed # pylint: disable=W0603 101 prefix = '--' + flag + '=' 107 # We don't increment i in case we just found a --gtest_* flag 116 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags 174 'a path to the binary via the --build_dir flag or the BUILD_DIR\n' [all …]
|
| D | googletest-filter-unittest.py | 34 the GTEST_FILTER environment variable or the --gtest_filter flag. 36 googletest-filter-unittest_ (a program written with Google Test) with different 63 [sys.executable, '-c', 'import os; print(\'EMPTY_VAR\' in os.environ)']) 68 # We set an env variable to a non-empty string, unset it, and invoke 78 [sys.executable, '-c', 'import os; print(\'UNSET_VAR\' not in os.environ)' 86 # the difference between "" and NULL -- Borland and Solaris < 5.10) 104 # Command to run the googletest-filter-unittest_ program. 105 COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-filter-unittest_') 111 TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)') 118 LIST_TESTS_FLAG = '--gtest_list_tests' [all …]
|
| D | googletest-catch-exceptions-test.py | 33 This script invokes googletest-catch-exceptions-test_ and 34 googletest-catch-exceptions-ex-test_ (programs written with 41 FLAG_PREFIX = '--gtest_' 46 # Path to the googletest-catch-exceptions-ex-test_ binary, compiled with 49 'googletest-catch-exceptions-ex-test_') 51 # Path to the googletest-catch-exceptions-test_ binary, compiled with 54 'googletest-catch-exceptions-no-ex-test_') 59 # Tests in this file run a Google-Test-based test program and expect it 61 # the premature-exit-file protocol by design. Unset the 62 # premature-exit filepath to prevent Google Test from creating [all …]
|
| /third_party/jerryscript/jerry-debugger/ |
| D | jerry_client.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 35 # pylint: disable=too-many-instance-attributes,too-many-arguments 52 """ Exit JerryScript debugger """ 64 print("Non-negative integer number expected, 0 turns off this function") 112 args -= 1 234 # pylint: disable=invalid-name 236 """ Exit JerryScript debugger """ 246 debugger.src_offset -= debugger.src_offset_diff 255 print("Error: Non-negative integer number expected") 256 return -1 [all …]
|
| /third_party/grpc/src/python/grpcio_tests/tests/unit/ |
| D | _signal_client.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 37 # SIGINT before the signal handler is installed. I'm not happy with per-process 38 # global state, but the per-process global state that is signal handlers 48 # This sys.exit(0) avoids an exception caused by the cancelled RPC. 49 sys.exit(0) 54 global per_process_rpc_future # pylint: disable=global-statement 66 global per_process_rpc_future # pylint: disable=global-statement 108 parser.add_argument('--exception',
|
| D | _server_shutdown_test.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 14 """Tests clean shutdown of server on various interpreter exit conditions. 47 except Exception: # pylint: disable=broad-except
|
| D | _exit_test.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 14 """Tests clean exit of server/client on Python Interpreter exit/sigint. 39 BASE_SIGTERM_COMMAND = BASE_COMMAND + ['--wait_for_interrupt'] 56 except Exception: # pylint: disable=broad-except 69 raise RuntimeError('Process failed to exit within %s' % timeout) 86 # TODO(lidiz) enable exit tests once the root cause found.
|
| D | _exit_scenarios.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 14 """Defines a number of module-scope gRPC scenarios to test clean exit.""" 90 yield next(request_iterator) #pylint: disable=stop-iteration-return 145 # Traditional executors will not exit until all their 147 # never finish, we don't want to block exit on these jobs. 168 parser.add_argument('--wait_for_interrupt',
|
| /third_party/node/tools/inspector_protocol/ |
| D | code_generator.py | 3 # Use of this source code is governed by a BSD-style license that can be 29 # determine the hash used in the cache filename, and we need a pre-caching step 30 # to be concurrency-safe. Use absolute path because __file__ is absolute if 32 # If paths differ between pre-caching and individual file compilation, the cache 38 # pylint: disable=W0703 51 keys = list(config_tuple._fields) # pylint: disable=E1101 60 if optional_key.find(".") == -1 and optional_key not in keys: 67 cmdline_parser.add_argument("--output_base", type=unicode, required=True) 68 cmdline_parser.add_argument("--jinja_dir", type=unicode, required=True) 69 cmdline_parser.add_argument("--config", type=unicode, required=True) [all …]
|
| /third_party/cef/tools/yapf/yapf/ |
| D | __init__.py | 1 # Copyright 2015-2017 Google Inc. All Rights Reserved. 7 # http://www.apache.org/licenses/LICENSE-2.0 16 YAPF uses the algorithm in clang-format to figure out the "best" formatting for 17 Python code. It looks at the program as a series of "unwrappable lines" --- 20 is --- i.e., the formatting with the least penalty. 48 argv: command-line arguments, such as sys.argv (including the program name 52 0 if there were no changes, non-zero otherwise. 59 '-v', 60 '--version', 62 help='show version number and exit') [all …]
|
| /third_party/skia/infra/bots/ |
| D | recipes.py | 9 # /usr/bin/env: 'python3 -u': No such file or directory 11 # This little shell hack is a triple-quoted noop in python, but in sh it 12 # evaluates to re-exec'ing this script in unbuffered mode. 13 # pylint: disable=pointless-string-statement 14 ''''exec python3 -u -- "$0" ${1+"$@"} # ''' 22 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/main/recipes.py. 26 # pylint: disable=wrong-import-position 36 from io import open # pylint: disable=redefined-builtin 45 # url (str) - the url to the engine repo we want to use. 46 # revision (str) - the git revision for the engine to get. [all …]
|
| /third_party/glib/gio/gdbus-2.0/codegen/ |
| D | utils.py | 1 # -*- Mode: Python -*- 3 # GDBus - GLib D-Bus Library 5 # Copyright (C) 2008-2011 Red Hat, Inc. 27 # pylint: disable=too-few-public-methods 52 sys.exit(1) 65 sys.exit(1) 89 return s.replace(".", "-")
|
| /third_party/mbedtls/tests/scripts/ |
| D | test_generate_test_code.py | 5 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 17 # http://www.apache.org/licenses/LICENSE-2.0 42 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 50 # pylint: disable=wrong-import-order 64 # pylint: enable=wrong-import-order 365 # pylint: disable=unused-argument 385 #define ECP_PF_UNKNOWN -1 391 #define ECP_PF_UNKNOWN -1 405 #define ECP_PF_UNKNOWN -1 412 #define ECP_PF_UNKNOWN -1 [all …]
|
| /third_party/flutter/skia/infra/bots/recipe_modules/flavor/resources/ |
| D | symbolize_stack_trace.py | 3 # Use of this source code is governed by a BSD-style license that can be 5 # pylint: disable=line-too-long 42 # /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7fa90e8d0c62] 53 # The extra_path strips off the not-useful prefix and leaves just the 74 sym = subprocess.check_output(['addr2line', '-Cfpe', path, addr]) 85 sys.exit(proc.returncode) 91 sys.exit(1)
|
| /third_party/skia/infra/bots/recipe_modules/flavor/resources/ |
| D | symbolize_stack_trace.py | 3 # Use of this source code is governed by a BSD-style license that can be 5 # pylint: disable=line-too-long 41 line = line.decode('utf-8') 47 # /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7fa90e8d0c62] 58 # The extra_path strips off the not-useful prefix and leaves just the 80 sym = subprocess.check_output(['addr2line', '-Cfpe', path, addr]) 93 sys.exit(proc.returncode) 100 sys.exit(1)
|
| /third_party/flutter/skia/infra/bots/ |
| D | recipes.py | 9 # /usr/bin/env: 'python -u': No such file or directory 11 # This little shell hack is a triple-quoted noop in python, but in sh it 12 # evaluates to re-exec'ing this script in unbuffered mode. 13 # pylint: disable=pointless-string-statement 14 ''''exec python -u -- "$0" ${1+"$@"} # ''' 22 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/master/recipes.py. 26 # pylint: disable=wrong-import-position 39 # url (str) - the url to the engine repo we want to use. 40 # revision (str) - the git revision for the engine to get. 41 # branch (str) - the branch to fetch for the engine as an absolute ref (e.g. [all …]
|
| /third_party/glib/gobject/ |
| D | glib-genmarshal.in | 3 # pylint: disable=too-many-lines, missing-docstring, invalid-name 25 VERSION_STR = '''glib-genmarshal version @VERSION@ 26 glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 27 You may redistribute copies of glib-genmarshal under the terms of 57 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 58 #define g_marshal_value_peek_char(v) (v)->data[0].v_int 59 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 60 #define g_marshal_value_peek_int(v) (v)->data[0].v_int 61 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 62 #define g_marshal_value_peek_long(v) (v)->data[0].v_long [all …]
|
| /third_party/skia/tools/ |
| D | compare_codereview.py | 5 # Use of this source code is governed by a BSD-style license that can be 36 # pylint: disable=I0011,R0904 98 and 'build-result' in attrs.get('class', '').split()): 101 # <a class="build-result" href="*">. Then we save the 102 # (non-standard) status attribute and the URL. 158 # pylint: disable=I0011,R0904 213 # nest-level for backing out. 259 self._li_level -= 1 307 for i, wrapped_line in enumerate(wrap_to(line, 68 - (2 * indent))): 325 # pylint: disable=I0011,R0914,R0912 [all …]
|
| /third_party/flutter/skia/tools/ |
| D | compare_codereview.py | 5 # Use of this source code is governed by a BSD-style license that can be 36 # pylint: disable=I0011,R0904 98 and 'build-result' in attrs.get('class', '').split()): 101 # <a class="build-result" href="*">. Then we save the 102 # (non-standard) status attribute and the URL. 158 # pylint: disable=I0011,R0904 213 # nest-level for backing out. 259 self._li_level -= 1 307 for i, wrapped_line in enumerate(wrap_to(line, 68 - (2 * indent))): 325 # pylint: disable=I0011,R0914,R0912 [all …]
|
12