Commit 0806ec57 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(ci): check imports with the same isort as pre-commit

CI installs isort 5.13.2 from requirements.txt, while pre-commit runs
6.0.1. With the black profile, 6.x keeps an import exploded when it ends
in a trailing comma and 5.13 joins it back onto one line, so files the
hook had formatted failed CI's check (9 of them on this branch). Pin
6.0.1 in requirements.txt so the hook and CI agree.

kubernetes/client.py also had `from requests import Response` inside
the first-party block; it moves up to the third-party imports, where
both versions put it.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent c366fcb7
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for requirements.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ idna==3.10
importlib_metadata==8.7.0
iniconfig==2.0.0
ipython==8.12.3
isort==5.13.2
isort==6.0.1
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
+1 −2
Changes for src/openop_tfsdk/edgecloud/adapters/kubernetes/client.py: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@
from typing import Dict, List, Optional

from kubernetes.client import V1Deployment

from openop_tfsdk._diagnostics import backend_diagnostics, validation_diagnostics
from requests import Response

from openop_tfsdk._diagnostics import backend_diagnostics, validation_diagnostics
from openop_tfsdk.edgecloud.adapters.kubernetes.lib.core.piedge_encoder import (
    deploy_service_function,
)