ruff/crates/ruff_python_formatter/src/other
konstin d7c7484618
Format function argument separator comments (#5211)
## Summary

This is a complete rewrite of the handling of `/` and `*` comment
handling in function signatures. The key problem is that slash and star
don't have a note. We now parse out the positions of slash and star and
their respective preceding and following note. I've left code comments
for each possible case of function signature structure and comment
placement

## Test Plan

I extended the function statement fixtures with cases that i found. If
you have more weird edge cases your input would be appreciated.
2023-06-21 17:56:47 +00:00
..
alias.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
arg.rs Format Identifier (#5255) 2023-06-21 17:35:37 +02:00
arg_with_default.rs Fix ArgWithDefault comments handling (#5204) 2023-06-20 20:48:07 +00:00
arguments.rs Format function argument separator comments (#5211) 2023-06-21 17:56:47 +00:00
comprehension.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
decorator.rs Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
except_handler_except_handler.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
identifier.rs Format Identifier (#5255) 2023-06-21 17:35:37 +02:00
keyword.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
match_case.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
mod.rs Format Identifier (#5255) 2023-06-21 17:35:37 +02:00
type_ignore_type_ignore.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
with_item.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00