diff --git a/archinstall/lib/profile/profiles_handler.py b/archinstall/lib/profile/profiles_handler.py index 80f4b84c9f..63469b6f8b 100644 --- a/archinstall/lib/profile/profiles_handler.py +++ b/archinstall/lib/profile/profiles_handler.py @@ -168,7 +168,7 @@ def remove_custom_profiles(self, profiles: Profile | list[Profile]) -> None: self._profiles = [p for p in self.profiles if p.name not in remove_names] def get_profile_by_name(self, name: str) -> Profile | None: - return next(filter(lambda x: x.name == name, self.profiles), None) # type: ignore + return next(filter(lambda x: x.name == name, self.profiles), None) # type: ignore[arg-type, union-attr] def get_top_level_profiles(self) -> list[Profile]: return [p for p in self.profiles if p.is_top_level_profile()] diff --git a/pyproject.toml b/pyproject.toml index 0e66b58472..17bc2ee42f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ disallow_any_expr = false disallow_any_unimported = true enable_error_code = [ "explicit-override", + "ignore-without-code", "mutable-override", "redundant-expr", "redundant-self", @@ -192,6 +193,7 @@ select = [ "ICN", # flake8-import-conventions "ISC", # flake8-implicit-str-concat "LOG", # flake8-logging + "PGH", # pygrep-hooks "PIE", # flake8-pie "PLC", # Pylint conventions "PLE", # Pylint errors