{"id":30141800,"url":"https://github.com/vuillaut/test_copilot","last_synced_at":"2025-08-25T22:13:02.006Z","repository":{"id":304190504,"uuid":"1018046994","full_name":"vuillaut/test_copilot","owner":"vuillaut","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-11T14:35:55.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T16:43:29.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vuillaut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-11T14:13:48.000Z","updated_at":"2025-07-11T14:31:59.000Z","dependencies_parsed_at":"2025-07-11T16:43:33.206Z","dependency_job_id":"fc4d68ff-22e4-432e-9939-c09c6635b2e2","html_url":"https://github.com/vuillaut/test_copilot","commit_stats":null,"previous_names":["vuillaut/test_copilot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vuillaut/test_copilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuillaut%2Ftest_copilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuillaut%2Ftest_copilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuillaut%2Ftest_copilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuillaut%2Ftest_copilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vuillaut","download_url":"https://codeload.github.com/vuillaut/test_copilot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuillaut%2Ftest_copilot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269833310,"owners_count":24482423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-11T05:18:48.042Z","updated_at":"2025-08-11T05:18:49.083Z","avatar_url":"https://github.com/vuillaut.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Copilot\n\nA simple Python calculator project to test GitHub Copilot's online capabilities and PR review features.\n\n## Project Structure\n\n- `calculator.py` - Main calculator module with basic arithmetic operations\n- `test_calculator.py` - Unit tests for the calculator\n- `requirements.txt` - Python dependencies\n- `.github/copilot-instructions.md` - GitHub Copilot instructions for PR reviews\n\n## Usage\n\n```python\nfrom calculator import Calculator\n\ncalc = Calculator()\nresult = calc.add(2, 3)  # Returns 5\n```\n\n## Setup\n\n1. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n2. Run the calculator demo:\n```bash\npython calculator.py\n```\n\n## Running Tests\n\nRun all tests:\n```bash\npython -m pytest test_calculator.py -v\n```\n\nRun tests with coverage:\n```bash\npython -m pytest test_calculator.py -v --cov=calculator --cov-report=term-missing\n```\n\n## Testing GitHub Copilot PR Reviews\n\nThis repository is specifically designed to test GitHub Copilot's PR review capabilities. Here are some scenarios to try:\n\n### 🔍 **Test Scenarios for PR Reviews**\n\n1. **Missing Type Hints**: Create a PR that adds new functions without type hints\n2. **Missing Tests**: Add new functionality without corresponding unit tests\n3. **Poor Documentation**: Add methods without proper docstrings\n4. **Error Handling**: Introduce functions that don't handle edge cases\n5. **Style Issues**: Submit code that doesn't follow PEP 8 guidelines\n\n### 📋 **What Copilot Should Catch**\n\nBased on the instructions in `.github/copilot-instructions.md`, Copilot should:\n- Request type hints for function parameters and return types\n- Ask for comprehensive docstrings with Args/Returns/Raises sections\n- Flag missing error handling (especially division by zero)\n- Suggest additional test cases for edge conditions\n- Point out PEP 8 style violations\n- Recommend security best practices\n\n### 🚀 **Quick Test Ideas**\n\nTry adding these features in separate PRs to test Copilot:\n- Modulo operation (`%`)\n- Factorial function\n- Logarithm operations\n- Trigonometric functions\n- Memory functions (store/recall)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines on how to contribute to this project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuillaut%2Ftest_copilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvuillaut%2Ftest_copilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuillaut%2Ftest_copilot/lists"}