Skip to content

Commit 8f2ec85

Browse files
committed
pre-commit: autoupdate
1 parent 4a17818 commit 8f2ec85

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ exclude: "^(caikit_nlp/generated/$|protobuf|_pb2(_grpc)?.pyi?|tests/tiny_models/
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-toml
1111
- id: check-added-large-files
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.5.5
13+
rev: v0.8.2
1414
hooks:
1515
- id: ruff
1616
args: [--fix, --exit-non-zero-on-fix]
1717
- id: ruff-format
1818
- repo: https://github.com/PyCQA/bandit
19-
rev: "1.7.5"
19+
rev: "1.8.0"
2020
hooks:
2121
- id: bandit
2222
args: ["-c", "pyproject.toml", "--quiet"]
2323
files: "caikit_nlp_client/"
2424
additional_dependencies: [".[toml]"]
2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.15.0
26+
rev: v3.19.0
2727
hooks:
2828
- id: pyupgrade

tests/fixtures/grpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import grpc
44
import pytest
5-
from caikit_nlp_client.grpc_client import GrpcClient
65
from grpc_health.v1 import health_pb2, health_pb2_grpc
76

7+
from caikit_nlp_client.grpc_client import GrpcClient
8+
89
from .utils import ConnectionType, get_random_port, wait_until
910

1011

tests/fixtures/http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
import requests
3+
34
from caikit_nlp_client.http_client import HttpClient
45

56
from .utils import ConnectionType, get_random_port, wait_until

tests/test_grpc_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from types import GeneratorType
22

33
import pytest
4+
45
from caikit_nlp_client.grpc_client import GrpcClient
56

67
from .fixtures.utils import ConnectionType

tests/test_http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
import pytest
55
import requests
6-
from caikit_nlp_client import HttpClient
76
from requests.exceptions import SSLError
87

8+
from caikit_nlp_client import HttpClient
9+
910
from .conftest import ConnectionType
1011

1112

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import fastapi
55
import pytest
66
import uvicorn
7-
from caikit_nlp_client.utils import get_server_certificate
87

8+
from caikit_nlp_client.utils import get_server_certificate
99
from tests.fixtures.utils import get_random_port
1010

1111

0 commit comments

Comments
 (0)