Skip to content

Commit

Permalink
chore: update ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendong-Fan committed Jan 3, 2025
1 parent e262fd1 commit 6cb00f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.7'
rev: 'v0.7.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
- id: ruff-format

exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks

- repo: local
hooks:
- id: mypy
Expand All @@ -15,11 +17,13 @@ repos:
types: [python]
pass_filenames: false
require_serial: true
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks

- repo: local
hooks:
- id: check-license
name: Check License
entry: python licenses/update_license.py . licenses/license_template.txt
language: system
types: [python]
types: [python]
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
4 changes: 2 additions & 2 deletions test/models/test_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def test_model_manager(
)

if TYPE_CHECKING:
assert type(models) == List[BaseModelBackend]
assert type(models) is List[BaseModelBackend]
messages: List = []
for _ in range(calls_count):
msg = "message"
if TYPE_CHECKING:
assert type(msg) == ChatCompletionSystemMessageParam
assert type(msg) is ChatCompletionSystemMessageParam
messages.append(msg)
model_manager = ModelManager(models, scheduling_strategy=strategy)

Expand Down

0 comments on commit 6cb00f5

Please sign in to comment.