Searched +full:pylint +full:- +full:exit (Results 1 – 25 of 64) sorted by relevance
123
| /third_party/mbedtls/tests/scripts/ |
| D | check-python-files.sh | 4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 # hurdles. Run pylint to detect some potential mistakes and enforce PEP8 20 $PYTHON - "$2" <<EOF 28 exit(1) 33 # Pylint 1.5.2 from Ubuntu 16.04 is too old: 34 # E: 34, 0: Unable to import 'mbedtls_dev' (import-error) 35 # Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line. 36 check_version pylint 1.8.3 46 # With just a --can-xxx option, check whether the tool for xxx is available 47 # with an acceptable version, and exit without running any checks. The exit [all …]
|
| D | depends.py | 4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 16 - domain name, can be used to run only specific tests via command-line; 17 - configuration building method, described in detail below; 18 - list of symbols passed to the configuration building method; 19 - commands to be run on each job (only build, build and test, or any other custom); 20 - optional list of symbols to be excluded from testing. 24 - ComplementaryDomain - build a job for each passed symbol by disabling a single 27 - ExclusiveDomain - build a job where, for each passed symbol, only this particular 29 any non-standard symbols to set/unset in EXCLUSIVE_GROUPS. These are usually not 30 direct dependencies, but rather non-trivial results of other configs missing. Then [all …]
|
| D | test_psa_compliance.py | 4 then compile and run the test suite. The clone is stored at <repository root>/psa-arch-tests. 5 Known defects in either the test suite or mbedtls / TF-PSA-Crypto - identified by their test 6 number - are ignored, while unexpected failures AND successes are reported as errors, to help 11 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 21 #pylint: disable=unused-import 26 # TF-PSA-Crypto (or the test suite). 29 # psa-arch-tests/api-tests/dev_apis/crypto/test_c0xx 32 PSA_ARCH_TESTS_REPO = 'https://github.com/ARM-software/psa-arch-tests.git' 35 #pylint: disable=too-many-branches,too-many-statements,too-many-locals 49 #pylint: disable=bad-continuation [all …]
|
| D | generate_pkcs7_tests.py | 4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 - It is expected that the pkcs7_asn1_fail( data_t *pkcs7_buf ) 12 - This is not meant to be portable code, if anything it is meant to serve as 22 class Test: # pylint: disable=too-few-public-methods 31 # pylint: disable=no-self-use 48 # pylint: disable=no-self-use 56 sys.exit() 57 with open(file, "r", encoding='UTF-8') as fp: 68 latest_test_num = float(tests[-1].name.split('#')[1]) 78 with open(self.file_name, 'a', encoding='UTF-8') as fw: [all …]
|
| D | generate_test_cert_macros.py | 9 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 18 #pylint: disable=signature-differs, too-few-public-methods 39 parser.add_argument('--string', type=macro_define_type, action=MacroDefineAction, 41 parser.add_argument('--binary', type=macro_define_type, action=MacroDefineAction, 44 parser.add_argument('--password', type=macro_define_type, action=MacroDefineAction, 46 parser.add_argument('--output', type=str, required=True) 55 #pylint: disable=dangerous-default-value, unused-argument 95 sys.exit(main())
|
| D | check_test_cases.py | 10 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 61 * Individual test cases in ssl-opt.sh. 80 """Return a new per-file state object. 82 The default per-file state object is None. Child classes that require per-file 85 #pylint: disable=no-self-use 91 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none 109 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none 110 listed = subprocess.check_output(['sh', script_name, '--list-test-cases']) 112 # test case description between --list-test-cases and its OUTCOME.CSV 123 raise ScriptOutputError(script_name, idx, line.decode("utf-8")) [all …]
|
| D | run_demos.py | 36 successes = len(demos) - len(failures) 49 # Keep the message on one line. pylint: disable=line-too-long 55 parser.add_argument('--quiet', '-q', 60 sys.exit(0 if success else 1)
|
| /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/mindspore/mindspore-src/source/scripts/pre_commit/ |
| D | install_generic_tools.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 18 if [ $? -eq "1" ]; then 19 exit 1 22 PYTHON_VERSION=$(python --version | awk -F' ' '{print $2}') 25 exit 1 30 exit 1 33 if [ $? -eq "1" ]; then 34 exit 1 38 pip install --upgrade --force-reinstall cmakelint 41 pip install --upgrade --force-reinstall codespell [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' 41 python3 -m virtualenv $VIRTUALENV -p $(which python3) 45 $PYTHON -m pip install --upgrade pip==19.3.1 47 # TODO(https://github.com/grpc/grpc/issues/23394): Update Pylint. 48 $PYTHON -m pip install --upgrade astroid==2.3.3 \ 49 pylint==2.2.2 \ 53 EXIT=0 55 $PYTHON -m pylint --rcfile=.pylintrc -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/mindspore/mindspore-src/source/scripts/pre_commit/githooks/ |
| D | pre-push | 8 # http://www.apache.org/licenses/LICENSE-2.0 20 CURR_DIR=$(dirname "${BASH_SOURCE-$0}") 22 cd -P "${CURR_DIR}" || exit 23 pwd -P 26 cd -P "${CURR_DIR}/../../../" || exit 27 pwd -P 30 cd -P "${CURR_DIR}/../../../../" || exit 31 pwd -P 35 uname_s=$(uname -s) 41 elif [ "$os_name" == "MINGW" ]; then # MINGW, windows, git-bash [all …]
|
| /third_party/astc-encoder/Test/ |
| D | astc_test_python.py | 2 # SPDX-License-Identifier: Apache-2.0 3 # ----------------------------------------------------------------------------- 10 # http://www.apache.org/licenses/LICENSE-2.0 17 # ----------------------------------------------------------------------------- 28 import pylint.epylint as lint 38 Run pylint over the codebase. 47 with open("pylint.log", "w") as fileHandle: 52 Test that we conform to PEP-8. 67 results = unittest.main(exit=False) 72 sys.exit(main())
|
| /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/mbedtls/scripts/mbedtls_dev/ |
| D | test_data_generation.py | 10 # SPDX-License-Identifier: Apache-2.0 16 # http://www.apache.org/licenses/LICENSE-2.0 36 T = TypeVar('T') #pylint: disable=invalid-name 61 # pylint: disable=unused-argument 66 def arguments(self) -> List[str]: 77 def description(self) -> str: 96 def create_test_case(self) -> test_case.TestCase: 108 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: 120 #pylint: disable=too-few-public-methods 134 def generate_tests(cls) -> Iterator[test_case.TestCase]: [all …]
|
| /third_party/mbedtls/scripts/ |
| D | code_size_compare.py | 12 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 32 ARMV8_M = 'armv8-m' 40 TFM_MEDIUM = 'tfm-medium' 50 class CodeSizeDistinctInfo: # pylint: disable=too-few-public-methods 53 def __init__( #pylint: disable=too-many-arguments 61 ) -> None: 69 :param: opt_level: Options that control optimization. (E.g. -Os) 83 return '{git_rev}-{arch}-{config}-{compiler}'.format(**self.__dict__) 86 class CodeSizeCommonInfo: # pylint: disable=too-few-public-methods 92 ) -> None: [all …]
|
| /third_party/grpc/src/python/grpcio_tests/tests/unit/ |
| D | _signal_client.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 38 # SIGINT before the signal handler is installed. I'm not happy with per-process 39 # global state, but the per-process global state that is signal handlers 49 # This sys.exit(0) avoids an exception caused by the cancelled RPC. 50 sys.exit(0) 55 global per_process_rpc_future # pylint: disable=global-statement 71 global per_process_rpc_future # pylint: disable=global-statement 121 "--exception", 126 "--gevent", help="Whether to run under gevent.", action="store_true"
|
| /third_party/googletest/googletest/test/ |
| D | gtest_test_utils.py | 32 # pylint: disable=g-import-not-at-top 46 # pylint: enable=g-import-not-at-top 50 # The environment variable for specifying the path to the premature-exit file. 94 prefix = '--' + flag + '=' 100 # We don't increment i in case we just found a --gtest_* flag 109 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags 168 'a path to the binary via the --build_dir flag or the BUILD_DIR\n' 172 sys.exit(1) 178 """Returns the argument to exit(), or -1 if exit() wasn't called. 186 # the argument to exit() directly. [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/test/st/scripts/triton/ |
| D | mslite_client.py | 9 parser.add_argument('-u', 10 '--url', 15 parser.add_argument('-m', 16 '--model', 21 parser.add_argument('--input_name', 26 parser.add_argument('--input_shape', 31 parser.add_argument('--input_data', 36 parser.add_argument('--output_name', 41 parser.add_argument('--output_data', 64 sys.exit(1) [all …]
|
| /third_party/googletest/googlemock/test/ |
| D | gmock_test_utils.py | 34 # pylint: disable=C6204 61 """Returns the argument to exit(), or -1 if exit() wasn't called. 69 # the argument to exit() directly. 72 # On Unix, os.WEXITSTATUS() must be used to extract the exit status 77 return -1
|
| /third_party/skia/m133/third_party/externals/libyuv/ |
| D | download_vs_toolchain.py | 5 # Use of this source code is governed by a BSD-style license 25 import vs_toolchain # pylint: disable=wrong-import-position 29 sys.exit(vs_toolchain.main())
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/dataset/engine/obs/ |
| D | util.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 74 Checking that all meta files exit in local. 98 start (int): Start index of sample for non-full dataset file. 99 end (int): End index of sample for non-full dataset file. 137 start = start_idx - pre_cnt 140 end = end_idx - pre_cnt 148 end = end_idx - pre_cnt 222 shard_files.append((dataset_file, -1, -1, True)) 240 if end == -1: 269 except Exception as e: # pylint: disable=W0703 [all …]
|
| /third_party/skia/m133/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+"$@"} # ''' 21 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/main/recipes.py. 25 # pylint: disable=wrong-import-position 42 # url (str) - the url to the engine repo we want to use. 43 # revision (str) - the git revision for the engine to get. 44 # branch (str) - the branch to fetch for the engine as an absolute ref (e.g. [all …]
|
| /third_party/astc-encoder/Test/testlib/ |
| D | encoder.py | 1 # SPDX-License-Identifier: Apache-2.0 2 # ----------------------------------------------------------------------------- 3 # Copyright 2019-2023 Arm Limited 9 # http://www.apache.org/licenses/LICENSE-2.0 16 # ----------------------------------------------------------------------------- 63 def build_cli(self, image, blockSize="6x6", preset="-thorough", 71 preset (str): The quality-performance preset to use. 80 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc 93 # pylint: disable=no-self-use 102 sys.exit(1) [all …]
|
| /third_party/grpc/src/python/grpcio_observability/grpc_observability/ |
| D | _open_telemetry_observability.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 22 # pytype: disable=pyi-error 90 meter = meter_provider.get_meter("grpc-python", grpc.__version__) 96 def _should_record(self, stats_data: StatsData) -> bool: 100 def _record_stats_data(self, stats_data: StatsData) -> None: 145 def maybe_record_stats_data(self, stats_data: List[StatsData]) -> None: 150 def get_client_exchange_labels(self) -> Dict[str, AnyStr]: 163 def get_server_exchange_labels(self) -> Dict[str, str]: 175 def activate_client_plugin_options(self, target: bytes) -> None: 177 target_str = target.decode("utf-8", "replace") [all …]
|
123