ruff/scripts
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
..
benchmarks Release 0.1.2 (#8168) 2023-10-24 15:21:29 +00:00
_utils.py Use __future__ imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
add_plugin.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
add_rule.py Rename RuleGroup::Unspecified to Stable (#7991) 2023-10-16 14:53:27 -05:00
check_docs_formatted.py [pylint] Implement PLR0916 (too-many-boolean-expressions) (#7975) 2023-10-17 04:44:25 +00:00
check_ecosystem.py Add comment to ecoystem check re. ALL rules (#6943) 2023-08-28 11:28:36 -05:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00:00
ecosystem_all_check.py Rename Autofix to Fix (#7657) 2023-09-28 10:53:05 +00:00
ecosystem_all_check.sh Rename Autofix to Fix (#7657) 2023-09-28 10:53:05 +00:00
ecosystem_all_check_entrypoint.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
formatter_ecosystem_checks.sh Add test and basic implementation for formatter preview mode (#8044) 2023-10-26 15:33:26 +00:00
generate_known_standard_library.py Remove HashMap and HashSet for known-standard-library detection (#5345) 2023-06-23 19:59:03 +00:00
generate_mkdocs.py Fix dead link in README (#8146) 2023-10-23 15:56:28 +00:00
pyproject.toml Check for Any in other types for ANN401 (#5601) 2023-07-13 18:19:27 +05:30
transform_readme.py Use __future__ imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
update_ambiguous_characters.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
update_schemastore.py Use SSH clones in update_schemastore.py (#5322) 2023-06-23 09:50:10 -04:00