fix: release-check lint fixes for 1.1.0 publish
Some checks failed
ci / test (3.10) (push) Has been cancelled
ci / test (3.12) (push) Has been cancelled

Wrap long lines for flake8, rename extensions remove command handler
to avoid Click shadowing, and drop unused migration imports.
This commit is contained in:
2026-06-16 02:14:07 +02:00
parent 22ee93e125
commit 68555ec2f1
3 changed files with 21 additions and 9 deletions

View File

@@ -135,8 +135,14 @@ def safe_cli_wrapper():
_FEEDBACK_CHANNELS = {
"issues": "https://gitea.coulomb.social/coulomb/kaizen-agentic/issues",
"issue_templates": "https://gitea.coulomb.social/coulomb/kaizen-agentic/issues/new/choose",
"feedback_guide": "https://gitea.coulomb.social/coulomb/kaizen-agentic/src/branch/main/docs/FEEDBACK.md",
"contributing": "https://gitea.coulomb.social/coulomb/kaizen-agentic/src/branch/main/CONTRIBUTING.md",
"feedback_guide": (
"https://gitea.coulomb.social/coulomb/kaizen-agentic/"
"src/branch/main/docs/FEEDBACK.md"
),
"contributing": (
"https://gitea.coulomb.social/coulomb/kaizen-agentic/"
"src/branch/main/CONTRIBUTING.md"
),
}
@@ -154,7 +160,10 @@ def feedback(as_json: bool):
payload = {
"channels": _FEEDBACK_CHANNELS,
"templates": ["bug_report", "feature_request", "feedback"],
"cli_hint": "Use Gitea issue templates or State Hub messages for cross-repo coordination",
"cli_hint": (
"Use Gitea issue templates or State Hub messages "
"for cross-repo coordination"
),
}
if as_json:
click.echo(json.dumps(payload, indent=2, sort_keys=True))
@@ -794,11 +803,11 @@ def disable(name: str, target: str):
click.echo(f"❌ Extension not found: {name}")
@extensions.command()
@extensions.command("remove")
@click.argument("name")
@click.option("--target", "-t", default=".", help="Target directory (default: current)")
@click.confirmation_option(prompt="Are you sure you want to remove this extension?")
def remove(name: str, target: str):
def remove_extension(name: str, target: str):
"""Remove an extension."""
from .extensions import ExtensionManager
@@ -1173,7 +1182,8 @@ def metrics_optimize(agent_name: Optional[str], target: str, min_samples: int):
)
else:
click.echo(
f" Note: {len(records)} record(s) — need {min_samples} for actionable recommendations"
f" Note: {len(records)} record(s) — "
f"need {min_samples} for actionable recommendations"
)
click.echo()