ruff/docs
konsti 317d3dd612
Add test and basic implementation for formatter preview mode (#8044)
**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 |
2023-10-26 15:33:26 +00:00
..
.overrides/partials/integrations/analytics Move some MkDocs responsibilities around (#5542) 2023-07-05 22:06:01 +00:00
assets Update docs to match updated logo and color palette (#5283) 2023-06-22 11:19:34 -04:00
formatter Avoid introducing new parentheses in annotated assignments (#8233) 2023-10-25 22:51:50 -04:00
stylesheets Render full-width tables in rules reference (#5636) 2023-07-10 02:39:07 +00:00
.gitignore Fix gitignore to not ignore files that are required (#7538) 2023-09-21 21:33:09 +02:00
configuration.md Document: Fix default lint rules (#8218) 2023-10-25 09:42:05 -05:00
faq.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
formatter.md Fix skipping formatting examples (#8210) 2023-10-25 11:57:30 +01:00
installation.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
integrations.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
linter.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
preview.md Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
requirements-insiders.txt Add test and basic implementation for formatter preview mode (#8044) 2023-10-26 15:33:26 +00:00
requirements.txt Add test and basic implementation for formatter preview mode (#8044) 2023-10-26 15:33:26 +00:00
tutorial.md Fix misspelled TOML headers in the tutorial (#8209) 2023-10-25 12:52:42 +02:00
versioning.md Add note about scope of rule changing in versioning policy (#8169) 2023-10-24 11:38:31 -05:00