mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
fix: resolve all ruff linting errors
Fixed 42 linting errors across codebase: - Auto-fixed 35 import sorting issues (I001) - Added unused imports to __all__ in execution/__init__.py - Removed unused variable assignments (F841) - Updated pyproject.toml to use [tool.ruff.lint] section All ruff checks now pass successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,8 +5,8 @@ This file is automatically loaded by pytest and provides
|
||||
shared fixtures available to all test modules.
|
||||
"""
|
||||
|
||||
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -91,13 +91,11 @@ class TestPytestPluginIntegration:
|
||||
|
||||
def test_pytest_markers_registered(self):
|
||||
"""Test that custom markers are registered"""
|
||||
# Get all registered markers
|
||||
markers = {marker.name for marker in pytest.mark.__dict__.values() if hasattr(marker, "name")}
|
||||
|
||||
# Note: This test might need adjustment based on pytest version
|
||||
# The important thing is that our custom markers exist
|
||||
# confidence_check, self_check, reflexion, complexity
|
||||
# These are registered in pytest_plugin.py
|
||||
pass
|
||||
|
||||
|
||||
class TestPytestPluginHooks:
|
||||
|
||||
@@ -4,8 +4,6 @@ Unit tests for CLI install command
|
||||
Tests the command installation functionality.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
from superclaude.cli.install_commands import (
|
||||
install_commands,
|
||||
list_available_commands,
|
||||
@@ -172,7 +170,6 @@ def test_cli_integration():
|
||||
This tests that the CLI main.py can successfully import the functions
|
||||
"""
|
||||
from superclaude.cli.install_commands import (
|
||||
install_commands,
|
||||
list_available_commands,
|
||||
)
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Tests pre-execution confidence assessment functionality.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from superclaude.pm_agent.confidence import ConfidenceChecker
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Tests error learning and prevention functionality.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from superclaude.pm_agent.reflexion import ReflexionPattern
|
||||
|
||||
|
||||
@@ -165,7 +166,7 @@ def test_reflexion_with_real_exception():
|
||||
|
||||
try:
|
||||
# Simulate an operation that fails
|
||||
result = 10 / 0
|
||||
_ = 10 / 0 # noqa: F841
|
||||
except ZeroDivisionError as e:
|
||||
# Record the error
|
||||
error_info = {
|
||||
|
||||
@@ -5,6 +5,7 @@ Tests post-implementation validation functionality.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from superclaude.pm_agent.self_check import SelfCheckProtocol
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Tests token budget allocation and management functionality.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from superclaude.pm_agent.token_budget import TokenBudgetManager
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user