ruff/scripts
Zanie Blue 3c52d2d1bd
Improve the performance of the formatter instability check job (#14471)
We should probably get rid of this entirely and subsume it's
functionality in the normal ecosystem checks? I don't think we're using
the black comparison tests anymore, but maybe someone wants it?

There are a few major parts to this:

1. Making the formatter script idempotent, so it can be run repeatedly
and is robust to changing commits
2. Reducing the overhead of the git operations, minimizing the data
transfer
3. Parallelizing all the git operations by repository

This reduces the setup time from 80s to 16s (locally).

The initial motivation for idempotency was to include the repositories
in the GitHub Actions cache. I'm not sure it's worth it yet — they're
about 1GB and would consume our limited cache space. Regardless, it
improves correctness for local invocations.

The total runtime of the job is reduced from ~4m to ~3m.

I also made some cosmetic changes to the output paths and such.
2024-11-20 08:55:10 -06:00
..
benchmarks Bump version to 0.7.4 (#14358) 2024-11-15 11:17:32 +00:00
fuzz-parser Upgrade locked dependencies for the `fuzz-parser` script (#14156) 2024-11-07 15:10:17 +00:00
knot_benchmark [red-knot] knot benchmark: fix `--knot-path` arg (#13923) 2024-10-25 11:43:39 +02:00
release Update release script to match `uv` (#11496) 2024-07-03 07:35:28 -05:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00:00
_mdformat_utils.py Add a formatting step using `mdformat` as part of `generate_mkdocs.py` (#10484) 2024-03-21 00:37:40 +00:00
_utils.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
add_plugin.py [`pydoclint`] Implement `docstring-missing-exception` and `docstring-extraneous-exception` (`DOC501`, `DOC502`) (#11471) 2024-07-20 19:41:51 +00:00
add_rule.py fixes invalid rule from hyphen (#11484) 2024-05-21 23:39:50 -04:00
check_docs_formatted.py Format `PYI` examples in docs as `.pyi`-file snippets (#13116) 2024-08-28 13:20:40 +01:00
check_ecosystem.py Remove the deprecated `E999` rule code (#14428) 2024-11-20 13:11:51 +01:00
ecosystem_all_check.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +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 Improve the performance of the formatter instability check job (#14471) 2024-11-20 08:55:10 -06:00
generate_builtin_modules.py Add a new script to generate builtin module names (#12696) 2024-08-05 21:33:36 +01:00
generate_known_standard_library.py Add a new script to generate builtin module names (#12696) 2024-08-05 21:33:36 +01:00
generate_mkdocs.py [docs] Add rule short code to mkdocs tags (#14040) 2024-11-01 15:50:12 +00:00
pyproject.toml Update pre-commit dependencies (#13289) 2024-09-09 11:11:01 +00:00
release.sh Update release script to match `uv` (#11496) 2024-07-03 07:35:28 -05:00
transform_readme.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
update_ambiguous_characters.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
update_schemastore.py Use https by default in schema store update script (#11882) 2024-06-14 17:30:54 -05:00