ruff/scripts
konstin 38297c08b4
Make ecosystem all check more generic (#4629)
* Don't assume unique repo names in ecosystem checks

This fixes a bug where previously repositories with the same name would have been overwritten.

I tested with `scripts/check_ecosystem.py -v --checkouts target/checkouts_main .venv/bin/ruff target/release/ruff` and ruff 0.0.267 that changes are shown. I confirmed with `scripts/ecosystem_all_check.sh check --select RUF008` (next PR) that the checkouts are now complete.

* Make ecosystem all check more generic

This allows passing arguments to the ecosystem all check script, e.g. you can now do `scripts/ecosystem_all_check.sh check --select RUF008`.

Tested with
```
$ cat target/ecosystem_all_results/*.stdout.txt | head
src/fi_parliament_tools/parsing/data_structures.py:33:17: RUF008 Do not use mutable default values for dataclass attributes
src/fi_parliament_tools/parsing/data_structures.py:76:17: RUF008 Do not use mutable default values for dataclass attributes
src/fi_parliament_tools/parsing/data_structures.py:178:17: RUF008 Do not use mutable default values for dataclass attributes
Found 3 errors.
braid_triggers/tasks.py:46:17: RUF008 Do not use mutable default values for dataclass attributes
Found 1 error.
src/boards/RaspberryPi3.py:15:22: RUF008 Do not use mutable default values for dataclass attributes
src/boards/board.py:21:26: RUF008 Do not use mutable default values for dataclass attributes
src/boards/board.py:22:32: RUF008 Do not use mutable default values for dataclass attributes
src/boards/board.py:23:37: RUF008 Do not use mutable default values for dataclass attributes
$ cat target/ecosystem_all_results/*.stdout.txt | wc -l
115
```
2023-05-24 16:26:23 +02:00
..
benchmarks Use --filter=blob:none to clone CPython faster (#4156) 2023-04-30 13:39:22 +02:00
_utils.py Improve add_rule.py and add_plugin.py scripts (#3725) 2023-03-25 16:05:39 +00:00
add_plugin.py Pretty print Diagnostics in snapshot tests (#3906) 2023-04-11 09:03:00 +00:00
add_rule.py Make the AST Checker pub(crate) (#4498) 2023-05-18 15:17:26 +00:00
check_docs_formatted.py Enable pycodestyle rules (#3689) 2023-05-16 20:39:43 +00:00
check_ecosystem.py Don't assume unique repo names in ecosystem checks (#4628) 2023-05-24 16:26:12 +02:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00:00
ecosystem_all_check.py Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
ecosystem_all_check.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
ecosystem_all_check_entrypoint.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
generate_known_standard_library.py Add script for ecosystem wide checks of all rules and fixes (#4326) 2023-05-22 15:23:25 +02:00
generate_mkdocs.py Doc/CLN: pass pre-commit (#3604) 2023-03-19 19:20:11 +00:00
pyproject.toml Add script for ecosystem wide checks of all rules and fixes (#4326) 2023-05-22 15:23:25 +02:00
transform_readme.py Fix hardcoded url in transform_readme.py (#2487) 2023-02-02 13:59:22 -05:00
update_ambiguous_characters.py Add script for ecosystem wide checks of all rules and fixes (#4326) 2023-05-22 15:23:25 +02:00
update_schemastore.py Add a script to update the schemastore (#4574) 2023-05-23 10:41:56 +00:00