Introduce executorch_ops_check #26053
lint.yml
on: pull_request
lintrunner
/
linux-job
7m 20s
android-java-format
/
linux-job
5m 5s
Annotations
1 error and 5 warnings
lintrunner / linux-job
Process completed with exit code 1.
|
FLAKE8 F401:
pytorch/executorch/codegen/tools/gen_all_oplist.py#L13
'typing.Tuple' imported but unused
See https://www.flake8rules.com/rules/F401.html.
|
UFMT format:
pytorch/executorch/codegen/tools/gen_all_oplist.py#L1
Run `lintrunner -a` to apply this patch.
|
FLAKE8 F541:
pytorch/executorch/codegen/tools/test/test_gen_all_oplist.py#L114
f-string is missing placeholders
See .
|
FLAKE8 B017:
pytorch/executorch/codegen/tools/test/test_gen_all_oplist.py#L116
`assertRaises(Exception)` and `pytest.raises(Exception)` should be considered evil. They can lead to your test passing even if the code being tested is never executed due to a typo. Assert for a more specific exception (builtin or custom), or use `assertRaisesRegex` (if using `assertRaises`), or add the `match` keyword argument (if using `pytest.raises`), or use the context manager form with a target.
See .
|
UFMT format:
pytorch/executorch/codegen/tools/test/test_gen_all_oplist.py#L1
Run `lintrunner -a` to apply this patch.
|