Skip to content

Commit 5f2dd68

Browse files
mnriemCopilot
authored andcommitted
Add pytest and Python linting (ruff) to CI (github#1637)
* feat: add GitHub Actions workflow for testing and linting Python code * fix: resolve ruff lint errors in specify_cli - Remove extraneous f-string prefixes (F541) - Split multi-statement lines (E701, E702) - Remove unused variable assignments (F841) - Remove ruff format check from CI workflow (format-only PR to follow) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: strip ANSI codes in ai-skills help text test The Rich/Typer CLI injects ANSI escape codes into option names in --help output, causing plain string matching to fail. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 24d76b5)
1 parent a5d9cd7 commit 5f2dd68

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_ai_skills.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- CLI validation: --ai-skills requires --ai
1111
"""
1212

13+
import re
1314
import pytest
1415
import tempfile
1516
import shutil
@@ -626,5 +627,6 @@ def test_ai_skills_flag_appears_in_help(self):
626627
runner = CliRunner()
627628
result = runner.invoke(app, ["init", "--help"])
628629

629-
assert "--ai-skills" in result.output
630-
assert "agent skills" in result.output.lower()
630+
plain = re.sub(r'\x1b\[[0-9;]*m', '', result.output)
631+
assert "--ai-skills" in plain
632+
assert "agent skills" in plain.lower()

0 commit comments

Comments
 (0)