Skip to content

Commit

Permalink
style: update linters and fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Dec 12, 2024
1 parent 76c0e16 commit f909e97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion craft_application/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def from_parts_error(cls, err: craft_parts.PartsError) -> Self:
@classmethod
def from_os_error(cls, err: OSError) -> Self:
"""Create a PartsLifecycleError from an OSError."""
message = f"{err.filename}: {err.strerror}" if err.filename else err.strerror
message = (
f"{err.filename}: {err.strerror}" if err.filename else str(err.strerror)
)
details = err.__class__.__name__
if err.filename:
details += f": filename: {err.filename!r}"
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ remote = [
"pyxdg>=0.27",
]
lint = [
"black~=24.0",
"codespell[toml]==2.3.0",
"yamllint==1.35.1"
"codespell[toml]~=2.3",
"yamllint~=1.35"
]
types = [
"mypy[reports]==1.12.0",
"pyright==1.1.385",
"mypy[reports]~=1.12",
"pyright==1.1.390",
"types-requests",
"types-urllib3",
"types-pyyaml"
]
docs = [
"canonical-sphinx~=0.2.0",
Expand Down

0 comments on commit f909e97

Please sign in to comment.