mirror of
https://github.com/github/spec-kit.git
synced 2026-07-03 12:28:06 +08:00
Clear pre-existing lint debt flagged by repo-wide `ruff check` (the lint config only scopes src/, so tests/ had drifted). No behavior change. - F401/F541: drop unused imports and redundant f-string prefixes (autofix) - E741: rename ambiguous `l` to `ln` in comprehensions - E702: split semicolon-joined statements onto separate lines - F841: drop unused bindings while keeping the side-effecting calls (_minimal_feature, install_from_directory) Full suite: 3344 passed, 40 skipped. ruff check (repo-wide): clean.
21 lines
666 B
Python
21 lines
666 B
Python
"""Regression guard: utility and asset symbols importable from specify_cli."""
|
|
from specify_cli import (
|
|
check_tool, is_git_repo, merge_json_files,
|
|
get_speckit_version,
|
|
CLAUDE_LOCAL_PATH, CLAUDE_NPM_LOCAL_PATH,
|
|
)
|
|
from pathlib import Path
|
|
|
|
def test_utils_symbols_importable():
|
|
assert callable(check_tool)
|
|
assert callable(merge_json_files)
|
|
assert callable(is_git_repo)
|
|
|
|
def test_get_speckit_version_returns_string():
|
|
version = get_speckit_version()
|
|
assert isinstance(version, str) and len(version) > 0
|
|
|
|
def test_claude_paths_are_paths():
|
|
assert isinstance(CLAUDE_LOCAL_PATH, Path)
|
|
assert isinstance(CLAUDE_NPM_LOCAL_PATH, Path)
|