Skip to content

Commit

Permalink
Merge pull request #2340 from freedomofpress/dependabot/pip/ruff-0.8.4
Browse files Browse the repository at this point in the history
Bump ruff from 0.6.4 to 0.8.4
  • Loading branch information
legoktm authored Dec 20, 2024
2 parents 2885724 + 4fdd09b commit f86671c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion client/securedrop_client/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def decrypt_submission_or_reply(
"""
original_filename = Path(Path(filepath).stem).stem # Remove one or two suffixes

err = tempfile.NamedTemporaryFile(suffix=".message-error", delete=False)
err = tempfile.NamedTemporaryFile(suffix=".message-error", delete=False) # noqa: SIM115
with tempfile.NamedTemporaryFile(suffix=".message") as out:
cmd = self._gpg_cmd_base()
cmd.extend(["--decrypt", filepath])
Expand Down
4 changes: 2 additions & 2 deletions client/securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,9 +1237,9 @@ def update_sources(self, sources: list[Source]) -> list[str]:
source_widget.reload()

# Add widgets for new sources
for uuid in sources_to_add:
for uuid, source in sources_to_add.items():
source_widget = SourceWidget(
self.controller, sources_to_add[uuid], self.source_selected, self.adjust_preview
self.controller, source, self.source_selected, self.adjust_preview
)
source_item = SourceListWidgetItem(self)
source_item.setSizeHint(source_widget.sizeHint())
Expand Down
2 changes: 1 addition & 1 deletion client/securedrop_client/sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _rpc_target(self) -> list:
def _streaming_download(
self, data: dict[str, Any], env: dict
) -> StreamedResponse | JSONResponse:
fobj = tempfile.TemporaryFile("w+b")
fobj = tempfile.TemporaryFile("w+b") # noqa: SIM115

retry = 0
bytes_written = 0
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "AGPLv3+"
python = "^3.11"

[tool.poetry.group.dev.dependencies]
ruff = "^0.6.4"
ruff = "^0.8.4"
safety = "*"
shellcheck-py = "*"
zizmor = "*"
Expand Down

0 comments on commit f86671c

Please sign in to comment.