Skip to content

Commit

Permalink
chore: some new ruff lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo committed May 31, 2024
1 parent ceee710 commit f491c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions craft_application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _get_dispatcher(self) -> craft_cli.Dispatcher:
except KeyboardInterrupt as err:
self._emit_error(craft_cli.CraftError("Interrupted."), cause=err)
sys.exit(128 + signal.SIGINT)
except Exception as err: # noqa: BLE001
except Exception as err:
self._emit_error(
craft_cli.CraftError(
f"Internal error while loading {self.app.name}: {err!r}"
Expand Down Expand Up @@ -548,7 +548,7 @@ def run(self) -> int: # noqa: PLR0912 (too many branches)
cause=err,
)
return_code = 1
except Exception as err: # noqa: BLE001 pylint: disable=broad-except
except Exception as err:
self._emit_error(
craft_cli.CraftError(f"{self.app.name} internal error: {err!r}"),
cause=err,
Expand Down
2 changes: 1 addition & 1 deletion craft_application/remote/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _init_repo(self) -> None:
f"Could not initialize a git repository in {str(self.path)!r}."
) from error

def push_url( # pylint: disable=too-many-branches
def push_url( # noqa: PLR0912 (too many branches)
self,
remote_url: str,
remote_branch: str,
Expand Down

0 comments on commit f491c8f

Please sign in to comment.