Skip to content

Commit

Permalink
ci: update black+ruff version in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 6, 2023
1 parent cdb8972 commit 0d3db50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.270
rev: v0.0.275
hooks:
- id: ruff
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def test_all_ai_horde_model_defs_in_swagger() -> None:
# If `.get_api_model_name()` is None, then the request type has no payload,
# and is supposed to be a GET or DELETE
if request_type.get_api_model_name() is None:
assert request_type.get_http_method() in [HTTPMethod.GET, HTTPMethod.DELETE,], (
assert request_type.get_http_method() in [
HTTPMethod.GET,
HTTPMethod.DELETE,
], (
f"Request type {request_type.__name__} has no model name, but is not a GET or DELETE request. "
"It should probably be a POST, PUT, or PATCH request."
)
Expand Down

0 comments on commit 0d3db50

Please sign in to comment.