Home
last modified time | relevance | path

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

12345678910>>...19

/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_grad.py7 # http://www.apache.org/licenses/LICENSE-2.0
25 # go/tf-wildcard-import
26 # pylint: disable=wildcard-import,undefined-variable,redefined-builtin
28 # pylint: enable=wildcard-import
39 # pylint: disable=protected-access
42 # pylint: enable=protected-access
47 # the non-exit branch of the Switch, so update the second input
51 # pylint: disable=protected-access
54 # pylint: enable=protected-access
58 # the Exit branch, which is grad[0]. grad[1] is empty at this point.
[all …]
Dcontrol_flow_util.py7 # http://www.apache.org/licenses/LICENSE-2.0
37 def enable_control_flow_v2(): # pylint: disable=invalid-name
60 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
65 ctxt = graph._get_control_flow_context() # pylint: disable=protected-access
79 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
84 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
104 """Return true if `op` is an Exit."""
105 return op.type == "Exit" or op.type == "RefExit"
121 ctxt = c._get_control_flow_context() # pylint: disable=protected-access
149 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
[all …]
Dcontrol_flow_state.py7 # http://www.apache.org/licenses/LICENSE-2.0
30 # pylint: disable=protected-access
51 - is inside a `while_loop` that is a parent of the calling context, and
52 - cannot be evaluated at graph build time to a constant.
56 …curr_ctxt = ops.get_default_graph()._get_control_flow_context() # pylint: disable=protected-access
72 # pylint: disable=protected-access
74 # pylint: enable=protected-access
76 # If max_iter_ctxt (non-strictly) contains curr_ctxt, then it's OK to use.
160 with forward_ctxt._graph.as_default(): # pylint: disable=protected-access
165 outer_forward_ctxt.Exit()
[all …]
Dcontrol_flow_ops.py7 # http://www.apache.org/licenses/LICENSE-2.0
19 # pylint: disable=g-bad-name
46 # go/tf-wildcard-import
47 # pylint: disable=wildcard-import,undefined-variable
49 # pylint: enable=wildcard-import
61 # cond_v2 -> gradients_util -> control_flow_ops
66 # while_v2 -> control_flow_ops
67 # while_v2 -> gradients_util -> control_flow_ops
95 # reshape((-1,)) is the fastest way to get a flat array view
96 if tensor._rank(): # pylint: disable=protected-access
[all …]
/external/openthread/third_party/mbedtls/repo/tests/scripts/
Dcheck-python-files.sh4 # 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 …]
/external/mbedtls/tests/scripts/
Dcheck-python-files.sh4 # 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 …]
/external/rust/crates/grpcio-sys/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'
42 python3 -m virtualenv $VIRTUALENV -p $(which python3)
46 $PYTHON -m pip install --upgrade pip==19.3.1
48 # TODO(https://github.com/grpc/grpc/issues/23394): Update Pylint.
49 $PYTHON -m pip install --upgrade astroid==2.3.3 pylint==2.2.2 "isort>=4.3.0,<5.0.0"
51 EXIT=0
53 $PYTHON -m pylint --rcfile=.pylintrc -rn "$dir" ${IGNORE_PATTERNS} || EXIT=1
57 $PYTHON -m pylint --rcfile=.pylintrc-tests -rn "$dir" ${IGNORE_PATTERNS} || EXIT=1
[all …]
/external/grpc-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'
40 python3 -m virtualenv $VIRTUALENV -p $(which python3)
44 $PYTHON -m pip install --upgrade pip==19.3.1
46 # TODO(https://github.com/grpc/grpc/issues/23394): Update Pylint.
47 $PYTHON -m pip install --upgrade astroid==2.3.3 \
48 pylint==2.2.2 \
52 EXIT=0
54 $PYTHON -m pylint --rcfile=.pylintrc -rn "$dir" ${IGNORE_PATTERNS} || EXIT=1
[all …]
/external/cronet/third_party/google_benchmark/src/.github/workflows/
Dpylint.yml1 name: pylint
10 pylint:
12 runs-on: ubuntu-latest
15 - uses: actions/checkout@v3
16 - name: Set up Python 3.8
17 uses: actions/setup-python@v1
19 python-version: 3.8
21 - name: Install dependencies
23 python -m pip install --upgrade pip
24 pip install pylint pylint-exit conan
[all …]
/external/autotest/utils/
Drun_pylint.py4 # # Third party dependencies. These are only listed because pylint itself needs
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"
[all …]
/external/pigweed/pw_build/py/pw_build/
Dproject_builder_context.py7 # https://www.apache.org/licenses/LICENSE-2.0
59 ) -> int:
79 # pylint: disable=unused-argument
84 def __init__(self, ctx) -> None:
92 ) -> AnyFormattedText:
108 def get_width( # pylint: disable=no-self-use
110 ) -> AnyDimension:
117 def __init__(self, ctx) -> None:
125 ) -> AnyFormattedText:
135 # pylint: enable=unused-argument
[all …]
/external/cronet/third_party/googletest/src/googlemock/test/
Dgmock_test_utils.py34 # 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
81 # pylint: disable-msg=C6409
90 # pylint: enable-msg=C6409
/external/bazelbuild-rules_cc/tools/migration/
Dctoolchain_comparator.py7 # http://www.apache.org/licenses/LICENSE-2.0
24 @rules_cc//tools/migration:ctoolchain_comparator -- \
25 --before=/path/to/CROSSTOOL1 \
26 --after=/path/to/CROSSTOOL2 \
27 --toolchain_identifier=id
98 print(("Error parsing file '%s':" % input_file)) # pylint: disable=superfluous-parens
99 print("Attempt to parse it as a CROSSTOOL proto:") # pylint: disable=superfluous-parens
100 print(crosstool_error) # pylint: disable=superfluous-parens
101 print("Attempt to parse it as a CToolchain proto:") # pylint: disable=superfluous-parens
102 print(toolchain_error) # pylint: disable=superfluous-parens
[all …]
/external/cronet/third_party/googletest/src/googletest/test/
Dgtest_test_utils.py32 # pylint: disable-msg=C6204
46 # pylint: enable-msg=C6204
50 # The environment variable for specifying the path to the premature-exit file.
68 TestCase = _test_module.TestCase # pylint: disable=C6409
81 # here to maintain module-wide state.
82 global _gtest_flags_are_parsed # pylint: disable=W0603
95 prefix = '--' + flag + '='
101 # We don't increment i in case we just found a --gtest_* flag
110 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags
168 'a path to the binary via the --build_dir flag or the BUILD_DIR\n'
[all …]
/external/tensorflow/tensorflow/tools/test/
Drun_and_gather_logs.py7 # http://www.apache.org/licenses/LICENSE-2.0
33 # pylint: disable=g-import-not-at-top
34 # pylint: disable=g-bad-import-order
35 # pylint: disable=unused-import
43 "Issuing a soft exit.\n\n\n".format(e))
44 sys.exit(0)
45 # pylint: enable=g-bad-import-order
46 # pylint: enable=unused-import
78 flag for flag in shlex.split(FLAGS.cc_flags) if not flag.startswith("-i")
/external/pigweed/pw_watch/py/pw_watch/
Dwatch.py8 # https://www.apache.org/licenses/LICENSE-2.0
23 pw watch -C out
29 pw watch -C out/cmake pw_run_tests.modules
32 pw watch -C out -C out/cmake pw_apps
35 pw watch python.tests -C out/cmake pw_apps
38 pw watch --run-command 'mkdir -p outbazel'
39 -C outbazel '//...'
40 --build-system-command outbazel 'bazel build'
41 --build-system-command outbazel 'bazel test'
101 # TODO: b/182281481 - Fix file ignoring, rather than just suppressing logs
[all …]
/external/grpc-grpc/src/python/grpcio_observability/grpc_observability/
D_gcp_observability.py7 # http://www.apache.org/licenses/LICENSE-2.0
22 # pytype: disable=pyi-error
55 # pylint: disable=no-self-use
79 except Exception as e: # pylint: disable=broad-except
96 except Exception as e: # pylint: disable=broad-except
102 def __exit__(self, exc_type, exc_val, exc_tb) -> None:
103 self.exit()
105 def exit(self) -> None: member in GCPOpenCensusObservability
107 # immediately after exit, it's possible that core didn't call RecordEnd
122 ) -> ClientCallTracerCapsule:
[all …]
/external/pigweed/pw_console/py/pw_console/
Dpw_ptpython_repl.py7 # https://www.apache.org/licenses/LICENSE-2.0
29 # inclusive-language: disable
32 # inclusive-language: enable
78 ('pigweed-code', PigweedCodeStyle),
79 ('pigweed-code-light', PigweedCodeLightStyle),
89 def _user_input_is_a_shell_command(text: str) -> bool:
95 ): # pylint: disable=too-many-instance-attributes
115 # pylint: disable=unnecessary-lambda
163 def _set_pt_python_input_buffer_control_focusable(self) -> None:
168 ' https://github.com/prompt-toolkit/ptpython/'
[all …]
/external/tensorflow/tensorflow/python/distribute/failure_handling/
Dfailure_handling.py7 # http://www.apache.org/licenses/LICENSE-2.0
20 termination (preemption or maintenance) of workers in multi-worker synchronous
56 """Returns a directory for non-chief worker to save checkpoint."""
77 platforms. Thus `PreemptionCheckpointHandler` may take a user-defined
81 `False` otherwise. The function should be lightweight and non-blocking so that
85 * How to exit the program
88 `PreemptionCheckpointHandler` executes after saving the checkpoint to exit the
93 recognized as a program auto-restart signal, or maybe the user has a
95 the program to auto-restart if it ever exits with this `RESTART_CODE`. In both
96 cases, configuring the `exit_fn` to be `sys.exit(RESTART_CODE)` makes the
[all …]
/external/chromium-trace/catapult/systrace/bin/
Drun_tests4 # Use of this source code is governed by a BSD-style license that can be
22 parser.add_option("-d", "--device", dest="device",
24 options, _args = parser.parse_args() # pylint: disable=unused-variable
35 test, test._testMethodName) # pylint: disable=protected-access
41 sys.exit(0)
43 sys.exit(1)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dshell.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
39 """ Exit error """
73 """ Copy -r src to dest """
102 """ Set close-on-exec (not implemented, but not an error) """
103 # pylint: disable = W0613
107 """ Set close-on-exec """
127 # pylint: disable = W0622
136 j = _tempfile._counter.get_next() # pylint: disable = E1101, W0212
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dshell.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
39 """ Exit error """
73 """ Copy -r src to dest """
102 """ Set close-on-exec (not implemented, but not an error) """
103 # pylint: disable = W0613
107 """ Set close-on-exec """
127 # pylint: disable = W0622
136 j = _tempfile._counter.get_next() # pylint: disable = E1101, W0212
[all …]
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_from_file_agent.py2 # Use of this source code is governed by a BSD-style license that can be
35 sys.exit(1)
49 sys.exit(1)
82 def add_options(parser): # pylint: disable=unused-argument
99 # pylint: disable=unused-argument
115 return trace_result.TraceResult('trace-data', self._trace_data)
124 # pylint: disable=no-self-use
/external/cronet/third_party/protobuf/python/
Dsetup.py5 # pylint:disable=missing-module-docstring
6 # pylint:disable=g-bad-import-order
17 # pylint:disable=g-importing-member
18 # pylint:disable=g-multiple-import
55 exec(version_file.read(), globals()) # pylint:disable=exec-used
56 return __version__ # pylint:disable=undefined-variable
66 require: if True, exit immediately when a path is not found.
81 sys.exit(-1)
87 sys.exit(-1)
89 protoc_command = [protoc, '-I../src', '-I.', '--python_out=.', source]
[all …]
/external/protobuf/python/
Dsetup.py5 # pylint:disable=missing-module-docstring
6 # pylint:disable=g-bad-import-order
17 # pylint:disable=g-importing-member
18 # pylint:disable=g-multiple-import
55 exec(version_file.read(), globals()) # pylint:disable=exec-used
56 return __version__ # pylint:disable=undefined-variable
66 require: if True, exit immediately when a path is not found.
81 sys.exit(-1)
87 sys.exit(-1)
89 protoc_command = [protoc, '-I../src', '-I.', '--python_out=.', source]
[all …]

12345678910>>...19