Title: Muqeet Shaikh — R23-T012: Review maths/special_numbers/trimorphic_number.py against every Ruff rule · Issue #16 · S-AI-Projects/TheAlgorithms-Python · GitHub
Open Graph Title: Muqeet Shaikh — R23-T012: Review maths/special_numbers/trimorphic_number.py against every Ruff rule · Issue #16 · S-AI-Projects/TheAlgorithms-Python
X Title: Muqeet Shaikh — R23-T012: Review maths/special_numbers/trimorphic_number.py against every Ruff rule · Issue #16 · S-AI-Projects/TheAlgorithms-Python
Description: Student: Muqeet Shaikh Task: R23-T012 · 2 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-Python Assigned working branch: student/e26b07f0731 Goal The repo's Ruff config already passes for this file. Go further: run all ...
Open Graph Description: Student: Muqeet Shaikh Task: R23-T012 · 2 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-Python Assigned working branch: student/e26b07f0731 Goal The repo's Ruff config already pa...
X Description: Student: Muqeet Shaikh Task: R23-T012 · 2 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-Python Assigned working branch: student/e26b07f0731 Goal The repo's Ruff config alread...
Opengraph URL: https://github.com/S-AI-Projects/TheAlgorithms-Python/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Muqeet Shaikh — R23-T012: Review maths/special_numbers/trimorphic_number.py against every Ruff rule","articleBody":"\u003c!-- sai-task-v1:R23-T012 -->\n\n## Student: Muqeet Shaikh\n\n**Task:** R23-T012 · 2 of 10\n**Repository:** https://github.com/S-AI-Projects/TheAlgorithms-Python\n**Assigned working branch:** `student/e26b07f0731`\n\n## Goal\n\nThe repo's Ruff config already passes for this file. Go further: run all of Ruff's rules, decide which findings are worth fixing, and justify the rest. A short file (53 lines) – look especially at docstring and naming rules Ruff flags.\n\n## Steps\n\n1. Run `uvx ruff check maths/special_numbers/trimorphic_number.py` (repo config – should be clean) and `uvx ruff check --select ALL maths/special_numbers/trimorphic_number.py`.\n2. Group the extra findings by rule code and look each up at docs.astral.sh/ruff/rules.\n3. Fix the findings that improve clarity or safety and match CONTRIBUTING.md; list the others with a reason in REVIEW.md.\n4. Run the doctests and the repo-config Ruff check again.\n5. Make the code change in the repository: maths/special_numbers/trimorphic_number.py: fixes for the strict Ruff findings you chose to apply. Re-run the automated check and the repo's own tests afterwards.\n6. Prepare the PR: on branch R23-T012, commit the code change plus your work/R23-T012/ evidence, put your findings in the PR description and open the PR against the org fork. For a later upstream PR, create a second branch containing only the code change (no work/ folder).\n\n## Done when\n\n☐ REVIEW.md lists every rule code from `uvx ruff check --select ALL maths/special_numbers/trimorphic_number.py` with count and fixed/kept + reason.\n☐ At least 3 rule codes are fixed in the file; repo-config `uvx ruff check` still passes.\n☐ is_trimorphic's 10 doctests still pass.\n\n\u003cdetails>\n\u003csummary>Additional task guidance\u003c/summary>\n\n\nAdditional curated task guidance\n\nItem:\n`maths/special_numbers/trimorphic_number.py` (53 lines; 10 doctests)\n\nTask type:\nStrict lint review\n\nCode change (goes into the PR):\nmaths/special_numbers/trimorphic_number.py: fixes for the strict Ruff findings you chose to apply.\n\nAutomated check:\nuvx ruff check maths/special_numbers/trimorphic_number.py && uv run pytest maths/special_numbers/trimorphic_number.py\n\nPrerequisites:\nLinux/WSL2/Codespaces with uv (https://docs.astral.sh/uv/getting-started/installation/); run `uv sync --group=test` once – it installs the Python version CI uses (.python-version = 3.15t) and the test dependencies, about 1–2 GB\n\nUpstream PR rules:\nFollow CONTRIBUTING.md: type hints on every parameter/return, doctests for valid and erroneous input, snake_case file names, no duplicate of an existing implementation, no hand edits to DIRECTORY.md. CI (pytest with doctests, ruff) must pass – bots close PRs without tests or type hints. Keep work/ (benchmarks, notes, property tests) out of the upstream branch; put results in the PR description.\n\nSource (pinned):\nhttps://github.com/TheAlgorithms/Python/blob/574d100b7181956e9c8384552fd078165e4cc326/maths/special_numbers/trimorphic_number.py\n\nChange:\nNo change recorded\n\nPR destination:\nPreserved pilot guidance\n\n\n\u003c/details>\n\n## Submission checklist\n\n- [ ] Complete this task and its checks.\n- [ ] Add the required evidence and link your pull request here.\n- [ ] Select this **S-AI-Projects fork** as the PR base repository.\n- [ ] Request instructor review.\n\nKeep this PR focused on this task. Do not submit assignment PRs to the upstream repository.","author":{"url":"https://github.com/ankushbisht01","@type":"Person","name":"ankushbisht01"},"datePublished":"2026-11-03T18:39:50Z","url":"https://github.com/S-AI-Projects/TheAlgorithms-Python/issues/16"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2876482a-c046-6020-5b88-96bba828c6e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B95C:70723:4B6025:6D09DD:6AFDCED0 |
| html-safe-nonce | 1a6d740105fdabacd9883a2b19bcff6298f1e0bb1c88cca6c50af1abdba4bd2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTVDOjcwNzIzOjRCNjAyNTo2RDA5REQ6NkFGRENFRDAiLCJ2aXNpdG9yX2lkIjoiNDI1NDc3OTE4NTcyNzEzMTM0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 422f9e497d88c051a270c303695a3f2f32ccbcbfb67761a3b986ca0d2080373a |
| hovercard-subject-tag | issue:6188922649 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/S-AI-Projects/TheAlgorithms-Python/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/468fcd0303b29c37ca838a319fe97a22c55cb18192826de47e97a124e68ab962/S-AI-Projects/TheAlgorithms-Python/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/468fcd0303b29c37ca838a319fe97a22c55cb18192826de47e97a124e68ab962/S-AI-Projects/TheAlgorithms-Python/issues/16 |
| og:image:alt | Student: Muqeet Shaikh Task: R23-T012 · 2 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-Python Assigned working branch: student/e26b07f0731 Goal The repo's Ruff config already pa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ankushbisht01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 |
| turbo-cache-control | no-preview |
| go-import | github.com/S-AI-Projects/TheAlgorithms-Python git https://github.com/S-AI-Projects/TheAlgorithms-Python.git |
| octolytics-dimension-user_id | 351892385 |
| octolytics-dimension-user_login | S-AI-Projects |
| octolytics-dimension-repository_id | 1444141022 |
| octolytics-dimension-repository_nwo | S-AI-Projects/TheAlgorithms-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 63476337 |
| octolytics-dimension-repository_parent_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width