Skip to content

Commit 1c4a4fb

Browse files
GeneAIclaude
authored andcommitted
fix: Resolve pre-commit hook conflicts
- Add wizards/ to exclude pattern (Florence-specific healthcare wizards) - Remove standalone isort hook (conflicts with ruff's "I" rules) - Fix import sorting in test_secure_memdocs_extended.py 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2fb17f9 commit 1c4a4fb

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ exclude: |
1111
\.venv/|
1212
build/|
1313
dist/|
14-
.*\.egg-info/
14+
.*\.egg-info/|
15+
wizards/
1516
)
1617
1718
repos:
@@ -65,9 +66,5 @@ repos:
6566
- id: mixed-line-ending
6667
args: ['--fix=lf']
6768

68-
# Python import sorting
69-
- repo: https://github.com/pycqa/isort
70-
rev: 5.13.2
71-
hooks:
72-
- id: isort
73-
args: ['--profile', 'black', '--line-length', '100']
69+
# Note: Import sorting handled by ruff's "I" rules (isort plugin)
70+
# Removed standalone isort to avoid conflicts with ruff

tests/test_secure_memdocs_extended.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
EncryptionManager,
2929
MemDocsStorage,
3030
PatternMetadata,
31-
)
32-
from empathy_llm_toolkit.security.secure_memdocs import PermissionError as CustomPermissionError
33-
from empathy_llm_toolkit.security.secure_memdocs import (
3431
SecureMemDocsIntegration,
3532
SecurePattern,
3633
SecurityError,
3734
)
35+
from empathy_llm_toolkit.security.secure_memdocs import PermissionError as CustomPermissionError
3836

3937

4038
class TestEncryptionManager:

wizards/sbar_report.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99

1010
from fastapi import APIRouter, HTTPException, status
1111
from pydantic import BaseModel, Field
12+
from services.openai_client import get_client
1213
from utils.api_responses import create_error_response, create_success_response
1314
from utils.logging import get_logger
1415

15-
from services.openai_client import get_client
16-
1716
router = APIRouter(prefix="/wizards/sbar-report", tags=["wizards"])
1817
logger = get_logger(__name__)
1918

0 commit comments

Comments
 (0)