Skip to content

chore(audit): full project health check remediation — gitignore, CI, tests, lint, docs - #7

Open
wjl110 with Copilot wants to merge 2 commits into
mainfrom
copilot/audit-project-health-check
Open

chore(audit): full project health check remediation — gitignore, CI, tests, lint, docs#7
wjl110 with Copilot wants to merge 2 commits into
mainfrom
copilot/audit-project-health-check

Conversation

Copilot AI commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

The root .gitignore contained a commit message string instead of actual ignore patterns, leaving .env files, __pycache__, and build artifacts unprotected. No CI, tests, or linter config existed.

Changes

Security / Structure

  • .gitignore (root) — replaced commit-message text with real Python ignore patterns (.env*, __pycache__/, *.pyc, .venv/, .DS_Store, etc.)
  • Proj/.gitignore — expanded from only .env to full Python coverage
  • Removed committed Proj/__pycache__/*.pyc from tracking

Documentation

  • README.md — corrected two factual errors: SDK listed as "DashScope SDK" (actual: openai + DashScope compatible-mode URL); Aliyun.py described as "多轮对话…流式输出" (actual: single-turn, no streaming)

Code Quality

  • Proj/pyproject.toml — new file; configures ruff (rules E/F/W/I, line-length 100) and pytest test path
  • Aliyun.py / app_gradio.py — auto-fixed import order, trailing whitespace, missing final newline

Testing

  • Proj/tests/test_app_gradio.py — 6 unit tests covering _history_to_messages() (empty, dict, list, None-entry inputs) and chat()/clear_chat() behavior; no real API calls (dummy key via os.environ.setdefault)

CI

  • .github/workflows/ci.yml — lint (ruff check) + test (pytest) matrix on Python 3.9 / 3.11 / 3.12, triggered on changes to Proj/**; scoped to permissions: contents: read

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.gradio.app
    • Triggering command: /usr/bin/python python -m pytest tests/ -v (dns block)
  • huggingface.co
    • Triggering command: /usr/bin/python python -m pytest tests/ -v (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI changed the title [WIP] Chore: Full project health check and remediation tracking chore(audit): full project health check remediation — gitignore, CI, tests, lint, docs Apr 7, 2026
Copilot AI requested a review from wjl110 April 7, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants