diff --git a/libs/astradb/pyproject.toml b/libs/astradb/pyproject.toml index 0d256f1..6d597a4 100644 --- a/libs/astradb/pyproject.toml +++ b/libs/astradb/pyproject.toml @@ -79,7 +79,6 @@ ignore = [ "ERA", # Do we want to activate (no commented code) ? "FBT", # Do we want to activate (boolean trap) ? "ISC001", # Messes with the formatter - "PERF203", # Incorrect detection "PLR09", # TODO: do we enforce these ones (complexity) ? "PTH", # Do we want to activate (use pathlib) ? diff --git a/libs/astradb/scripts/check_imports.py b/libs/astradb/scripts/check_imports.py index b5743c9..1f09c75 100755 --- a/libs/astradb/scripts/check_imports.py +++ b/libs/astradb/scripts/check_imports.py @@ -10,7 +10,7 @@ for file in files: try: SourceFileLoader("x", file).load_module() - except Exception: + except (ImportError, FileNotFoundError): # noqa: PERF203 has_faillure = True print(file) traceback.print_exc()