Skip to content

Conversation

ivanharvard
Copy link

Previously, the only way to enable/disable assertion rewriting was by including this line at the top of your file:

# ENABLE_CHECK50_ASSERT = 1

However, if the user now wishes to enable it without including this flag, they can simply run:

check50 . --assertion-rewrite

Otherwise, if they wish to override the assertion rewriting (even if ENABLE_CHECK50_ASSERT has been set to 1 or True), they can run:

check50 . --assertion-rewrite disabled

If both the argument passed in the command line and the comment left in the check file are conflicting, the presence of the flag takes precedence.

@rongxin-liu
Copy link
Contributor

Looks good!

@rongxin-liu rongxin-liu merged commit 8433c1d into 4.0.0-dev Aug 6, 2025
1 check passed
@rongxin-liu rongxin-liu deleted the feat/rewrite-assert-flag branch August 6, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants