Skip to content

fix(curriculum): add actionable classes assertion messages (batch 2) - #161

Merged
abhiksark merged 7 commits into
abhiksark:devfrom
boat-kofi:fix/classes-assertion-messages-batch2
Nov 4, 2026
Merged

abhiksark merged 7 commits into
abhiksark:devfrom
boat-kofi:fix/classes-assertion-messages-batch2

Conversation

@boat-kofi

@boat-kofi boat-kofi commented Oct 13, 2026 •

Copy link
Copy Markdown

Summary

Add actionable messages to all eight previously bare assertions across checks/classes/classes7.py through classes12.py, completing #85. Assertion predicates, evaluation order, helper statements, and success output are unchanged.

The maintainer follow-up adds repository-relative file comments and wraps long lines to the 80-column limit. Full AST comparison confirms that follow-up preserves the existing failure messages and execution behavior.

Closes #85.

Tests

Validated head: eaf325e922e84ce333e8d8257ab104859aea0190 on Linux, Python 3.13.13.

  • python -m pytest -q: 215 passed.
  • python -m pythonlings --root tests/fixtures/passing_curriculum verify: passing1 and passing2 passed.
  • AST audit of all six changed checks: zero bare assertions; predicates, order, helper statements, and success output unchanged.
  • All six affected reference solutions passed; a representative incorrect answer for each was rejected.
  • Python 3.9 syntax parsing passed for the six changed files; runtime compatibility is covered by hosted CI.
  • PIP_CONFIG_FILE=/dev/null PIP_INDEX_URL=https://pypi.org/simple PIP_EXTRA_INDEX_URL= PIP_DEFAULT_TIMEOUT=15 PIP_RETRIES=0 python -m build --outdir /tmp/pythonlings-pr-loop.dfKE0X/pr-161-dist: source and wheel distributions built.
  • /tmp/pythonlings-pr-loop.dfKE0X/wheel-venv/bin/python -m pip install --no-deps --force-reinstall /tmp/pythonlings-pr-loop.dfKE0X/pr-161-dist/pythonlings-0.4.4-py3-none-any.whl: installed successfully into a temporary environment.
  • Installed-wheel smoke outside the checkout: workspace initialization and all six affected reference solutions passed.
  • git diff --check: passed.

Hosted CI must pass at this head before squash merge into dev.

Checklist

  • Targeted dev from a fix/ branch
  • Preserved curriculum predicates, side effects, names, and order
  • Recorded local validation and packaging checks
  • Hosted CI passed at the current head

Integration validation: applied this PR to dev at c93566e29034eea75a51f91ab90c98fd6e1b43d6 and ran python -m pytest -q: 238 passed. All eight hosted CI jobs passed at the reviewed head.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98c2a6b3-f402-4ef6-802f-b562b1f48a0f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Add repository-relative file comments and wrap long assertions without
changing predicates, evaluation order, or failure messages. Refs abhiksark#85.
@abhiksark abhiksark changed the title Fix/classes assertion messages batch2 fix(curriculum): add actionable classes assertion messages (batch 2) Nov 4, 2026

@abhiksark abhiksark left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed all six checks against #85 and the contributor rules. All eight previously bare assertions now have useful messages; predicates, execution order, side effects, and success output are preserved. Local branch tests (215), current-dev integration tests (238), fixture verification, build, installed-wheel smoke, and all eight hosted CI jobs passed.

@abhiksark
abhiksark merged commit e53b4c0 into abhiksark:dev Nov 4, 2026
9 checks passed
@boat-kofi

Copy link
Copy Markdown
Author

thanks for the review.

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.

4 participants