Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wps-light] Implement wrong-class-body-content (WPS604) #16

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Lokejoke
Copy link
Owner

Summary

This PR implement wrong-class-body-content rule;

Test Plan

cargo test

@Lokejoke Lokejoke changed the title [wps-light] Implement wrong-class-body-content (WPS603) [wps-light] Implement wrong-class-body-content (WPS604) Nov 19, 2024
Copy link

github-actions bot commented Nov 19, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+221 -0 violations, +0 -0 fixes in 4 projects; 50 projects unchanged)

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

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

+ airflow/cli/commands/info_command.py:66:5: WPS604 Wrong statement inside class definition
+ airflow/cli/utils.py:31:5: WPS604 Wrong statement inside class definition
+ airflow/models/baseoperator.py:644:5: WPS604 Wrong statement inside class definition
+ airflow/models/dagrun.py:172:5: WPS604 Wrong statement inside class definition
+ airflow/serialization/serialized_objects.py:1611:5: WPS604 Wrong statement inside class definition
+ airflow/utils/context.pyi:132:61: WPS604 Wrong statement inside class definition
+ airflow/www/views.py:694:5: WPS604 Wrong statement inside class definition
+ airflow/www/views.py:704:5: WPS604 Wrong statement inside class definition
+ dev/breeze/src/airflow_breeze/global_constants.py:236:5: WPS604 Wrong statement inside class definition
+ dev/breeze/src/airflow_breeze/utils/selective_checks.py:125:5: WPS604 Wrong statement inside class definition
+ kubernetes_tests/test_kubernetes_pod_operator.py:1091:13: WPS604 Wrong statement inside class definition
+ kubernetes_tests/test_kubernetes_pod_operator.py:1279:13: WPS604 Wrong statement inside class definition
+ providers/src/airflow/providers/edge/models/edge_worker.py:50:5: WPS604 Wrong statement inside class definition
+ providers/src/airflow/providers/edge/plugins/edge_executor_plugin.py:134:5: WPS604 Wrong statement inside class definition
+ providers/src/airflow/providers/edge/worker_api/routes/_v2_compat.py:45:9: WPS604 Wrong statement inside class definition
+ providers/src/airflow/providers/google/cloud/hooks/datafusion.py:48:5: WPS604 Wrong statement inside class definition
... 59 additional changes omitted for project

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

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

+ superset/app.py:51:5: WPS604 Wrong statement inside class definition
+ superset/async_events/async_query_manager.py:39:5: WPS604 Wrong statement inside class definition
+ superset/async_events/async_query_manager.py:43:5: WPS604 Wrong statement inside class definition
+ superset/async_events/async_query_manager.py:47:5: WPS604 Wrong statement inside class definition
+ superset/charts/schemas.py:409:5: WPS604 Wrong statement inside class definition
+ superset/commands/chart/exceptions.py:139:5: WPS604 Wrong statement inside class definition
+ superset/commands/chart/exceptions.py:143:5: WPS604 Wrong statement inside class definition
+ superset/daos/css.py:22:5: WPS604 Wrong statement inside class definition
+ superset/daos/dataset.py:350:5: WPS604 Wrong statement inside class definition
+ superset/daos/dataset.py:354:5: WPS604 Wrong statement inside class definition
... 24 additional changes omitted for project

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

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

+ src/bokeh/core/query.py:231:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:245:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:259:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:273:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:287:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:301:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:316:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:331:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/query.py:345:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/serialization.py:190:5: WPS604 Wrong statement inside class definition
+ src/bokeh/core/serialization.py:475:5: WPS604 Wrong statement inside class definition
+ src/bokeh/embed/bundle.py:76:5: WPS604 Wrong statement inside class definition
... 42 additional changes omitted for project

zulip/zulip (+58 -0 violations, +0 -0 fixes)

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

+ confirmation/models.py:331:9: WPS604 Wrong statement inside class definition
+ corporate/lib/stripe.py:419:5: WPS604 Wrong statement inside class definition
+ corporate/lib/stripe.py:423:5: WPS604 Wrong statement inside class definition
+ corporate/lib/stripe.py:427:5: WPS604 Wrong statement inside class definition
+ tools/lib/template_parser.py:7:5: WPS604 Wrong statement inside class definition
+ zerver/forms.py:80:5: WPS604 Wrong statement inside class definition
+ zerver/lib/bot_config.py:14:5: WPS604 Wrong statement inside class definition
+ zerver/lib/bot_lib.py:63:5: WPS604 Wrong statement inside class definition
+ zerver/lib/bot_lib.py:67:5: WPS604 Wrong statement inside class definition
+ zerver/lib/bot_storage.py:9:5: WPS604 Wrong statement inside class definition
+ zerver/lib/cache.py:158:5: WPS604 Wrong statement inside class definition
+ zerver/lib/email_mirror_helpers.py:28:5: WPS604 Wrong statement inside class definition
+ zerver/lib/email_mirror_helpers.py:32:5: WPS604 Wrong statement inside class definition
... 45 additional changes omitted for project

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
WPS604 221 221 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.

2 participants