Home
last modified time | relevance | path

Searched +full:pylint +full:- +full:exit (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mbedtls/tests/scripts/
Dcheck-python-files.sh4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
19 # hurdles. Run pylint to detect some potential mistakes and enforce PEP8
32 $PYTHON - "$2" <<EOF
40 exit(1)
45 # Pylint 1.5.2 from Ubuntu 16.04 is too old:
46 # E: 34, 0: Unable to import 'mbedtls_dev' (import-error)
47 # Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line.
48 check_version pylint 1.8.3
58 # With just a --can-xxx option, check whether the tool for xxx is available
[all …]
Danalyze_outcomes.py37 # pylint: disable=too-few-public-methods
65 key = ';'.join([base_name, description.decode('utf-8')])
98 with open(outcome_file, 'r', encoding='utf-8') as input_file:
124 sys.exit(1)
125 except Exception: # pylint: disable=broad-except
126 # Print the backtrace and exit explicitly with our chosen status.
128 sys.exit(120)
Dcheck_test_cases.py10 # SPDX-License-Identifier: Apache-2.0
16 # http://www.apache.org/licenses/LICENSE-2.0
54 * Individual test cases in ssl-opt.sh.
73 """Return a new per-file state object.
75 The default per-file state object is None. Child classes that require per-file
78 #pylint: disable=no-self-use
84 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
100 """Iterate over the test cases in ssl-opt.sh or a file with a similar format."""
101 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
133 ssl_opt_sh = os.path.join(directory, 'ssl-opt.sh')
[all …]
Dtest_psa_compliance.py4 then complie and run the test suite. The clone is stored at <Mbed TLS root>/psa-arch-tests.
5 Known defects in either the test suite or mbedtls - identified by their test number - are ignored,
11 # SPDX-License-Identifier: Apache-2.0
17 # http://www.apache.org/licenses/LICENSE-2.0
34 # psa-arch-tests/api-tests/dev_apis/crypto/test_c0xx
37 # - Tracked in issue #3721
41 # - Tracked in issue #3274
45 # We currently use a fork of ARM-software/psa-arch-tests, with a couple of downstream patches
50 # - Tracked in issue #5145
52 # Web URL: https://github.com/bensze01/psa-arch-tests/tree/fixes-for-mbedtls-3
[all …]
Dcheck_names.py4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
20 are consistent with the house style and are also self-consistent. It only runs
24 a comprehensive "run-all" function (comprehensive_parse() and perform_checks())
35 - All exported and available symbols in the library object files, are explicitly
37 - All macros, constants, and identifiers (function names, struct names, etc)
39 - Typo checking: All words that begin with MBED exist as macros or constants.
61 MACRO_PATTERN = r"^(MBEDTLS|PSA)_[0-9A-Z_]*[0-9A-Z]$"
63 IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$"
65 class Match(): # pylint: disable=too-few-public-methods
[all …]
/third_party/benchmark/.github/workflows/
Dpylint.yml1 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/
Dpylint_code.sh8 # 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/
Dcheck-pylint.sh9 # 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/
Dgmock_test_utils.py46 # 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/
Dgtest_test_utils.py32 # 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 …]
Dgoogletest-filter-unittest.py34 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 …]
/third_party/jerryscript/jerry-debugger/
Djerry_client.py9 # 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.py7 # 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.py7 # 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.py7 # 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.
/third_party/node/tools/inspector_protocol/
Dcode_generator.py3 # 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__.py1 # 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/flatbuffers/.travis/
Dformat_check.sh9 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
24 sh src/clang-format-git.sh
29 gofmt -w .
35 node_modules/.bin/eslint ts/** --ext .ts --quiet --fix
38 pylint python/** --disable=all
40 swiftformat --config swift.swiftformat .
43 if ! git diff --quiet; then
51 git diff --binary --exit-code
/third_party/gn/infra/
Drecipes.py9 # /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/skia/infra/bots/
Drecipes.py9 # /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/
Dutils.py1 # -*- 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/scripts/mbedtls_dev/
Dmacro_collector.py5 # SPDX-License-Identifier: Apache-2.0
11 # http://www.apache.org/licenses/LICENSE-2.0
25 def __init__(self, filename: str, line_number: Union[int, str]) -> None:
33 # Dear Pylint, conventionally, a context manager class name is lowercase.
34 # pylint: disable=invalid-name,too-few-public-methods
51 def __init__(self, filename: str, binary: bool = False) -> None:
56 def __enter__(self) -> 'read_file_lines':
60 def __iter__(self) -> Iterator[str]:
65 self.line_number = 'exit'
66 def __exit__(self, exc_type, exc_value, exc_traceback) -> None:
[all …]
/third_party/flutter/skia/infra/bots/recipe_modules/flavor/resources/
Dsymbolize_stack_trace.py3 # 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/mbedtls/scripts/
Dconfig.py11 ## SPDX-License-Identifier: Apache-2.0
17 ## http://www.apache.org/licenses/LICENSE-2.0
39 # pylint: disable=too-few-public-methods
178 #pylint: disable=line-too-long
210 configurable function pointers that default to the built-in function.
219 # Similar to non-platform xxx_ALT, requires platform_alt.h
243 #pylint: disable=line-too-long
248 'MBEDTLS_NET_C', # requires POSIX-like networking
271 # No OS-provided entropy source
289 """Modify an adapter to disable non-crypto symbols.
[all …]
/third_party/skia/infra/bots/recipe_modules/flavor/resources/
Dsymbolize_stack_trace.py3 # 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)

123