Skip to content

Conversation

@Lokejoke
Copy link
Owner

@Lokejoke Lokejoke commented Nov 17, 2024

Summary

This PR implements assignment-to-subscrip-slice rule.

Test Plan

cargo test

@github-actions
Copy link

github-actions bot commented Nov 17, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+29 -0 violations, +0 -0 fixes in 3 projects; 51 projects unchanged)

apache/airflow (+17 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

+ airflow/cli/commands/celery_command.py:128:9: WPS362 Assignment to a subscript slice found
+ airflow/cli/commands/task_command.py:766:13: WPS362 Assignment to a subscript slice found
+ airflow/cli/commands/task_command.py:784:9: WPS362 Assignment to a subscript slice found
+ airflow/migrations/env.py:111:17: WPS362 Assignment to a subscript slice found
+ airflow/providers_manager.py:693:21: WPS362 Assignment to a subscript slice found
+ airflow/utils/file.py:202:9: WPS362 Assignment to a subscript slice found
+ docs/exts/removemarktransform.py:50:17: WPS362 Assignment to a subscript slice found
+ providers/src/airflow/providers/celery/cli/celery_command.py:144:9: WPS362 Assignment to a subscript slice found
+ providers/src/airflow/providers/fab/migrations/env.py:98:17: WPS362 Assignment to a subscript slice found
+ scripts/ci/pre_commit/check_init_in_tests.py:45:9: WPS362 Assignment to a subscript slice found
+ scripts/ci/pre_commit/check_providers_subpackages_all_have_init.py:34:13: WPS362 Assignment to a subscript slice found
+ scripts/ci/pre_commit/sort_tags_in_openapi_spec.py:58:5: WPS362 Assignment to a subscript slice found
+ tests/cli/commands/test_task_command.py:1055:9: WPS362 Assignment to a subscript slice found
+ tests/cli/commands/test_task_command.py:1056:9: WPS362 Assignment to a subscript slice found
+ tests/cli/commands/test_task_command.py:725:9: WPS362 Assignment to a subscript slice found
+ tests/cli/commands/test_task_command.py:726:9: WPS362 Assignment to a subscript slice found
+ tests/io/test_path.py:170:13: WPS362 Assignment to a subscript slice found

apache/superset (+5 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

+ superset/migrations/env.py:107:17: WPS362 Assignment to a subscript slice found
+ superset/sql_parse.py:798:13: WPS362 Assignment to a subscript slice found
+ superset/sql_parse.py:827:13: WPS362 Assignment to a subscript slice found
+ superset/sql_parse.py:843:13: WPS362 Assignment to a subscript slice found
+ superset/sql_parse.py:854:13: WPS362 Assignment to a subscript slice found

bokeh/bokeh (+7 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

+ examples/server/app/ohlc/main.py:60:5: WPS362 Assignment to a subscript slice found
+ examples/server/app/patch_app.py:18:1: WPS362 Assignment to a subscript slice found
+ examples/server/app/spectrogram/main.py:108:9: WPS362 Assignment to a subscript slice found
+ src/bokeh/plotting/contour.py:383:9: WPS362 Assignment to a subscript slice found
+ src/bokeh/plotting/contour.py:384:9: WPS362 Assignment to a subscript slice found
+ tests/unit/bokeh/core/property/test_wrappers__property.py:471:5: WPS362 Assignment to a subscript slice found
+ tests/unit/bokeh/test_objects.py:423:13: WPS362 Assignment to a subscript slice found

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
WPS362 29 29 0 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants