mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-02 00:27:51 +00:00
![]() ## Summary Add links for ecosystem check result. This is useful for developers to quickly check the added/removed violations with a single click. There are a few downsides of this approach: * Syntax highlighting is not available for the output * Content length is increased because of the additional anchor tags ## Test Plan `python scripts/check_ecosystem.py ./target/debug/ruff ../ruff-test/target/debug/ruff` <details><summary>Example Output:</summary> ℹ️ ecosystem check **detected changes**. (+6, -0, 0 error(s)) <details><summary>airflow (+1, -0)</summary> <p> <pre> + <a href='https://github.com/apache/airflow/blob/main/dev/breeze/src/airflow_breeze/commands/release_management_commands.py#L654'>dev/breeze/src/airflow_breeze/commands/release_management_commands.py:654:25:</a> PERF401 Use a list comprehension to create a transformed list </pre> </p> </details> <details><summary>bokeh (+3, -0)</summary> <p> <pre> + <a href='https://github.com/bokeh/bokeh/blob/branch-3.2/src/bokeh/model/model.py#L315'>src/bokeh/model/model.py:315:17:</a> PERF401 Use a list comprehension to create a transformed list + <a href='https://github.com/bokeh/bokeh/blob/branch-3.2/src/bokeh/resources.py#L470'>src/bokeh/resources.py:470:25:</a> PERF401 Use a list comprehension to create a transformed list + <a href='https://github.com/bokeh/bokeh/blob/branch-3.2/src/bokeh/sphinxext/bokeh_sampledata_xref.py#L134'>src/bokeh/sphinxext/bokeh_sampledata_xref.py:134:17:</a> PERF401 Use a list comprehension to create a transformed list </pre> </p> </details> <details><summary>zulip (+2, -0)</summary> <p> <pre> + <a href='https://github.com/zulip/zulip/blob/main/zerver/actions/create_user.py#L197'>zerver/actions/create_user.py:197:17:</a> PERF401 Use a list comprehension to create a transformed list + <a href='https://github.com/zulip/zulip/blob/main/zerver/lib/markdown/__init__.py#L2412'>zerver/lib/markdown/__init__.py:2412:13:</a> PERF401 Use a list comprehension to create a transformed list </pre> </p> </details> </details> --------- Co-authored-by: konsti <konstin@mailbox.org> |
||
---|---|---|
.. | ||
benchmarks | ||
_utils.py | ||
add_plugin.py | ||
add_rule.py | ||
check_docs_formatted.py | ||
check_ecosystem.py | ||
Dockerfile.ecosystem | ||
ecosystem_all_check.py | ||
ecosystem_all_check.sh | ||
ecosystem_all_check_entrypoint.sh | ||
generate_known_standard_library.py | ||
generate_mkdocs.py | ||
pyproject.toml | ||
transform_readme.py | ||
update_ambiguous_characters.py | ||
update_schemastore.py |