mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-19 10:00:42 +00:00
![]() Re: #17526 ## Summary Add integration test for semantic syntax for `IrrefutableCasePattern`, `SingleStarredAssignment`, `WriteToDebug`, and `InvalidExpression`. ## Notes - Following @ntBre's suggestion, I will keep the test coming in batches like this over the next few days in separate PRs to keep the review load per PR manageable while also not spamming too many. - I did not add a test for `del __debug__` which is one of the examples in `crates/ruff_python_parser/src/semantic_errors.rs:1051`. For python version `<= 3.8` there is no error and for `>=3.9` the error is not `WriteToDebug` but `SyntaxError: cannot delete __debug__ on Python 3.9 (syntax was removed in 3.9)`. - The `blacken-docs` bypass is necessary because otherwise the test does not pass pre-commit checks; but we want to check for this faulty syntax. <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan This is a test. |
||
---|---|---|
.. | ||
attribute_assignment.md | ||
invalid_argument_type.md | ||
no_matching_overload.md | ||
semantic_syntax_errors.md | ||
shadowing.md | ||
union_call.md | ||
unpacking.md | ||
unresolved_import.md | ||
unsupported_bool_conversion.md | ||
version_related_syntax_errors.md |