diff --git a/pyproject.toml b/pyproject.toml index 7adabb9eab66..ed6a9b71dda6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ external = ["F821", "Y"] select = [ "ARG", # flake8-unused-arguments "B", # flake8-bugbear + "BLE", # flake8-blind-except "D", # pydocstyle "EXE", # flake8-executable "FA", # flake8-future-annotations diff --git a/tests/pytype_test.py b/tests/pytype_test.py index 7e3eeb7354bb..2b5772026cdb 100755 --- a/tests/pytype_test.py +++ b/tests/pytype_test.py @@ -87,7 +87,7 @@ def run_pytype(*, filename: str, python_version: str, missing_modules: Iterable[ with pytype_config.verbosity_from(options): ast = loader.load_file(_get_module_name(filename), filename) loader.finish_and_verify_ast(ast) - except Exception: + except Exception: # noqa: BLE001 # Forwarding the traceback for logging stderr = traceback.format_exc() else: stderr = None