Skip to content

Commit

Permalink
Merge pull request #364 from lsst-sqre/u/rra/dependencies
Browse files Browse the repository at this point in the history
Update pre-commit dependencies
  • Loading branch information
rra authored Jan 13, 2025
2 parents 6aceec4 + 7f1a67c commit 0726550
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 0726550

Please sign in to comment.