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

Use function range for reimplemented-operator diagnostics #11271

Merged
merged 1 commit into from
May 3, 2024

Conversation

charliermarsh
Copy link
Member

No description provided.

@charliermarsh charliermarsh added rule Implementing or modifying a lint rule preview Related to preview mode features labels May 3, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) May 3, 2024 20:05
@charliermarsh charliermarsh merged commit 8dd3811 into main May 3, 2024
19 checks passed
@charliermarsh charliermarsh deleted the charlie/ident branch May 3, 2024 20:11
Copy link
Contributor

github-actions bot commented May 3, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+18 -18 violations, +0 -0 fixes in 2 projects; 42 projects unchanged)

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

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

- tests/api_internal/endpoints/test_rpc_api_endpoint.py:65:1: FURB118 Use `operator.eq` instead of defining a function
+ tests/api_internal/endpoints/test_rpc_api_endpoint.py:65:5: FURB118 Use `operator.eq` instead of defining a function
- tests/decorators/test_python.py:701:5: FURB118 Use `operator.mul` instead of defining a function
+ tests/decorators/test_python.py:702:9: FURB118 Use `operator.mul` instead of defining a function
- tests/models/test_baseoperator.py:962:5: FURB118 Use `operator.add` instead of defining a function
+ tests/models/test_baseoperator.py:963:9: FURB118 Use `operator.add` instead of defining a function
+ tests/operators/test_python.py:1487:13: FURB118 Use `operator.itemgetter("ds")` instead of defining a function
- tests/operators/test_python.py:1487:9: FURB118 Use `operator.itemgetter("ds")` instead of defining a function
+ tests/operators/test_python.py:812:13: FURB118 Use `operator.itemgetter("ds")` instead of defining a function
- tests/operators/test_python.py:812:9: FURB118 Use `operator.itemgetter("ds")` instead of defining a function
- tests/providers/amazon/aws/hooks/test_rds.py:102:1: FURB118 Use `operator.itemgetter("DBClusterSnapshotIdentifier")` instead of defining a function
+ tests/providers/amazon/aws/hooks/test_rds.py:103:5: FURB118 Use `operator.itemgetter("DBClusterSnapshotIdentifier")` instead of defining a function
- tests/providers/amazon/aws/hooks/test_rds.py:80:1: FURB118 Use `operator.itemgetter("DBSnapshotIdentifier")` instead of defining a function
+ tests/providers/amazon/aws/hooks/test_rds.py:81:5: FURB118 Use `operator.itemgetter("DBSnapshotIdentifier")` instead of defining a function
- tests/providers/amazon/aws/hooks/test_rds.py:85:1: FURB118 Use `operator.itemgetter("DBSnapshotArn")` instead of defining a function
+ tests/providers/amazon/aws/hooks/test_rds.py:86:5: FURB118 Use `operator.itemgetter("DBSnapshotArn")` instead of defining a function
- tests/serialization/test_serialized_objects.py:145:1: FURB118 Use `operator.eq` instead of defining a function
+ tests/serialization/test_serialized_objects.py:145:5: FURB118 Use `operator.eq` instead of defining a function
- tests/system/providers/amazon/aws/example_ec2.py:90:1: FURB118 Use `operator.itemgetter(0)` instead of defining a function
+ tests/system/providers/amazon/aws/example_ec2.py:91:5: FURB118 Use `operator.itemgetter(0)` instead of defining a function
- tests/system/providers/amazon/aws/example_emr.py:111:1: FURB118 Use `operator.itemgetter(0)` instead of defining a function
+ tests/system/providers/amazon/aws/example_emr.py:112:5: FURB118 Use `operator.itemgetter(0)` instead of defining a function
- tests/ti_deps/deps/test_mapped_task_upstream_dep.py:111:9: FURB118 Use `operator.add` instead of defining a function
+ tests/ti_deps/deps/test_mapped_task_upstream_dep.py:112:13: FURB118 Use `operator.add` instead of defining a function
- tests/ti_deps/deps/test_mapped_task_upstream_dep.py:197:9: FURB118 Use `operator.add` instead of defining a function
+ tests/ti_deps/deps/test_mapped_task_upstream_dep.py:198:13: FURB118 Use `operator.add` instead of defining a function

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

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

- tools/setup/emoji/emoji_setup_utils.py:105:1: FURB118 Use `operator.itemgetter("has_img_google")` instead of defining a function
+ tools/setup/emoji/emoji_setup_utils.py:105:5: FURB118 Use `operator.itemgetter("has_img_google")` instead of defining a function
- zerver/lib/display_recipient.py:109:5: FURB118 Use `operator.itemgetter("recipient_id")` instead of defining a function
+ zerver/lib/display_recipient.py:109:9: FURB118 Use `operator.itemgetter("recipient_id")` instead of defining a function
- zerver/lib/display_recipient.py:112:5: FURB118 Use `operator.itemgetter("name")` instead of defining a function
+ zerver/lib/display_recipient.py:112:9: FURB118 Use `operator.itemgetter("name")` instead of defining a function
- zerver/lib/display_recipient.py:67:1: FURB118 Use `operator.itemgetter("id")` instead of defining a function
+ zerver/lib/display_recipient.py:67:5: FURB118 Use `operator.itemgetter("id")` instead of defining a function
- zerver/lib/webhooks/git.py:405:1: FURB118 Use `operator.itemgetter(slice(11))` instead of defining a function
+ zerver/lib/webhooks/git.py:405:5: FURB118 Use `operator.itemgetter(slice(11))` instead of defining a function

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
FURB118 36 18 18 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Related to preview mode features rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant