Skip to content

Commit

Permalink
Update pre-commit dependencies
Browse files Browse the repository at this point in the history
Update to the latest version of Ruff and the latest shared Ruff
configuration file. Apply the formatting changes it wanted to make.
  • Loading branch information
rra committed Jan 13, 2025
1 parent 6aceec4 commit 7f1a67c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.9.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions ruff-shared.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
2 changes: 1 addition & 1 deletion safir/tests/database_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ async def test_pagination(database_url: str, database_password: str) -> None:
base_url = URL("https://example.com/query")
next_url = f"{base_url!s}?cursor={result.next_cursor}"
assert result.link_header(base_url) == (
f'<{base_url!s}>; rel="first", ' f'<{next_url}>; rel="next"'
f'<{base_url!s}>; rel="first", <{next_url}>; rel="next"'
)
assert result.first_url(base_url) == str(base_url)
assert result.next_url(base_url) == next_url
Expand Down
3 changes: 1 addition & 2 deletions safir/tests/uws/job_error_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ async def test_unknown_error(
r = await client.get("/test/jobs/1/error")
assert r.status_code == 200
assert r.text == JOB_ERROR_SUMMARY.strip().format(
"Error: Unknown error executing task\n\n"
"ValueError: Unknown exception"
"Error: Unknown error executing task\n\nValueError: Unknown exception"
)

# For now, this shouldn't have resulted in Slack errors.
Expand Down

0 comments on commit 7f1a67c

Please sign in to comment.