Repository navigation
R23-T028: Strict Ruff audit, code fixes, and review documentation - #119
Open
mohammedsohail0301-dot wants to merge 1 commit into
Open
mohammedsohail0301-dot wants to merge 1 commit into
mohammedsohail0301-dot wants to merge 1 commit into
Conversation
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.
Summary of Changes
Task R23-T028: Strict Ruff audit, code fixes, and review documentation
This pull request completes Task R23-T028 (8 of 10) on
conversions/pressure_conversions.py.1. Goal and Decisions
conversions/pressure_conversions.pyunder Ruff's strictest rule set (--select ALL).D101(missing-docstring-public-class): Added clear docstring toclass FromTo(NamedTuple).D205(missing-blank-line-after-summary): Added blank line between docstring summary and body.D212(multi-line-summary-first-line): Aligned multi-line docstring summaries to the opening line.D400(ends-in-period): Ensured summary sentences end with proper period punctuation.D415(ends-in-punctuation): Ensured docstring summary punctuation compliance.COM812(missing-trailing-comma): Added trailing commas to multi-lineValueErrorraise calls.work/R23-T028/REVIEW.md:CPY001(Missing copyright notice): Kept as TheAlgorithms-Python does not use per-file copyright headers.E501(Line too long / URLs): Kept reference URLs intact for documentation utility.PLR2004(Magic numbers): Kept numeric literals inPRESSURE_CONVERSIONas physical constants.pep8-naming(inHg): Kept scientific meteorological unit abbreviation intact.2. Verification & Test Evidence
uvx ruff check conversions/pressure_conversions.pypasses (0 errors).uvx ruff format --check conversions/pressure_conversions.pypasses.9 passed. Test passed.).uv run --with pytest pytest --doctest-modules conversions/pressure_conversions.pypasses (1 passed in 0.02s).3. Submission Checklist
work/R23-T028/REVIEW.md.conversions/pressure_conversions.py(6 fixed).student/E26B07F0850/R23-T028-upstreamprepared with only code changes.