mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
![]() **Summary** Prepare for the black preview style becoming the black stable style at the end of the year. This adds a new test file to compare stable and preview on some relevant preview options in black, and makes `format_dev` understand the black preview flag. I've added poetry as a project that uses preview. I've implemented one specific deviation (collapsing of stub implementation in non-stub files) which showed up in poetry for testing. This also improves poetry compatibility from 0.99891 to 0.99919. Fixes #7440 New compatibility stats: | project | similarity index | total files | changed files | |----------------|------------------:|------------------:|------------------:| | cpython | 0.75803 | 1799 | 1647 | | django | 0.99983 | 2772 | 35 | | home-assistant | 0.99953 | 10596 | 189 | | poetry | 0.99919 | 317 | 12 | | transformers | 0.99963 | 2657 | 332 | | twine | 1.00000 | 33 | 0 | | typeshed | 0.99978 | 3669 | 20 | | warehouse | 0.99969 | 654 | 15 | | zulip | 0.99970 | 1459 | 22 | |
||
---|---|---|
.. | ||
carriage_return | ||
expression | ||
fmt_on_off | ||
fmt_skip | ||
parentheses | ||
statement | ||
stub_files | ||
.editorconfig | ||
docstring.options.json | ||
docstring.py | ||
empty_multiple_trailing_newlines.py | ||
empty_now_newline.py | ||
empty_trailing_newline.py | ||
empty_whitespace.py | ||
form_feed.py | ||
module_dangling_comment1.py | ||
module_dangling_comment2.py | ||
newlines.py | ||
newlines.pyi | ||
preview.options.json | ||
preview.py | ||
skip_magic_trailing_comma.options.json | ||
skip_magic_trailing_comma.py | ||
tab_width.options.json | ||
tab_width.py | ||
trailing_comments.py | ||
trivia.py |