Open
chore(audit): full project health check remediation — gitignore, CI, tests, lint, docs#7
Conversation
There was a problem hiding this comment.
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.
Agent-Logs-Url: https://github.com/wjl110/Review/sessions/e8c7cff9-8324-42a6-b088-2181c96feb35 Co-authored-by: wjl110 <53851034+wjl110@users.noreply.github.com>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The root
.gitignorecontained a commit message string instead of actual ignore patterns, leaving.envfiles,__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.envto full Python coverageProj/__pycache__/*.pycfrom trackingDocumentation
README.md— corrected two factual errors: SDK listed as "DashScope SDK" (actual:openai+ DashScope compatible-mode URL);Aliyun.pydescribed as "多轮对话…流式输出" (actual: single-turn, no streaming)Code Quality
Proj/pyproject.toml— new file; configuresruff(rulesE/F/W/I, line-length 100) andpytesttest pathAliyun.py/app_gradio.py— auto-fixed import order, trailing whitespace, missing final newlineTesting
Proj/tests/test_app_gradio.py— 6 unit tests covering_history_to_messages()(empty, dict, list, None-entry inputs) andchat()/clear_chat()behavior; no real API calls (dummy key viaos.environ.setdefault)CI
.github/workflows/ci.yml— lint (ruff check) + test (pytest) matrix on Python 3.9 / 3.11 / 3.12, triggered on changes toProj/**; scoped topermissions: contents: readWarning
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/usr/bin/python python -m pytest tests/ -v(dns block)huggingface.co/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: