ruff/scripts
Alex Waygood 5dcb1d9e8c
Improvements to the fuzz-parser script (#11071)
## Summary

- Properly fix the race condition identified in
https://github.com/astral-sh/ruff/pull/11039. Instead of running the
version of Ruff we're testing by invoking `cargo run --release` on each
generated source file, we either (1) accept a path to an executable on
the command line or (2) if that's not specified, we run `cargo build
--release` once at the start and then invoke the executable found in
`target/release/ruff` directly.
- Now that the race condition is properly fixed, remove the workaround
for the race condition added in
https://github.com/astral-sh/ruff/pull/11039.
- Also allow users to pass in an executable to compare against for the
`--only-new-bugs` argument (previously it was hardcoded to always
compare against the version of Ruff installed into the Python
environment)
- Use `argparse.RawDescriptionHelpFormatter` as the formatter class
rather than `argparse.RawTextHelpFormatter`. This means that long help
texts for the individual arguments will be wrapped to a sensible width.
- On completion of the script, indicate success or failure of the script
overall by raising `SytemExit` with the appropriate exit code.
- Add myself as a codeowner for the script
2024-04-22 07:46:58 +01:00
..
benchmarks Bump version to 0.4.1 (#11035) 2024-04-19 17:42:02 +05:30
fuzz-parser Improvements to the fuzz-parser script (#11071) 2024-04-22 07:46:58 +01:00
release Add release script (#10305) 2024-03-11 16:26:21 -05: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 Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
add_rule.py [refurb] Implement write-whole-file (FURB103) (#10802) 2024-04-11 14:21:45 +05:30
check_docs_formatted.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
check_ecosystem.py Select fewer ruff rules when linting Python files in scripts/ (#11034) 2024-04-19 12:33:36 +01:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00: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 Fix the ecosystem check (#10155) 2024-02-28 17:42:06 +00:00
generate_known_standard_library.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
generate_mkdocs.py Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00
pyproject.toml Select fewer ruff rules when linting Python files in scripts/ (#11034) 2024-04-19 12:33:36 +01: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 Update pre-commit dependencies (#10698) 2024-04-06 23:00:41 +00:00