Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
pytest tests/ -q

- name: Ruff lint
- name: Ruff lint (includes F401 unused-import)
run: |
ruff check agent_go/ --select=E,F,W --ignore=E501

Expand Down
6 changes: 3 additions & 3 deletions agent_go/api.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import hashlib
import json, re, time, logging
from pathlib import Path
from datetime import datetime
from typing import Any, Optional

logger = logging.getLogger(__name__)

from .config import get_api_key, log_event, DECOMPOSE_RULES, AGENT_GO_DIR
from .git_utils import analyze_project, get_git_info, get_resource_map
from .skills import list_skills
from .role_skill_map import load_role_skill_map
import hashlib

logger = logging.getLogger(__name__)

__all__ = [
"call_api", "generate_plan", "decompose_fallback",
Expand Down
3 changes: 2 additions & 1 deletion agent_go/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from datetime import datetime
from typing import Any, Optional

logger = logging.getLogger(__name__)

from .config import load_config, safe_input, setup_logger, AGENT_GO_DIR
from .api import generate_plan, decompose_fallback
Expand All @@ -16,6 +15,8 @@
from .tui import cmd_status_tui
from .workflow_gen import cmd_ci

logger = logging.getLogger(__name__)

__all__ = [
"main", "cmd_run", "cmd_resume", "cmd_list", "cmd_show",
"cmd_status", "cmd_config", "cmd_clean", "cmd_pr", "cmd_review",
Expand Down
3 changes: 2 additions & 1 deletion agent_go/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
from pathlib import Path
from typing import Any, Optional

logger = logging.getLogger(__name__)

from .executor import run_subtask
from .git_utils import _set_gc_auto, _worktree_remove, _worktree_prune

logger = logging.getLogger(__name__)

__all__: list[str] = []

def _run_pipeline(confirmed: list[dict[str, Any]], repo: Path, task_dir: Path, logger: logging.Logger, config: dict[str, Any], headless: bool, parallel: int, issue_ref: str, meta: dict[str, Any],
Expand Down
3 changes: 2 additions & 1 deletion agent_go/role_skill_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from fnmatch import fnmatch
from typing import Any, Optional

logger = logging.getLogger(__name__)

from .config import AGENT_GO_DIR

logger = logging.getLogger(__name__)

__all__ = ["load_role_skill_map", "apply_rules"]

DEFAULT_MAP = {
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ target-version = "py39"
line-length = 120

[tool.ruff.lint]
# E: pycodestyle F: Pyflakes (含 F401 unused-import) W: pycodestyle warnings
select = ["E", "F", "W"]
ignore = ["E501"]
ignore = ["E501"] # 行长度由 formatter 管理

[tool.mypy]
python_version = "3.9"
Expand Down
Loading