Skip to content

Instantly share code, notes, and snippets.

@konstin
Created July 19, 2023 19:43
Show Gist options
  • Save konstin/edd2a914fdf4196020d9efa3f2c7e6ff to your computer and use it in GitHub Desktop.
Save konstin/edd2a914fdf4196020d9efa3f2c7e6ff to your computer and use it in GitHub Desktop.
Unstable formatting /home/konsti/ruff/target/checkouts/demisto:content/Packs/Base/Scripts/DBotMLFetchData/DBotMLFetchData.py
@@ -978,8 +978,7 @@
- float(sum(all_attachments_names_lengths))
- / len(all_attachments_names_lengths) # type: ignore
+ float(sum(all_attachments_names_lengths)) / len(all_attachments_names_lengths) # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/demisto:content/Packs/PolySwarm/Integrations/PolySwarmV2/PolySwarmV2_test.py
@@ -514,7 +514,7 @@
- # noqa
+ # noqa
Unstable formatting /home/konsti/ruff/target/checkouts/demisto:content/Packs/FeedMitreAttackv2/Integrations/FeedMitreAttackv2/FeedMitreAttackv2.py
@@ -659,7 +659,8 @@
- lambda attack_pattern_obj,: filter_attack_pattern_object_by_attack_id(
+ lambda attack_pattern_obj,
+ : filter_attack_pattern_object_by_attack_id(
@@ -728,7 +729,8 @@
- lambda attack_pattern_obj,: filter_attack_pattern_object_by_attack_id(
+ lambda attack_pattern_obj,
+ : filter_attack_pattern_object_by_attack_id(
@@ -741,7 +743,8 @@
- lambda attack_pattern_obj,: filter_attack_pattern_object_by_attack_id(
+ lambda attack_pattern_obj,
+ : filter_attack_pattern_object_by_attack_id(
Unstable formatting /home/konsti/ruff/target/checkouts/demisto:content/Packs/AWS_DynamoDB/Integrations/AWS_DynamoDB/AWS_DynamoDB.py
@@ -565,7 +565,7 @@
- # type:ignore
+ # type:ignore
@@ -645,7 +645,7 @@
- # type:ignore
+ # type:ignore
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/tests/examples/vectors/test_vectors.py
@@ -61,7 +61,8 @@
- xma=float(space.upper_bound[0]),: random_vector(r, xx, xmi, xma),
+ xma=float(space.upper_bound[0]),
+ : random_vector(r, xx, xmi, xma),
@@ -85,7 +86,8 @@
- xma=float(space.upper_bound[0]),: random_vector(r, xx, xmi, xma),
+ xma=float(space.upper_bound[0]),
+ : random_vector(r, xx, xmi, xma),
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/tests/on_vectors.py
@@ -194,7 +194,8 @@
- _,: max(1, i // 3),
+ _,
+ : max(1, i // 3),
@@ -220,7 +221,8 @@
- _,: max(1, i // 3),
+ _,
+ : max(1, i // 3),
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/tests/op2.py
@@ -14,7 +14,8 @@
- x,: x,
+ x,
+ : x,
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/tests/op1_with_step_size.py
@@ -14,7 +14,8 @@
- x,: x,
+ x,
+ : x,
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/tests/op0.py
@@ -14,7 +14,8 @@
- x,: x,
+ x,
+ : x,
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/tests/op1.py
@@ -25,7 +25,8 @@
- x,: x,
+ x,
+ : x,
Unstable formatting /home/konsti/ruff/target/checkouts/thomasWeise:moptipy/moptipy/utils/plot_utils.py
@@ -360,14 +360,17 @@
- current[plots_i] + 1 # type: ignore
+ (
+ current[plots_i] + 1 # type: ignore
+ )
+ < best[plots_i]
- < best[plots_i]
- ) or (
- current[plots_i] # type: ignore
- <= (best[plots_i] + 1) # type: ignore
- and (current < best)
+ or (
+ current[plots_i] # type: ignore
+ <= (best[plots_i] + 1) # type: ignore
+ and (current < best)
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/python:mypy/mypy/meet.py
@@ -266,8 +266,7 @@
- isinstance(left, TypeGuardedType)
- or isinstance(right, TypeGuardedType) # type: ignore[misc]
+ isinstance(left, TypeGuardedType) or isinstance(right, TypeGuardedType) # type: ignore[misc]
Unstable formatting /home/konsti/ruff/target/checkouts/python:mypy/mypy/checkexpr.py
@@ -353,8 +353,7 @@
- isinstance(result, CallableType)
- and isinstance(result.ret_type, Instance) # type: ignore[misc]
+ isinstance(result, CallableType) and isinstance(result.ret_type, Instance) # type: ignore[misc]
Unstable formatting /home/konsti/ruff/target/checkouts/roeap:flight-fusion/python/dagster-fusion/tests/test_mlflow_integration.py
@@ -152,8 +152,7 @@
- getattr(MlFlow, methods)
- != getattr(mlflow, methods) # pylint: disable=comparison-with-callable
+ getattr(MlFlow, methods) != getattr(mlflow, methods) # pylint: disable=comparison-with-callable
Unstable formatting /home/konsti/ruff/target/checkouts/worldr:nhound/nhound/utils.py
@@ -48,9 +48,10 @@
- return ", ".join(
- str(obj) for obj in obj_list[ : size - 1]
- ) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ return (
+ ", ".join(str(obj) for obj in obj_list[ : size - 1])
+ + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Error reading /home/konsti/ruff/target/checkouts/jkrauska:fieldpick/data/calendarJAMESNASH.py: stream did not contain valid UTF-8
Unstable formatting /home/konsti/ruff/target/checkouts/realtyem:synapse-unraid/tests/federation/test_federation_client.py
@@ -270,15 +270,16 @@
- self._mock_agent.request.side_effect = lambda: defer.succeed(
- FakeResponse.json(
- payload={
- "origin": "yet.another.server",
- "origin_server_ts": 900,
- # Mimic the other server returning our new `pulled_event`
- "pdus": [pulled_event.get_pdu_json()],
- }
- )
+ self._mock_agent.request.side_effect = (
+ lambda: defer.succeed(
+ FakeResponse.json(
+ payload={
+ "origin": "yet.another.server",
+ "origin_server_ts": 900,
+ "pdus": [pulled_event.get_pdu_json()],
+ }
+ )
+ )# Mimic the other server returning our new `pulled_event`
Unstable formatting /home/konsti/ruff/target/checkouts/kornia:kornia/kornia/enhance/equalization.py
@@ -54,8 +54,8 @@
- batch.unfold(1, c, c).unfold(2, kernel_vert, kernel_vert).unfold(3, kernel_horz, kernel_horz).squeeze(1) # unfold(dimension, size, step)
- ).contiguous() # GH x GW x C x TH x TW
+ batch.unfold(1, c, c).unfold(2, kernel_vert, kernel_vert).unfold(3, kernel_horz, kernel_horz).squeeze(1)
+ ).contiguous() # unfold(dimension, size, step) # GH x GW x C x TH x TW
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/tools/gen_ut_cmakelists.py
@@ -167,9 +167,10 @@
- assert re.compile("^test_[0-9a-zA-Z_]+").search(
- name
- ), """If line is not the header of table, the test name must begin with "test_" """ """and the following substring must include at least one char of "0-9", "a-z", "A-Z" or "_"."""
+ assert re.compile("^test_[0-9a-zA-Z_]+").search(name), (
+ """If line is not the header of table, the test name must begin with "test_" """
+ """and the following substring must include at least one char of "0-9", "a-z", "A-Z" or "_"."""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/test/ipu/distributed/test_dist_pod128_sample.py
@@ -88,8 +88,7 @@
- "global_replica_offset": # Paddle : int(os.environ.get("PADDLE_TRAINER_ID")) * 32
- # PopRun : int(os.environ.get("POPDIST_REPLICA_INDEX_OFFSET"))
+ "global_replica_offset": # PopRun : int(os.environ.get("POPDIST_REPLICA_INDEX_OFFSET")) # Paddle : int(os.environ.get("PADDLE_TRAINER_ID")) * 32
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/test/legacy_test/test_psroi_pool_op.py
@@ -175,7 +175,8 @@
- spatial_scale,: paddle.vision.ops.psroi_pool(
+ spatial_scale,
+ : paddle.vision.ops.psroi_pool(
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/test/legacy_test/test_roi_pool_op.py
@@ -169,7 +169,8 @@
- spatial_scale,: paddle.vision.ops.roi_pool(
+ spatial_scale,
+ : paddle.vision.ops.roi_pool(
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/test/legacy_test/test_roi_align_op.py
@@ -229,7 +229,8 @@
- aligned,: paddle.vision.ops.roi_align(
+ aligned,
+ : paddle.vision.ops.roi_align(
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/python/paddle/nn/layer/rnn.py
@@ -625,7 +625,8 @@
- dtype,: paddle.fluid.layers.fill_constant_batch_size_like(
+ dtype,
+ : paddle.fluid.layers.fill_constant_batch_size_like(
Unstable formatting /home/konsti/ruff/target/checkouts/hongquan:CurliPie/tests/test_curlipie.py
@@ -68,7 +68,10 @@
- curl = """curl -XPUT elastic.dev/movies/_doc/1 -d '{"director": "Burton, Tim", """ """ "year": 1996, "title": "Mars Attacks!"}' -H 'Content-Type: application/json'"""
+ curl = (
+ """curl -XPUT elastic.dev/movies/_doc/1 -d '{"director": "Burton, Tim", """
+ """ "year": 1996, "title": "Mars Attacks!"}' -H 'Content-Type: application/json'"""
+ )
@@ -77,7 +80,11 @@
- curl = """curl -XPUT elastic.dev/movies/_doc/1 -d '{"genre": ["Comedy", "Sci-Fi"],""" """ "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"]}' """ """-H 'Content-Type: application/json'"""
+ curl = (
+ """curl -XPUT elastic.dev/movies/_doc/1 -d '{"genre": ["Comedy", "Sci-Fi"],"""
+ """ "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"]}' """
+ """-H 'Content-Type: application/json'"""
+ )
@@ -87,7 +94,16 @@
- curl = """curl --location --request POST 'http://stupid.site/sync-info' \\""" """--header 'Content-Type: application/json' \\""" "--data-raw '{" ' "userId": "4-abc-xyz",' ' "planAmount": 50000,' ' "isPromotion": false,' ' "createdAt": "2019-12-13 10:00:00"' "}'"
+ curl = (
+ """curl --location --request POST 'http://stupid.site/sync-info' \\"""
+ """--header 'Content-Type: application/json' \\"""
+ "--data-raw '{"
+ ' "userId": "4-abc-xyz",'
+ ' "planAmount": 50000,'
+ ' "isPromotion": false,'
+ ' "createdAt": "2019-12-13 10:00:00"'
+ "}'"
+ )
@@ -96,7 +112,18 @@
- curl = """curl -X POST \\\nhttp://172.16.0.19/api/access-cards/2392919198/call-elevator \\\n-H 'Accept: */*' """ """\\\n-H 'Accept-Encoding: gzip, deflate' \\\n-H 'Authorization: """ """Basic dXNlcjp4eHg=' \\\n-H 'Cache-Control: no-cache' """ """\\\n-H 'Connection: keep-alive' \\\n-H 'Content-Length: 407' \\\n""" """-H 'Content-Type: multipart/form-data; boundary=--------------------------539724411903816199149731' """ """\\\n-H 'Host: 172.16.0.19' \\\n-H 'Postman-Token: 24e4f6f7' \\\n""" """-H 'User-Agent: PostmanRuntime/7.19.0' """ """\\\n-H 'cache-control: no-cache' \\\n-H 'content-type: multipart/form-data; """ """boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n""" """-F boarding_floor=1 \\\n-F destination_floor=9 \\\n-F elevator_bank_number=3"""
+ curl = (
+ """curl -X POST \\\nhttp://172.16.0.19/api/access-cards/2392919198/call-elevator \\\n-H 'Accept: */*' """
+ """\\\n-H 'Accept-Encoding: gzip, deflate' \\\n-H 'Authorization: """
+ """Basic dXNlcjp4eHg=' \\\n-H 'Cache-Control: no-cache' """
+ """\\\n-H 'Connection: keep-alive' \\\n-H 'Content-Length: 407' \\\n"""
+ """-H 'Content-Type: multipart/form-data; boundary=--------------------------539724411903816199149731' """
+ """\\\n-H 'Host: 172.16.0.19' \\\n-H 'Postman-Token: 24e4f6f7' \\\n"""
+ """-H 'User-Agent: PostmanRuntime/7.19.0' """
+ """\\\n-H 'cache-control: no-cache' \\\n-H 'content-type: multipart/form-data; """
+ """boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n"""
+ """-F boarding_floor=1 \\\n-F destination_floor=9 \\\n-F elevator_bank_number=3"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/mne-tools:mne-python/mne/io/edf/tests/test_gdf.py
@@ -86,8 +86,7 @@
- datetime.now(tz=timezone.utc)
- - datetime(1, 1, 1, tzinfo=timezone.utc) # to their ref
+ datetime.now(tz=timezone.utc) - datetime(1, 1, 1, tzinfo=timezone.utc) # to their ref
Unstable formatting /home/konsti/ruff/target/checkouts/mne-tools:mne-python/mne/source_estimate.py
@@ -100,10 +100,8 @@
- vertices_n
- and # vertices_n can be 0 (empty stc)
- (len(buf) // 4 - 4 - vertices_n) % (data_n * vertices_n)
- != 0
+ vertices_n # vertices_n can be 0 (empty stc)
+ and (len(buf) // 4 - 4 - vertices_n) % (data_n * vertices_n) != 0
Unstable formatting /home/konsti/ruff/target/checkouts/Scille:parsec-cloud/server/tests/backend/common.py
@@ -260,7 +260,8 @@
- sequester_blob=None,: {
+ sequester_blob=None,
+ : {
@@ -295,7 +296,8 @@
- sequester_blob=None,: {
+ sequester_blob=None,
+ : {
@@ -383,7 +385,8 @@
- per_page=100,: {
+ per_page=100,
+ : {
@@ -396,7 +399,8 @@
- redacted_device_certificate,: {
+ redacted_device_certificate,
+ : {
Unstable formatting /home/konsti/ruff/target/checkouts/sympy:sympy/sympy/stats/matrix_distributions.py
@@ -103,12 +103,14 @@
- rand_state,: scipy_stats.wishart.rvs(
+ rand_state,
+ : scipy_stats.wishart.rvs(
- rand_state,: scipy_stats.matrix_normal.rvs(
+ rand_state,
+ : scipy_stats.matrix_normal.rvs(
Unstable formatting /home/konsti/ruff/target/checkouts/sympy:sympy/sympy/stats/joint_rv.py
@@ -189,14 +189,16 @@
- size,: scipy_stats.multivariate_normal.rvs(
+ size,
+ : scipy_stats.multivariate_normal.rvs(
- size,: scipy_stats.dirichlet.rvs(
+ size,
+ : scipy_stats.dirichlet.rvs(
@@ -245,7 +247,8 @@
- size,: rand_state.multivariate_normal(
+ size,
+ : rand_state.multivariate_normal(
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/tests/components/logbook/test_init.py
@@ -486,9 +486,8 @@
- async_describe_event,: async_describe_event(
- "test_domain", "some_event", _describe
- )
+ async_describe_event,
+ : async_describe_event("test_domain", "some_event", _describe)
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/tests/components/hddtemp/test_sensor.py
@@ -168,9 +168,10 @@
- assert state.attributes.get(
- "friendly_name"
- ) == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ assert (
+ state.attributes.get("friendly_name")
+ == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/helpers/dispatcher.py
@@ -70,11 +70,11 @@
- # Functions wrapped in partial do not have a __name__
- ),
+ )# Functions wrapped in partial do not have a __name__
+ ,
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/util/dt.py
@@ -329,8 +329,9 @@
- - # type: ignore[operator]
- dattim - delta.utcoffset()
+ - # type: ignore[operator]
+ dattim
+ - delta.utcoffset()
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/bootstrap.py
@@ -383,9 +383,11 @@
- sys.excepthook = lambda: logging.getLogger(None).exception(
- "Uncaught exception",
- exc_info=args, # type: ignore[arg-type]
+ sys.excepthook = (
+ lambda: logging.getLogger(None).exception(
+ "Uncaught exception",
+ exc_info=args,
+ ) # type: ignore[arg-type]
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/vicare/sensor.py
@@ -232,7 +232,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -240,7 +241,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -248,7 +250,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -256,7 +259,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
@@ -296,7 +300,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -304,7 +309,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -312,7 +318,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -320,7 +327,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/bmw_connected_drive/button.py
@@ -39,7 +39,8 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_light_flash(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_light_flash(),
@@ -51,19 +52,22 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_air_conditioning(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_air_conditioning(),
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_air_conditioning_stop(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_air_conditioning_stop(),
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_vehicle_finder(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_vehicle_finder(),
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/recorder/statistics.py
@@ -1731,7 +1731,7 @@
- )# https://github.com/sqlalchemy/sqlalchemy/issues/9189
+ ) # https://github.com/sqlalchemy/sqlalchemy/issues/9189
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/mqtt/binary_sensor.py
@@ -294,5 +294,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/mqtt/sensor.py
@@ -372,5 +372,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/homekit/type_fans.py
@@ -120,7 +120,8 @@
- preset_mode=preset_mode,: self.set_preset_mode(value, preset_mode),
+ preset_mode=preset_mode,
+ : self.set_preset_mode(value, preset_mode),
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/evohome/__init__.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(ColonEqual, None), offset: 3717, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/rnd-rivertech:core/homeassistant/components/shelly/button.py
@@ -58,7 +58,8 @@
- press_action=lambda coordinator,: coordinator.device.trigger_shelly_gas_self_test(),
+ press_action=lambda coordinator,
+ : coordinator.device.trigger_shelly_gas_self_test(),
Unstable formatting /home/konsti/ruff/target/checkouts/Netflix:dispatch/src/dispatch/cli.py
@@ -797,8 +797,8 @@
- ).filter(SignalInstance.created_at >= one_hour_ago) # noqa
- ).order_by(asc(SignalInstance.created_at)).limit(500)
+ ).filter(SignalInstance.created_at >= one_hour_ago)
+ ).order_by(asc(SignalInstance.created_at)).limit(500) # noqa
Unstable formatting /home/konsti/ruff/target/checkouts/Netflix:dispatch/src/dispatch/plugins/dispatch_slack/middleware.py
@@ -164,7 +164,8 @@
- or bot_id is not None and bot_id == auth_result.bot_id # for bot_message events
+ or bot_id is not None
+ and bot_id == auth_result.bot_id # for bot_message events
Unstable formatting /home/konsti/ruff/target/checkouts/colour-science:colour/colour/utilities/tests/test_verbose.py
@@ -125,7 +125,8 @@
- "formatter": lambda x,: f"NOT_YET_IMPLEMENTED_ExprJoinedStr", # noqa: ARG005
+ "formatter": lambda x,
+ : f"NOT_YET_IMPLEMENTED_ExprJoinedStr", # noqa: ARG005
Unstable formatting /home/konsti/ruff/target/checkouts/oluchigoodness2000:zulip/scripts/lib/zulip_tools.py
@@ -267,8 +267,7 @@
- datetime.datetime.now()
- - datetime.timedelta(days=threshold_days) # noqa: DTZ005
+ datetime.datetime.now() - datetime.timedelta(days=threshold_days) # noqa: DTZ005
Unstable formatting /home/konsti/ruff/target/checkouts/bigcode-project:transformers/src/transformers/generation/flax_logits_process.py
@@ -344,9 +344,8 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/bigcode-project:transformers/src/transformers/generation/tf_logits_process.py
@@ -570,8 +570,7 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/lqhuang:mode-ng/src/mode/utils/objects.py
@@ -49,7 +49,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/zulip:zulip/scripts/lib/zulip_tools.py
@@ -295,8 +295,7 @@
- datetime.datetime.now()
- - datetime.timedelta(days=threshold_days) # noqa: DTZ005
+ datetime.datetime.now() - datetime.timedelta(days=threshold_days) # noqa: DTZ005
Unstable formatting /home/konsti/ruff/target/checkouts/Lightning-AI:lightning/src/lightning/pytorch/callbacks/early_stopping.py
@@ -184,8 +184,7 @@
- trainer.fast_dev_run
- or not self._validate_condition_metric(logs) # disable early_stopping with fast_dev_run
+ trainer.fast_dev_run or not self._validate_condition_metric(logs) # disable early_stopping with fast_dev_run
Unstable formatting /home/konsti/ruff/target/checkouts/algorandfoundation:algokit-utils-py/src/algokit_utils/deploy.py
@@ -356,7 +356,8 @@
- and trailing_idx >= len(line) or not _is_valid_token_character(line[trailing_idx]) # word boundary at end
+ and trailing_idx >= len(line)
+ or not _is_valid_token_character(line[trailing_idx]) # word boundary at end
Unstable formatting /home/konsti/ruff/target/checkouts/PlasmaPy:PlasmaPy/plasmapy/diagnostics/tests/test_thomson.py
@@ -743,8 +743,7 @@
- 1
- + np.random.normal(loc=0, scale=noise_amp, size=wavelengths.size) # noqa: NPY002
+ 1 + np.random.normal(loc=0, scale=noise_amp, size=wavelengths.size) # noqa: NPY002
@@ -1152,8 +1151,7 @@
- 1
- + np.random.normal(loc=0, scale=0.1, size=wavelengths.size) # noqa: NPY002
+ 1 + np.random.normal(loc=0, scale=0.1, size=wavelengths.size) # noqa: NPY002
Unstable formatting /home/konsti/ruff/target/checkouts/PlasmaPy:PlasmaPy/plasmapy/utils/decorators/tests/test_converters.py
@@ -75,7 +75,8 @@
- **kwargs,: None
+ **kwargs,
+ : None
Unstable formatting /home/konsti/ruff/target/checkouts/PlasmaPy:PlasmaPy/plasmapy/particles/tests/test_atomic.py
@@ -333,8 +333,7 @@
- u.isclose(result1, result2)
- and u.isclose(result2, expected) # noqa: PT018
+ u.isclose(result1, result2) and u.isclose(result2, expected) # noqa: PT018
Unstable formatting /home/konsti/ruff/target/checkouts/artigraph:artigraph/src/arti/versions/__init__.py
@@ -21,9 +21,7 @@
- lambda: subprocess.check_output(
- ["git", "rev-parse", "HEAD"]
- ).decode().strip() # noqa: S603 S607
+ lambda: subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() # noqa: S603 S607
Unstable formatting /home/konsti/ruff/target/checkouts/modal-labs:modal-client/modal/_blob_utils.py
@@ -193,9 +193,10 @@
- expected_multipart_etag = hashlib.md5(
- b"NOT_YET_IMPLEMENTED_BYTE_STRING".join(bin_hash_parts)
- ).hexdigest() + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ expected_multipart_etag = (
+ hashlib.md5(b"NOT_YET_IMPLEMENTED_BYTE_STRING".join(bin_hash_parts)).hexdigest()
+ + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/PyCQA:astroid/astroid/brain/brain_numpy_core_umath.py
@@ -13,7 +13,10 @@
- ufunc_optional_keyword_arguments = """out=None, where=True, casting='same_kind', order='K', """ """dtype=None, subok=True"""
+ ufunc_optional_keyword_arguments = (
+ """out=None, where=True, casting='same_kind', order='K', """
+ """dtype=None, subok=True"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/pypa:cibuildwheel/test/test_before_build.py
@@ -43,7 +43,10 @@
- before_build = """python -c "import sys; open('{output_dir}pythonversion.txt', 'w').write(sys.version)" && """ '''python -c "import sys; open('{output_dir}pythonexecutable.txt', 'w').write(sys.executable)"'''
+ before_build = (
+ """python -c "import sys; open('{output_dir}pythonversion.txt', 'w').write(sys.version)" && """
+ '''python -c "import sys; open('{output_dir}pythonexecutable.txt', 'w').write(sys.executable)"'''
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/helpers/dispatcher.py
@@ -70,11 +70,11 @@
- # Functions wrapped in partial do not have a __name__
- ),
+ )# Functions wrapped in partial do not have a __name__
+ ,
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/tests/components/logbook/test_init.py
@@ -486,9 +486,8 @@
- async_describe_event,: async_describe_event(
- "test_domain", "some_event", _describe
- )
+ async_describe_event,
+ : async_describe_event("test_domain", "some_event", _describe)
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/tests/components/hddtemp/test_sensor.py
@@ -168,9 +168,10 @@
- assert state.attributes.get(
- "friendly_name"
- ) == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ assert (
+ state.attributes.get("friendly_name")
+ == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/util/dt.py
@@ -329,8 +329,9 @@
- - # type: ignore[operator]
- dattim - delta.utcoffset()
+ - # type: ignore[operator]
+ dattim
+ - delta.utcoffset()
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/bootstrap.py
@@ -380,9 +380,11 @@
- sys.excepthook = lambda: logging.getLogger(None).exception(
- "Uncaught exception",
- exc_info=args, # type: ignore[arg-type]
+ sys.excepthook = (
+ lambda: logging.getLogger(None).exception(
+ "Uncaught exception",
+ exc_info=args,
+ ) # type: ignore[arg-type]
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/vicare/sensor.py
@@ -232,7 +232,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -240,7 +241,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -248,7 +250,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -256,7 +259,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
@@ -296,7 +300,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -304,7 +309,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -312,7 +318,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -320,7 +327,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/bmw_connected_drive/button.py
@@ -39,7 +39,8 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_light_flash(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_light_flash(),
@@ -51,19 +52,22 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_air_conditioning(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_air_conditioning(),
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_air_conditioning_stop(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_air_conditioning_stop(),
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_vehicle_finder(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_vehicle_finder(),
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/mqtt/binary_sensor.py
@@ -294,5 +294,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/mqtt/sensor.py
@@ -369,5 +369,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/homekit/type_fans.py
@@ -120,7 +120,8 @@
- preset_mode=preset_mode,: self.set_preset_mode(value, preset_mode),
+ preset_mode=preset_mode,
+ : self.set_preset_mode(value, preset_mode),
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/evohome/__init__.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(ColonEqual, None), offset: 3717, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/peterbacil:home-assistant-core/homeassistant/components/shelly/button.py
@@ -58,7 +58,8 @@
- press_action=lambda coordinator,: coordinator.device.trigger_shelly_gas_self_test(),
+ press_action=lambda coordinator,
+ : coordinator.device.trigger_shelly_gas_self_test(),
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/michplunkett:supreme-court-ml-predictions/supreme_court_predictions/processing/datacleaner.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Colon, None), offset: 2980, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/ajslater:codex/codex/librarian/watchdog/emitter.py
@@ -53,7 +53,7 @@
- )# default stat and listdir params
+ ) # default stat and listdir params
Unstable formatting /home/konsti/ruff/target/checkouts/alorence:django-modern-rpc/modernrpc/handlers/jsonhandler.py
@@ -105,7 +105,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/jupyterlab:jupyterlab/jupyterlab/extensions/pypi.py
@@ -156,8 +156,7 @@
- err.faultCode == -32500
- and err.faultString.startswith("HTTPTooManyRequests:") # noqa PLR2004
+ err.faultCode == -32500 and err.faultString.startswith("HTTPTooManyRequests:") # noqa PLR2004
Unstable formatting /home/konsti/ruff/target/checkouts/Argmaster:cssfinder_backend_numpy/cssfinder_backend_numpy/base.py
@@ -123,7 +123,9 @@
- vis_state + inv_vis_ident / len(self.initial).astype(
+ vis_state
+ + inv_vis_ident
+ / len(self.initial).astype(
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/GraiaProject:Ariadne/src/graia/ariadne/app.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Else, None), offset: 48453, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/pikepdf:pikepdf/docs/conf.py
@@ -297,7 +297,7 @@
- # type: ignore
+ # type: ignore
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/djangopackages:djangopackages/homepage/views.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, Some("name")), offset: 8947, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/microsoft:onnxscript/tools/diagnostics/gen_diagnostics.py
@@ -177,8 +177,7 @@
- } # Don't ignore empty line
- ,
+ }, # Don't ignore empty line
Unstable formatting /home/konsti/ruff/target/checkouts/tvv-lippu-ja-maksujarjestelma-oy:waltti-apc-pilot-analysis/src/waltti_apc_pilot_analysis/analysis.py
@@ -686,17 +686,17 @@
- # # FIXME: Too hard
- # #apc_json_dtype = pl.Struct(pl.Field("payload_apc"[pl.Field("a", pl.Int64), pl.Field("b", pl.Boolean)])
- # df.select(pl.col("json").str.json_extract(apc_json_dtype))
- # df3 = df2.with_columns([
- # pl.when(pl.col("payload").apply(is_json))
- # .then(pl.col("payload").str.json_extract())
- # .alias("payload_extracted")
- # ]).unnest("payload_extracted").unnest("payload_apc")
- # ]).with_columns([
- # pl.col("is_payload_json").on_true
- # ])
+ # # FIXME: Too hard
+ # #apc_json_dtype = pl.Struct(pl.Field("payload_apc"[pl.Field("a", pl.Int64), pl.Field("b", pl.Boolean)])
+ # df.select(pl.col("json").str.json_extract(apc_json_dtype))
+ # df3 = df2.with_columns([
+ # pl.when(pl.col("payload").apply(is_json))
+ # .then(pl.col("payload").str.json_extract())
+ # .alias("payload_extracted")
+ # ]).unnest("payload_extracted").unnest("payload_apc")
+ # ]).with_columns([
+ # pl.col("is_payload_json").on_true
+ # ])
Unstable formatting /home/konsti/ruff/target/checkouts/microsoft:FLAML/test/autogen/oai/test_completion.py
@@ -305,7 +305,8 @@
- lambda data,: "%s Solve the problem carefully. Simplify your answer as much as possible. Put the final answer in \\boxed{}."
+ lambda data,
+ : "%s Solve the problem carefully. Simplify your answer as much as possible. Put the final answer in \\boxed{}."
Unstable formatting /home/konsti/ruff/target/checkouts/marcosschroh:dataclasses-avroschema/dataclasses_avroschema/model_generator/generator.py
@@ -26,7 +26,7 @@
- }# doc is not included because it is rendered as docstrings
+ } # doc is not included because it is rendered as docstrings
Unstable formatting /home/konsti/ruff/target/checkouts/canonical:cos-configuration-k8s-operator/tests/unit/charm/test_status_vs_config.py
@@ -128,7 +128,8 @@
- num_units=num_units,: self.harness.add_relation_unit( # type: ignore
+ num_units=num_units,
+ : self.harness.add_relation_unit( # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/janosh:thermo/thermo/bnn/torch_dropout.py
@@ -178,11 +178,8 @@
- report = (
- f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
- + "".join(
- f"NOT_YET_IMPLEMENTED_ExprJoinedStr" for val in metrics.values()
- )
+ report = f"NOT_YET_IMPLEMENTED_ExprJoinedStr" + "".join(
+ f"NOT_YET_IMPLEMENTED_ExprJoinedStr" for val in metrics.values()
Unstable formatting /home/konsti/ruff/target/checkouts/dbca-wa:it-assets/itassets/widgets.py
@@ -41,7 +41,8 @@
- lambda value,: '<table><tr><td style="border: 1px solid gray"><pre>{}</pre></td></tr></table>'.format(
+ lambda value,
+ : '<table><tr><td style="border: 1px solid gray"><pre>{}</pre></td></tr></table>'.format(
Unstable formatting /home/konsti/ruff/target/checkouts/wandb:wandb/wandb/sdk/artifacts/artifact_saver.py
@@ -194,7 +194,8 @@
- progress_callback,: self._manifest.storage_policy.store_file_sync(
+ progress_callback,
+ : self._manifest.storage_policy.store_file_sync(
@@ -202,7 +203,8 @@
- progress_callback,: self._manifest.storage_policy.store_file_async(
+ progress_callback,
+ : self._manifest.storage_policy.store_file_async(
Unstable formatting /home/konsti/ruff/target/checkouts/python-discord:bot/bot/exts/info/subscribe.py
@@ -41,9 +41,9 @@
- available_months_str = ", ".join(
- month_names[ : -1]
- ) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ available_months_str = (
+ ", ".join(month_names[ : -1]) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/gpajot:local-tuya/tests/protocol/conftest.py
@@ -37,9 +37,7 @@
- len(call[0]) == 1
- and type(expected_event)
- is type(call[0][0]) # noqa: E721
+ len(call[0]) == 1 and type(expected_event) is type(call[0][0]) # noqa: E721
Unstable formatting /home/konsti/ruff/target/checkouts/earthobservations:wetterdienst/wetterdienst/provider/dwd/mosmix/access.py
@@ -163,8 +163,7 @@
- len(measurement_values)
- == len(self.timesteps) # noqa:S101
+ len(measurement_values) == len(self.timesteps) # noqa:S101
Unstable formatting /home/konsti/ruff/target/checkouts/QCoDeS:Qcodes/docs/conf.py
@@ -332,7 +332,7 @@
- # The paper size ('letterpaper' or 'a4paper').
+ # The paper size ('letterpaper' or 'a4paper').
Unstable formatting /home/konsti/ruff/target/checkouts/Seeyou2000:SE_UNO_Project/engine/layout.py
@@ -156,7 +156,8 @@
- __,: pygame.Vector2(),
+ __,
+ : pygame.Vector2(),
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/pip/pip/_vendor/rich/control.py
@@ -45,7 +45,8 @@
- ControlType.CURSOR_MOVE_TO_COLUMN: lambda param,: f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
+ ControlType.CURSOR_MOVE_TO_COLUMN: lambda param,
+ : f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/Jinja2/jinja2/debug.py
@@ -224,7 +224,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines-escaping/gyptest-defines-escaping.py
@@ -16,9 +16,10 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n' """ r"""test_args='"Simple test of %s with a literal"'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n' """
+ r"""test_args='"Simple test of %s with a literal"'"""
+ )
@@ -52,9 +53,14 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args='"\"These,\"",""" r""" "\"words,\"",""" r""" "\"are,\"",""" r""" "\"in,\"",""" r""" "\"quotes.\""'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s %s %s %s %s\n' """
+ r"""test_args='"\"These,\"","""
+ r""" "\"words,\"","""
+ r""" "\"are,\"","""
+ r""" "\"in,\"","""
+ r""" "\"quotes.\""'"""
+ )
@@ -71,9 +77,14 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args="\"'These,'\",""" r""" \"'words,'\",""" r""" \"'are,'\",""" r""" \"'in,'\",""" r""" \"'quotes.'\"" """
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s %s %s %s %s\n' """
+ r"""test_args="\"'These,'\","""
+ r""" \"'words,'\","""
+ r""" \"'are,'\","""
+ r""" \"'in,'\","""
+ r""" \"'quotes.'\"" """
+ )
@@ -91,9 +102,12 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n%s\n%s\n' """ r"""test_args='"\\\"1 visible slash\\\"",""" r""" "\\\\\"2 visible slashes\\\\\"",""" r""" "\\\\\\\"3 visible slashes\\\\\\\""'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n%s\n%s\n' """
+ r"""test_args='"\\\"1 visible slash\\\"","""
+ r""" "\\\\\"2 visible slashes\\\\\"","""
+ r""" "\\\\\\\"3 visible slashes\\\\\\\""'"""
+ )
@@ -112,9 +126,9 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n' """ r"""test_args='"$foo, &quot; `foo`;"'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n' """ r"""test_args='"$foo, &quot; `foo`;"'"""
+ )
@@ -148,9 +162,9 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" # Same thing again, but enclosed in visible quotes.
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;","""
+ ) # Same thing again, but enclosed in visible quotes.
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines/gyptest-defines.py
@@ -23,7 +23,12 @@
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n"""
+ expect_stderr = (
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the"""
+ """ compiler command line because many compilers do not support it.\n"""
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n"""
+ """Consider defining the macro in a (configured) header file.\n\n"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines/gyptest-define-override.py
@@ -16,7 +16,12 @@
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n"""
+ expect_stderr = (
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the"""
+ """ compiler command line because many compilers do not support it.\n"""
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n"""
+ """Consider defining the macro in a (configured) header file.\n\n"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/matplotlib:matplotlib/lib/matplotlib/tests/test_backend_template.py
@@ -26,9 +26,8 @@
- **kwargs,: FigureManagerTemplate(
- FigureCanvasTemplate(FigureClass(*args, **kwargs)), num
- )
+ **kwargs,
+ : FigureManagerTemplate(FigureCanvasTemplate(FigureClass(*args, **kwargs)), num)
Unstable formatting /home/konsti/ruff/target/checkouts/matplotlib:matplotlib/lib/matplotlib/colors.py
@@ -1820,7 +1820,8 @@
- base=10,: None,
+ base=10,
+ : None,
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/matplotlib:matplotlib/lib/matplotlib/tri/_triinterpolate.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Colon, None), offset: 62757, source_path: "<filename>" }
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/matplotlib:matplotlib/lib/matplotlib/figure.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, None), offset: 47562, source_path: "<filename>" }
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/matplotlib:matplotlib/lib/matplotlib/backends/backend_pdf.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Name { name: "astype" }, None), offset: 23183, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/syusuke9999:langchain-jp/tests/unit_tests/retrievers/test_zep.py
@@ -92,15 +92,12 @@
- document.page_content
- == search_results[i].message.get("content") # type: ignore
+ document.page_content == search_results[i].message.get("content") # type: ignore
- document.metadata.get("uuid")
- == search_results[i].message.get("uuid") # type: ignore
+ document.metadata.get("uuid") == search_results[i].message.get("uuid") # type: ignore
- document.metadata.get("role")
- == search_results[i].message.get("role") # type: ignore
+ document.metadata.get("role") == search_results[i].message.get("role") # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/klen:muffin-rest/muffin_rest/handler.py
@@ -283,8 +283,10 @@
- res = await self.dump(request, resource) if resource else self.dump(
- request, data=self.collection, many=True
+ res = (
+ await self.dump(request, resource)
+ if resource
+ else self.dump(request, data=self.collection, many=True)
Error reading /home/konsti/ruff/target/checkouts/oryon-dominik:dotfiles/scripts/python/cliTube.py: No such file or directory (os error 2)
Unstable formatting /home/konsti/ruff/target/checkouts/debian-calibre:calibre/src/calibre/utils/copy_files.py
@@ -242,7 +242,8 @@
- dest_path,: dest_path,
+ dest_path,
+ : dest_path,
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/mrcagney:gtfs_kit/gtfs_kit/routes.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, Some("name")), offset: 25727, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/matrix-org:synapse/tests/federation/test_federation_client.py
@@ -270,15 +270,16 @@
- self._mock_agent.request.side_effect = lambda: defer.succeed(
- FakeResponse.json(
- payload={
- "origin": "yet.another.server",
- "origin_server_ts": 900,
- # Mimic the other server returning our new `pulled_event`
- "pdus": [pulled_event.get_pdu_json()],
- }
- )
+ self._mock_agent.request.side_effect = (
+ lambda: defer.succeed(
+ FakeResponse.json(
+ payload={
+ "origin": "yet.another.server",
+ "origin_server_ts": 900,
+ "pdus": [pulled_event.get_pdu_json()],
+ }
+ )
+ )# Mimic the other server returning our new `pulled_event`
Unstable formatting /home/konsti/ruff/target/checkouts/squaresmile:fgo-game-data-api/app/db/helpers/fetch.py
@@ -225,7 +225,8 @@
-schema_map_fetch_one: dict[Type[BaseModelORJson], tuple[Table, ColumnElement]] = { # type:ignore
+schema_map_fetch_one: dict[Type[BaseModelORJson], tuple[Table, ColumnElement]] = {
+ # type:ignore
Unstable formatting /home/konsti/ruff/target/checkouts/atlas-bi:atlas-automation-hub/web/web/executors.py
@@ -123,10 +123,13 @@
- Task.query.filter_by(project_id=task.project_id).filter_by(
- enabled=1
- ).order_by(Task.order.asc(), Task.name.asc()).first() # type: ignore[union-attr]
- ).id == int(task_id):
+ (
+ Task.query.filter_by(project_id=task.project_id).filter_by(
+ enabled=1
+ ).order_by(Task.order.asc(), Task.name.asc()).first()
+ ).id # type: ignore[union-attr]
+ == int(task_id)
+ ):
@@ -180,22 +183,27 @@
- if Task.query.filter(
- or_( # type: ignore[type-var]
- and_(Task.project_id == task.project_id, Task.enabled == 1),
- Task.id == task_id,
- )
- ).order_by(
- Task.order.asc(),
- Task.name.asc(), # type: ignore[union-attr]
- ).first() is not None and (
+ if (
- ).order_by(Task.order.asc(), Task.name.asc()).first() # type: ignore[union-attr]
- ).id == int(task_id):
+ ).order_by(
+ Task.order.asc(),
+ Task.name.asc(), # type: ignore[union-attr]
+ ).first()
+ is not None
+ and (
+ Task.query.filter(
+ or_( # type: ignore[type-var]
+ and_(Task.project_id == task.project_id, Task.enabled == 1),
+ Task.id == task_id,
+ )
+ ).order_by(Task.order.asc(), Task.name.asc()).first()
+ ).id # type: ignore[union-attr]
+ == int(task_id)
+ ):
Unstable formatting /home/konsti/ruff/target/checkouts/cloud-custodian:cloud-custodian/tests/test_rds.py
@@ -1788,9 +1788,7 @@
- lambda: client.describe_db_instances(DBInstanceIdentifier=dbid)["DBInstances"][
- 0
- ] # NOQA
+ lambda: client.describe_db_instances(DBInstanceIdentifier=dbid)["DBInstances"][0] # NOQA
Unstable formatting /home/konsti/ruff/target/checkouts/hwchase17:langchain/tests/unit_tests/retrievers/test_zep.py
@@ -92,15 +92,12 @@
- document.page_content
- == search_results[i].message.get("content") # type: ignore
+ document.page_content == search_results[i].message.get("content") # type: ignore
- document.metadata.get("uuid")
- == search_results[i].message.get("uuid") # type: ignore
+ document.metadata.get("uuid") == search_results[i].message.get("uuid") # type: ignore
- document.metadata.get("role")
- == search_results[i].message.get("role") # type: ignore
+ document.metadata.get("role") == search_results[i].message.get("role") # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/angr:angr/angr/analyses/propagator/outdated_definition_walker.py
@@ -85,7 +85,8 @@
- and expr == self.avoid or expr.addr == self.avoid
+ and expr == self.avoid
+ or expr.addr == self.avoid
Unstable formatting /home/konsti/ruff/target/checkouts/angr:angr/angr/analyses/cfg/indirect_jump_resolvers/jumptable.py
@@ -2056,8 +2056,7 @@
- "%s "
- % stmt.__str__(arch=self.project.arch, tyenv=irsb.tyenv) # pylint:disable=unnecessary-dunder-call
+ "%s " % stmt.__str__(arch=self.project.arch, tyenv=irsb.tyenv) # pylint:disable=unnecessary-dunder-call
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/mrcagney:make_gtfs/make_gtfs/main.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, Some("name")), offset: 19433, source_path: "<filename>" }
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/mad-lab-fau:gaitmap-datasets/gaitmap_datasets/kluge_2017/helper.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, Some("name")), offset: 10425, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/opsi-org:python-opsi-common/tests/test_client_opsiservice.py
@@ -145,8 +145,7 @@
- ServiceClient("::1", ca_cert_file=Path("/x/cacert.pem"))._ca_cert_file
- == Path("/x/cacert.pem") # pylint: disable=protected-access
+ ServiceClient("::1", ca_cert_file=Path("/x/cacert.pem"))._ca_cert_file == Path("/x/cacert.pem") # pylint: disable=protected-access
Unstable formatting /home/konsti/ruff/target/checkouts/opsi-org:python-opsi-common/tests/test_system.py
@@ -51,11 +51,8 @@
- lambda: [
- psutil._common.suser(name="mockuser", terminal="tty3", host="", started=time.time(), pid=str(os.getpid()))
- ] # pylint: disable=protected-access
+ lambda: [psutil._common.suser(name="mockuser", terminal="tty3", host="", started=time.time(), pid=str(os.getpid()))], # pylint: disable=protected-access
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/opsi-org:python-opsi-common/opsicommon/package/legacy_control_file.py
@@ -318,8 +318,7 @@
- self._sections.get("package", [{}])[0].get("version")
- or product.get("packageversion") # type: ignore[union-attr]
+ self._sections.get("package", [{}])[0].get("version") or product.get("packageversion") # type: ignore[union-attr]
Unstable formatting /home/konsti/ruff/target/checkouts/sarthhh:anya/plugins/members.py
@@ -65,8 +65,7 @@
- guild.get_channel(channel.id)
- or await plugin.bot.rest.fetch_channel(channel.id) # type: ignore
+ guild.get_channel(channel.id) or await plugin.bot.rest.fetch_channel(channel.id) # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/sphinx-doc:sphinx/tests/test_intl.py
@@ -800,15 +800,25 @@
- expect1 = """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ expect1 = (
+ """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ )
- expect2 = """<p><span class="versionmodified added">New in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n"""
+ expect2 = (
+ """<p><span class="versionmodified added">New in version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n"""
+ )
- expect3 = """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n"""
+ expect3 = (
+ """<p><span class="versionmodified changed">Changed in version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n"""
+ )
@@ -1178,17 +1188,32 @@
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf">&lt;stdio.h&gt;</span>"""
+ expected_expr = (
+ """<span class="cp">#include</span>"""
+ """<span class="w"> </span>"""
+ """<span class="cpf">&lt;stdio.h&gt;</span>"""
+ )
- expected_expr = """<span class="n">literal</span>""" """<span class="o">-</span>""" """<span class="n">block</span>\n""" """<span class="k">in</span>""" """<span class="w"> </span>""" """<span class="n">list</span>"""
+ expected_expr = (
+ """<span class="n">literal</span>"""
+ """<span class="o">-</span>"""
+ """<span class="n">block</span>\n"""
+ """<span class="k">in</span>"""
+ """<span class="w"> </span>"""
+ """<span class="n">list</span>"""
+ )
- expected_expr = """<span class="gp">&gt;&gt;&gt; </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># sys importing</span>"""
+ expected_expr = (
+ """<span class="gp">&gt;&gt;&gt; </span>"""
+ """<span class="kn">import</span> <span class="nn">sys</span> """
+ """<span class="c1"># sys importing</span>"""
+ )
@@ -1247,17 +1272,32 @@
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf">&lt;STDIO.H&gt;</span>"""
+ expected_expr = (
+ """<span class="cp">#include</span>"""
+ """<span class="w"> </span>"""
+ """<span class="cpf">&lt;STDIO.H&gt;</span>"""
+ )
- expected_expr = """<span class="no">LITERAL</span>""" """<span class="o">-</span>""" """<span class="no">BLOCK</span>\n""" """<span class="no">IN</span>""" """<span class="w"> </span>""" """<span class="no">LIST</span>"""
+ expected_expr = (
+ """<span class="no">LITERAL</span>"""
+ """<span class="o">-</span>"""
+ """<span class="no">BLOCK</span>\n"""
+ """<span class="no">IN</span>"""
+ """<span class="w"> </span>"""
+ """<span class="no">LIST</span>"""
+ )
- expected_expr = """<span class="gp">&gt;&gt;&gt; </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># SYS IMPORTING</span>"""
+ expected_expr = (
+ """<span class="gp">&gt;&gt;&gt; </span>"""
+ """<span class="kn">import</span> <span class="nn">sys</span> """
+ """<span class="c1"># SYS IMPORTING</span>"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/sphinx-doc:sphinx/sphinx/config.py
@@ -517,9 +517,10 @@
- permitted = ", ".join(
- wrapped_annotations[ : -1]
- ) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ permitted = (
+ ", ".join(wrapped_annotations[ : -1])
+ + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/rotki:rotki/rotkehlchen/accounting/history_base_entries.py
@@ -165,9 +165,10 @@
- self.event_settings = self.evm_accounting_aggregators.get_accounting_settings( # Using | operator is fine since keys are unique
- self.pot
- ) | make_default_accounting_settings(self.pot)
+ self.event_settings = (
+ self.evm_accounting_aggregators.get_accounting_settings(self.pot) # Using | operator is fine since keys are unique
+ | make_default_accounting_settings(self.pot)
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/nrbnlulu:qtgql/tests/scripts/tests_server.py
@@ -25,8 +25,7 @@
- ) # noqa: S311
- ,
+ ), # noqa: S311
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/pip/pip/_vendor/rich/control.py
@@ -45,7 +45,8 @@
- ControlType.CURSOR_MOVE_TO_COLUMN: lambda param,: f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
+ ControlType.CURSOR_MOVE_TO_COLUMN: lambda param,
+ : f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/Jinja2/jinja2/debug.py
@@ -224,7 +224,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines-escaping/gyptest-defines-escaping.py
@@ -16,9 +16,10 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n' """ r"""test_args='"Simple test of %s with a literal"'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n' """
+ r"""test_args='"Simple test of %s with a literal"'"""
+ )
@@ -52,9 +53,14 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args='"\"These,\"",""" r""" "\"words,\"",""" r""" "\"are,\"",""" r""" "\"in,\"",""" r""" "\"quotes.\""'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s %s %s %s %s\n' """
+ r"""test_args='"\"These,\"","""
+ r""" "\"words,\"","""
+ r""" "\"are,\"","""
+ r""" "\"in,\"","""
+ r""" "\"quotes.\""'"""
+ )
@@ -71,9 +77,14 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args="\"'These,'\",""" r""" \"'words,'\",""" r""" \"'are,'\",""" r""" \"'in,'\",""" r""" \"'quotes.'\"" """
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s %s %s %s %s\n' """
+ r"""test_args="\"'These,'\","""
+ r""" \"'words,'\","""
+ r""" \"'are,'\","""
+ r""" \"'in,'\","""
+ r""" \"'quotes.'\"" """
+ )
@@ -91,9 +102,12 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n%s\n%s\n' """ r"""test_args='"\\\"1 visible slash\\\"",""" r""" "\\\\\"2 visible slashes\\\\\"",""" r""" "\\\\\\\"3 visible slashes\\\\\\\""'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n%s\n%s\n' """
+ r"""test_args='"\\\"1 visible slash\\\"","""
+ r""" "\\\\\"2 visible slashes\\\\\"","""
+ r""" "\\\\\\\"3 visible slashes\\\\\\\""'"""
+ )
@@ -112,9 +126,9 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n' """ r"""test_args='"$foo, &quot; `foo`;"'"""
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n' """ r"""test_args='"$foo, &quot; `foo`;"'"""
+ )
@@ -148,9 +162,9 @@
- os.environ[
- "GYP_DEFINES"
- ] = r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" # Same thing again, but enclosed in visible quotes.
+ os.environ["GYP_DEFINES"] = (
+ r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;","""
+ ) # Same thing again, but enclosed in visible quotes.
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines/gyptest-defines.py
@@ -23,7 +23,12 @@
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n"""
+ expect_stderr = (
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the"""
+ """ compiler command line because many compilers do not support it.\n"""
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n"""
+ """Consider defining the macro in a (configured) header file.\n\n"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines/gyptest-define-override.py
@@ -16,7 +16,12 @@
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n"""
+ expect_stderr = (
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the"""
+ """ compiler command line because many compilers do not support it.\n"""
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n"""
+ """Consider defining the macro in a (configured) header file.\n\n"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/TheAlgorithms:Python/ciphers/affine_cipher.py
@@ -3,7 +3,10 @@
-SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`""" r"""abcdefghijklmnopqrstuvwxyz{|}~"""
+SYMBOLS = (
+ r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"""
+ r"""abcdefghijklmnopqrstuvwxyz{|}~"""
+)
Unstable formatting /home/konsti/ruff/target/checkouts/great-expectations:great_expectations/tests/datasource/batch_kwarg_generator/test_subdir_reader_generator.py
@@ -140,8 +140,7 @@
- kwargs["path"]
- == os.path.join(base_directory, "20190101__asset_1.csv") # noqa: PTH118
+ kwargs["path"] == os.path.join(base_directory, "20190101__asset_1.csv") # noqa: PTH118
@@ -149,8 +148,7 @@
- kwargs["path"]
- == os.path.join(base_directory, "20190101__asset_1.csv") # noqa: PTH118
+ kwargs["path"] == os.path.join(base_directory, "20190101__asset_1.csv") # noqa: PTH118
Unstable formatting /home/konsti/ruff/target/checkouts/great-expectations:great_expectations/great_expectations/rule_based_profiler/domain_builder/column_domain_builder.py
@@ -372,7 +372,8 @@
- lambda candidate_column_name,: self.semantic_type_filter.table_column_name_to_inferred_semantic_domain_type_map[ # type: ignore[union-attr,arg-type]
+ lambda candidate_column_name,
+ : self.semantic_type_filter.table_column_name_to_inferred_semantic_domain_type_map[ # type: ignore[union-attr,arg-type]
@@ -395,7 +396,8 @@
- lambda candidate_column_name,: self.semantic_type_filter.table_column_name_to_inferred_semantic_domain_type_map[ # type: ignore[union-attr,arg-type] # lambda missing type details
+ lambda candidate_column_name,
+ : self.semantic_type_filter.table_column_name_to_inferred_semantic_domain_type_map[ # type: ignore[union-attr,arg-type] # lambda missing type details
Unstable formatting /home/konsti/ruff/target/checkouts/great-expectations:great_expectations/great_expectations/data_context/store/tuple_store_backend.py
@@ -173,7 +173,8 @@
- r=iter(tuple_index_list),: next(r), # noqa: B008 # function-call-in-default-argument
+ r=iter(tuple_index_list),
+ : next(r), # noqa: B008 # function-call-in-default-argument
Unstable formatting /home/konsti/ruff/target/checkouts/great-expectations:great_expectations/great_expectations/datasource/data_connector/file_path_data_connector.py
@@ -70,15 +70,13 @@
- ): lambda template_arguments,: AzureUrl.AZURE_BLOB_STORAGE_HTTPS_URL_TEMPLATE.format(
- **template_arguments
- ),
+ ): lambda template_arguments,
+ : AzureUrl.AZURE_BLOB_STORAGE_HTTPS_URL_TEMPLATE.format(**template_arguments),
- ): lambda template_arguments,: AzureUrl.AZURE_BLOB_STORAGE_WASBS_URL_TEMPLATE.format(
- **template_arguments
- ),
+ ): lambda template_arguments,
+ : AzureUrl.AZURE_BLOB_STORAGE_WASBS_URL_TEMPLATE.format(**template_arguments),
Unstable formatting /home/konsti/ruff/target/checkouts/apache:airflow/airflow/providers/microsoft/azure/operators/data_factory.py
@@ -61,8 +61,7 @@
- operator.resource_group_name
- or get_field(extras, "resource_group_name") # type: ignore
+ operator.resource_group_name or get_field(extras, "resource_group_name") # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/willkg:socorro-siggen/siggen/siglists_utils.py
@@ -17,7 +17,8 @@
- lambda x,: "CrashReporter::CreatePairedMinidumps(void*, unsigned long, nsAString_internal*, nsILocalFile**, nsILocalFile**)"
+ lambda x,
+ : "CrashReporter::CreatePairedMinidumps(void*, unsigned long, nsAString_internal*, nsILocalFile**, nsILocalFile**)"
Unstable formatting /home/konsti/ruff/target/checkouts/a0x8o:airflow/airflow/providers/microsoft/azure/operators/data_factory.py
@@ -61,8 +61,7 @@
- operator.resource_group_name
- or get_field(extras, "resource_group_name") # type: ignore
+ operator.resource_group_name or get_field(extras, "resource_group_name") # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/bomzheg:Shvatka/shvatka/tgbot/views/results/scenario.py
@@ -99,8 +99,8 @@
- text = (
- f"NOT_YET_IMPLEMENTED_ExprJoinedStr" + "\n🔑 ".join(self.level.scenario.keys)
+ text = f"NOT_YET_IMPLEMENTED_ExprJoinedStr" + "\n🔑 ".join(
+ self.level.scenario.keys
Unstable formatting /home/konsti/ruff/target/checkouts/WeblateOrg:weblate/weblate/trans/views/edit.py
@@ -694,10 +694,9 @@
- )# '1' as a placeholder, because `get_repoweb_link` can't currently
+ ), # '1' as a placeholder, because `get_repoweb_link` can't currently
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/nocproject:noc/core/timepattern.py
@@ -29,7 +29,8 @@
- to_month,: "('%s%s' <= ('%%02d%%02d' %% (T.month, T.day)) <= '%s%s')"
+ to_month,
+ : "('%s%s' <= ('%%02d%%02d' %% (T.month, T.day)) <= '%s%s')"
@@ -44,7 +45,8 @@
- to_year,: "('%s%s%s' <= ('%%04d%%02d%%02d' %% (T.year, T.month, T.day)) <= '%s%s%s')"
+ to_year,
+ : "('%s%s%s' <= ('%%04d%%02d%%02d' %% (T.year, T.month, T.day)) <= '%s%s%s')"
Unstable formatting /home/konsti/ruff/target/checkouts/libratbag:piper/piper/ratbagd.py
@@ -1011,7 +1011,8 @@
- RatbagdButton.Macro.KEY_RELEASE: lambda key,: f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
+ RatbagdButton.Macro.KEY_RELEASE: lambda key,
+ : f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
Unstable formatting /home/konsti/ruff/target/checkouts/hasgeek:funnel/tests/unit/models/project_crew_membership_test.py
@@ -14,8 +14,7 @@
- "editor"
- not in new_project.roles_for(new_user_owner)._contents() # pylint: disable=protected-access
+ "editor" not in new_project.roles_for(new_user_owner)._contents() # pylint: disable=protected-access
Unstable formatting /home/konsti/ruff/target/checkouts/hasgeek:funnel/funnel/forms/helpers.py
@@ -216,10 +216,7 @@
- allowed_domains=lambda: app.config.get(
- "IMAGE_URL_DOMAINS"
- ) # type: ignore[arg-type, return-value]
- ,
+ allowed_domains=lambda: app.config.get("IMAGE_URL_DOMAINS"), # type: ignore[arg-type, return-value]
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/helpers/dispatcher.py
@@ -70,11 +70,11 @@
- # Functions wrapped in partial do not have a __name__
- ),
+ )# Functions wrapped in partial do not have a __name__
+ ,
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/util/dt.py
@@ -329,8 +329,9 @@
- - # type: ignore[operator]
- dattim - delta.utcoffset()
+ - # type: ignore[operator]
+ dattim
+ - delta.utcoffset()
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/bootstrap.py
@@ -391,9 +391,11 @@
- sys.excepthook = lambda: logging.getLogger(None).exception(
- "Uncaught exception",
- exc_info=args, # type: ignore[arg-type]
+ sys.excepthook = (
+ lambda: logging.getLogger(None).exception(
+ "Uncaught exception",
+ exc_info=args,
+ ) # type: ignore[arg-type]
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/vicare/sensor.py
@@ -232,7 +232,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -240,7 +241,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -248,7 +250,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -256,7 +259,8 @@
- value_getter=lambda api,: api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getGasSummaryConsumptionDomesticHotWaterLastSevenDays(),
@@ -296,7 +300,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentDay(),
@@ -304,7 +309,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(),
@@ -312,7 +318,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterCurrentYear(),
@@ -320,7 +327,8 @@
- value_getter=lambda api,: api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
+ value_getter=lambda api,
+ : api.getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(),
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/assist_pipeline/select.py
@@ -73,9 +73,7 @@
- lambda: pipeline_data.pipeline_devices.discard(
- device_id
- ) # type: ignore[arg-type]
+ lambda: pipeline_data.pipeline_devices.discard(device_id) # type: ignore[arg-type]
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/tests/components/logbook/test_init.py
@@ -485,9 +485,8 @@
- async_describe_event,: async_describe_event(
- "test_domain", "some_event", _describe
- )
+ async_describe_event,
+ : async_describe_event("test_domain", "some_event", _describe)
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/tests/components/hddtemp/test_sensor.py
@@ -168,9 +168,10 @@
- assert state.attributes.get(
- "friendly_name"
- ) == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ assert (
+ state.attributes.get("friendly_name")
+ == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/bmw_connected_drive/switch.py
@@ -55,7 +55,8 @@
- remote_service_off=lambda v,: v.remote_services.trigger_remote_air_conditioning_stop(),
+ remote_service_off=lambda v,
+ : v.remote_services.trigger_remote_air_conditioning_stop(),
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/bmw_connected_drive/button.py
@@ -39,7 +39,8 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_light_flash(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_light_flash(),
@@ -51,13 +52,15 @@
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_air_conditioning(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_air_conditioning(),
- remote_function=lambda vehicle,: vehicle.remote_services.trigger_remote_vehicle_finder(),
+ remote_function=lambda vehicle,
+ : vehicle.remote_services.trigger_remote_vehicle_finder(),
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/recorder/statistics.py
@@ -1833,7 +1833,7 @@
- )# https://github.com/sqlalchemy/sqlalchemy/issues/9189
+ ) # https://github.com/sqlalchemy/sqlalchemy/issues/9189
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/roborock/switch.py
@@ -107,7 +107,8 @@
- get_value=lambda data,: data.coordinator.roborock_device_info.props.dnd_timer.enabled,
+ get_value=lambda data,
+ : data.coordinator.roborock_device_info.props.dnd_timer.enabled,
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/mqtt/binary_sensor.py
@@ -286,5 +286,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/mqtt/sensor.py
@@ -322,5 +322,6 @@
- and self._expire_after is None or not self._expired
+ and self._expire_after is None
+ or not self._expired
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/homekit/type_fans.py
@@ -120,7 +120,8 @@
- preset_mode=preset_mode,: self.set_preset_mode(value, preset_mode),
+ preset_mode=preset_mode,
+ : self.set_preset_mode(value, preset_mode),
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/evohome/__init__.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(ColonEqual, None), offset: 3717, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/home-assistant:core/homeassistant/components/shelly/button.py
@@ -58,7 +58,8 @@
- press_action=lambda coordinator,: coordinator.device.trigger_shelly_gas_self_test(),
+ press_action=lambda coordinator,
+ : coordinator.device.trigger_shelly_gas_self_test(),
Unstable formatting /home/konsti/ruff/target/checkouts/onnx:onnx/onnx/helper.py
@@ -673,13 +673,15 @@
- TensorProto.FLOAT8E4M3FNUZ: lambda: float32_to_float8e4m3( # type: ignore[misc]
+ TensorProto.FLOAT8E4M3FNUZ: lambda: float32_to_float8e4m3(
- ),
+ ) # type: ignore[misc]
+ ,
- TensorProto.FLOAT8E5M2FNUZ: lambda: float32_to_float8e5m2( # type: ignore[misc]
+ TensorProto.FLOAT8E5M2FNUZ: lambda: float32_to_float8e5m2(
- ),
+ ) # type: ignore[misc]
+ ,
Unstable formatting /home/konsti/ruff/target/checkouts/onnx:onnx/onnx/reference/op_run.py
@@ -283,9 +283,8 @@
- attributes=None,: OpRun._evaluate_subgraph(
- context, value, attributes
- ),
+ attributes=None,
+ : OpRun._evaluate_subgraph(context, value, attributes),
Unstable formatting /home/konsti/ruff/target/checkouts/pylint-dev:astroid/astroid/brain/brain_numpy_core_umath.py
@@ -13,7 +13,10 @@
- ufunc_optional_keyword_arguments = """out=None, where=True, casting='same_kind', order='K', """ """dtype=None, subok=True"""
+ ufunc_optional_keyword_arguments = (
+ """out=None, where=True, casting='same_kind', order='K', """
+ """dtype=None, subok=True"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/bokeh:bokeh/tests/unit/bokeh/util/test_strings.py
@@ -85,9 +85,10 @@
- assert bus.format_url_query_arguments(
- "url", dict(foo=value)
- ) == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ assert (
+ bus.format_url_query_arguments("url", dict(foo=value))
+ == f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/jaymegordo:jambot/jambot/signals.py
@@ -578,7 +578,8 @@
- n_periods=n_periods,: self.make_slope(
+ n_periods=n_periods,
+ : self.make_slope(
@@ -613,7 +614,8 @@
- n_periods=n_periods,: x[c].rolling(n_periods).sum().astype(np.float32)
+ n_periods=n_periods,
+ : x[c].rolling(n_periods).sum().astype(np.float32)
Unstable formatting /home/konsti/ruff/target/checkouts/worldr:setupr/setupr/utils.py
@@ -50,9 +50,10 @@
- return ", ".join(
- str(obj) for obj in obj_list[ : size - 1]
- ) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ return (
+ ", ".join(str(obj) for obj in obj_list[ : size - 1])
+ + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/OpenBB-finance:OpenBBTerminal/openbb_terminal/stocks/options/tradier_model.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, None), offset: 10934, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/microsoft:onnx-script/tools/diagnostics/gen_diagnostics.py
@@ -177,8 +177,7 @@
- } # Don't ignore empty line
- ,
+ }, # Don't ignore empty line
Unstable formatting /home/konsti/ruff/target/checkouts/Blue-Yonder-OSS:cyclic-boosting/cyclic_boosting/common_smoothers.py
@@ -77,8 +77,7 @@
- flags.IS_SEASONAL: # the seasonal smoother does not work with offset_tozero
- # when the normalization is done within the smoother
+ flags.IS_SEASONAL: # when the normalization is done within the smoother # the seasonal smoother does not work with offset_tozero
Unstable formatting /home/konsti/ruff/target/checkouts/Checkmk:checkmk/cmk/gui/userdb/ldap_connector.py
@@ -1715,7 +1715,8 @@
- user,: ldap_sync_simple(
+ user,
+ : ldap_sync_simple(
Unstable formatting /home/konsti/ruff/target/checkouts/Checkmk:checkmk/cmk/gui/plugins/config/base.py
@@ -179,7 +179,7 @@
- ]# ( None, "ok.wav" ),
+ ] # ( None, "ok.wav" ),
Unstable formatting /home/konsti/ruff/target/checkouts/Checkmk:checkmk/cmk/gui/pdf.py
@@ -227,8 +227,7 @@
- "inline; filename="
- + ensure_str(sendas) # pylint: disable= six-ensure-str-bin-call
+ "inline; filename=" + ensure_str(sendas) # pylint: disable= six-ensure-str-bin-call
Unstable formatting /home/konsti/ruff/target/checkouts/Checkmk:checkmk/agents/plugins/mk_tinkerforge.py
@@ -368,7 +368,8 @@
- enumeration_type,: enumerate_callback(
+ enumeration_type,
+ : enumerate_callback(
Unstable formatting /home/konsti/ruff/target/checkouts/Chr0nos:motorized/motorized/utils.py
@@ -188,7 +188,8 @@
- _,: data,
+ _,
+ : data,
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla-services:socorro/socorro/signature/siglists_utils.py
@@ -17,7 +17,8 @@
- lambda x,: "CrashReporter::CreatePairedMinidumps(void*, unsigned long, nsAString_internal*, nsILocalFile**, nsILocalFile**)"
+ lambda x,
+ : "CrashReporter::CreatePairedMinidumps(void*, unsigned long, nsAString_internal*, nsILocalFile**, nsILocalFile**)"
Unstable formatting /home/konsti/ruff/target/checkouts/fuzzylite:pyfuzzylite/fuzzylite/term.py
@@ -420,7 +420,8 @@
- * 1.0 / (1.0 + (fabs((x - self.center) / self.width) ** (2.0 * self.slope)))
+ * 1.0
+ / (1.0 + (fabs((x - self.center) / self.width) ** (2.0 * self.slope)))
Unstable formatting /home/konsti/ruff/target/checkouts/alcides:GeneticEngine/examples/synthetic_grammar_example.py
@@ -76,17 +76,20 @@
- ind,: recursive_non_terminals_count,
+ ind,
+ : recursive_non_terminals_count,
- ind,: fixed_productions_per_non_terminal,
+ ind,
+ : fixed_productions_per_non_terminal,
- ind,: fixed_non_terminals_per_production,
+ ind,
+ : fixed_non_terminals_per_production,
Unstable formatting /home/konsti/ruff/target/checkouts/theRealProHacker:Positron/src/positron/utils/aio.py
@@ -66,9 +66,11 @@
- return await callback(*_args, **kwargs) if inspect.iscoroutinefunction(
- callback
- ) else asyncio.to_thread(callback, *_args, **kwargs)
+ return (
+ await callback(*_args, **kwargs)
+ if inspect.iscoroutinefunction(callback)
+ else asyncio.to_thread(callback, *_args, **kwargs)
+ )
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/dm4ml:gate/gate/drift.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Newline, Some("name")), offset: 14981, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/charmoniumQ:charmonium.freeze/charmonium/freeze/config.py
@@ -65,7 +65,7 @@
- }# tempdir caches the name of the temporary directory on this platorm.
+ } # tempdir caches the name of the temporary directory on this platorm.
@@ -79,7 +79,7 @@
- }# Special case for functools.single_dispatch: We need to ignore the
+ } # Special case for functools.single_dispatch: We need to ignore the
@@ -90,7 +90,7 @@
- }# add the stdlib
+ } # add the stdlib
@@ -146,7 +146,7 @@
- }# see https://github.com/python/cpython/issues/92049
+ } # see https://github.com/python/cpython/issues/92049
@@ -178,7 +178,7 @@
- }# TODO: [research] See if we can reduce these
+ } # TODO: [research] See if we can reduce these
@@ -216,7 +216,7 @@
- }# Some scripts are designed to be either executed or imported.
+ } # Some scripts are designed to be either executed or imported.
Unstable formatting /home/konsti/ruff/target/checkouts/pandabuilder:pandachaika/viewer/management/commands/remotesite.py
@@ -198,7 +198,8 @@
- args=self.print_method,: self.print_progress(data, args),
+ args=self.print_method,
+ : self.print_progress(data, args),
Unstable formatting /home/konsti/ruff/target/checkouts/DisnakeDev:disnake/disnake/reaction.py
@@ -66,8 +66,7 @@
- emoji
- or message._state._get_emoji_from_data(data["emoji"]) # type: ignore
+ emoji or message._state._get_emoji_from_data(data["emoji"]) # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/django-cms:django-cms/cms/tests/test_templatetags.py
@@ -91,7 +91,10 @@
- template = """{% load cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ """type="text/javascript"></script>"""
+ template = (
+ """{% load cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """
+ """type="text/javascript"></script>"""
+ )
@@ -107,7 +110,10 @@
- template = """{% load static cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ """type="text/javascript"></script>"""
+ template = (
+ """{% load static cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """
+ """type="text/javascript"></script>"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/Gobot1234:steam.py/steam/ext/commands/help.py
@@ -54,8 +54,8 @@
- return await self.send_group_help(command) if isinstance(command, Group) else self.send_command_help(
- command
+ return (
+ await self.send_group_help(command) if isinstance(command, Group) else self.send_command_help(command)
Unstable formatting /home/konsti/ruff/target/checkouts/savannahghi:idr-client/app/lib/retry/retry.py
@@ -271,11 +271,13 @@
- self._initial_delay = self._initial_delay or retry_config.get( # type: ignore
- "default_initial_delay", DEFAULT_INITIAL_DELAY
+ self._initial_delay = (
+ self._initial_delay
+ or retry_config.get("default_initial_delay", DEFAULT_INITIAL_DELAY) # type: ignore
- self._maximum_delay: float = self._maximum_delay or retry_config.get( # type: ignore
- "default_maximum_delay", DEFAULT_MAXIMUM_DELAY
+ self._maximum_delay: float = (
+ self._maximum_delay
+ or retry_config.get("default_maximum_delay", DEFAULT_MAXIMUM_DELAY) # type: ignore
Unstable formatting /home/konsti/ruff/target/checkouts/astropy:astropy/astropy/io/fits/convenience.py
@@ -597,7 +597,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/Mojino01:hugging_face/src/transformers/generation/flax_logits_process.py
@@ -343,9 +343,8 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/Mojino01:hugging_face/src/transformers/generation/tf_logits_process.py
@@ -570,8 +570,7 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/sailfishos-mirror:sphinx/tests/test_intl.py
@@ -800,15 +800,25 @@
- expect1 = """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ expect1 = (
+ """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n"""
+ )
- expect2 = """<p><span class="versionmodified added">New in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n"""
+ expect2 = (
+ """<p><span class="versionmodified added">New in version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n"""
+ )
- expect3 = """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n"""
+ expect3 = (
+ """<p><span class="versionmodified changed">Changed in version 1.0: </span>"""
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n"""
+ )
@@ -1178,17 +1188,32 @@
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf">&lt;stdio.h&gt;</span>"""
+ expected_expr = (
+ """<span class="cp">#include</span>"""
+ """<span class="w"> </span>"""
+ """<span class="cpf">&lt;stdio.h&gt;</span>"""
+ )
- expected_expr = """<span class="n">literal</span>""" """<span class="o">-</span>""" """<span class="n">block</span>\n""" """<span class="k">in</span>""" """<span class="w"> </span>""" """<span class="n">list</span>"""
+ expected_expr = (
+ """<span class="n">literal</span>"""
+ """<span class="o">-</span>"""
+ """<span class="n">block</span>\n"""
+ """<span class="k">in</span>"""
+ """<span class="w"> </span>"""
+ """<span class="n">list</span>"""
+ )
- expected_expr = """<span class="gp">&gt;&gt;&gt; </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># sys importing</span>"""
+ expected_expr = (
+ """<span class="gp">&gt;&gt;&gt; </span>"""
+ """<span class="kn">import</span> <span class="nn">sys</span> """
+ """<span class="c1"># sys importing</span>"""
+ )
@@ -1247,17 +1272,32 @@
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf">&lt;STDIO.H&gt;</span>"""
+ expected_expr = (
+ """<span class="cp">#include</span>"""
+ """<span class="w"> </span>"""
+ """<span class="cpf">&lt;STDIO.H&gt;</span>"""
+ )
- expected_expr = """<span class="no">LITERAL</span>""" """<span class="o">-</span>""" """<span class="no">BLOCK</span>\n""" """<span class="no">IN</span>""" """<span class="w"> </span>""" """<span class="no">LIST</span>"""
+ expected_expr = (
+ """<span class="no">LITERAL</span>"""
+ """<span class="o">-</span>"""
+ """<span class="no">BLOCK</span>\n"""
+ """<span class="no">IN</span>"""
+ """<span class="w"> </span>"""
+ """<span class="no">LIST</span>"""
+ )
- expected_expr = """<span class="gp">&gt;&gt;&gt; </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># SYS IMPORTING</span>"""
+ expected_expr = (
+ """<span class="gp">&gt;&gt;&gt; </span>"""
+ """<span class="kn">import</span> <span class="nn">sys</span> """
+ """<span class="c1"># SYS IMPORTING</span>"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/sailfishos-mirror:sphinx/sphinx/config.py
@@ -517,9 +517,10 @@
- permitted = ", ".join(
- wrapped_annotations[ : -1]
- ) + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ permitted = (
+ ", ".join(wrapped_annotations[ : -1])
+ + f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/tribe29:checkmk/cmk/gui/plugins/config/base.py
@@ -179,7 +179,7 @@
- ]# ( None, "ok.wav" ),
+ ] # ( None, "ok.wav" ),
Unstable formatting /home/konsti/ruff/target/checkouts/tribe29:checkmk/cmk/gui/userdb/ldap_connector.py
@@ -1715,7 +1715,8 @@
- user,: ldap_sync_simple(
+ user,
+ : ldap_sync_simple(
Unstable formatting /home/konsti/ruff/target/checkouts/tribe29:checkmk/cmk/gui/pdf.py
@@ -227,8 +227,7 @@
- "inline; filename="
- + ensure_str(sendas) # pylint: disable= six-ensure-str-bin-call
+ "inline; filename=" + ensure_str(sendas) # pylint: disable= six-ensure-str-bin-call
Unstable formatting /home/konsti/ruff/target/checkouts/tribe29:checkmk/agents/plugins/mk_tinkerforge.py
@@ -368,7 +368,8 @@
- enumeration_type,: enumerate_callback(
+ enumeration_type,
+ : enumerate_callback(
Unstable formatting /home/konsti/ruff/target/checkouts/mitmproxy:pdoc/test/test_doc_types.py
@@ -30,7 +30,8 @@
- lambda _,: "import typing\nif typing.TYPE_CHECKING:\n\tFooFn = typing.Callable[[],int]",
+ lambda _,
+ : "import typing\nif typing.TYPE_CHECKING:\n\tFooFn = typing.Callable[[],int]",
Unstable formatting /home/konsti/ruff/target/checkouts/mitodl:ol-infrastructure/src/ol_infrastructure/applications/airbyte/__main__.py
@@ -448,9 +448,8 @@
- lambda db,: "jdbc:postgresql://{address}:{port}/{name}?ssl=true&sslmode=require".format( # noqa: E501
- **db
- )
+ lambda db,
+ : "jdbc:postgresql://{address}:{port}/{name}?ssl=true&sslmode=require".format(**db) # noqa: E501
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/pandas-dev:pandas/pandas/tests/indexing/multiindex/test_slice.py: source contains syntax errors (parser error): BaseError { error: UnrecognizedToken(Colon, None), offset: 10508, source_path: "<filename>" }
Unstable formatting /home/konsti/ruff/target/checkouts/pandas-dev:pandas/pandas/tests/io/parser/test_c_parser_only.py
@@ -355,7 +355,37 @@
- record_ = """9999-9,99:99,,,,ZZ,ZZ,,,ZZZ-ZZZZ,.Z-ZZZZ,-9.99,,,9.99,Z""" """ZZZZ,,-99,9,ZZZ-ZZZZ,ZZ-ZZZZ,,9.99,ZZZ-ZZZZZ,ZZZ-ZZZZZ,""" """ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,9""" """99,ZZZ-ZZZZ,,ZZ-ZZZZ,,,,,ZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,,,9,9,""" """9,9,99,99,999,999,ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,9,ZZ-ZZZZ,9.""" """99,ZZ-ZZZZ,ZZ-ZZZZ,,,,ZZZZ,,,ZZ,ZZ,,,,,,,,,,,,,9,,,999.""" """99,999.99,,,ZZZZZ,,,Z9,,,,,,,ZZZ,ZZZ,,,,,,,,,,,ZZZZZ,ZZ""" """ZZZ,ZZZ-ZZZZZZ,ZZZ-ZZZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZ""" """ZZ,,,999999,999999,ZZZ,ZZZ,,,ZZZ,ZZZ,999.99,999.99,,,,Z""" """ZZ-ZZZ,ZZZ-ZZZ,-9.99,-9.99,9,9,,99,,9.99,9.99,9,9,9.99,""" """9.99,,,,9.99,9.99,,99,,99,9.99,9.99,,,ZZZ,ZZZ,,999.99,,""" """999.99,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,ZZZZZ,ZZZZZ,ZZZ,ZZZ,9,9,""" """,,,,,ZZZ-ZZZZ,ZZZ999Z,,,999.99,,999.99,ZZZ-ZZZZ,,,9.999""" """,9.999,9.999,9.999,-9.999,-9.999,-9.999,-9.999,9.999,9.""" """999,9.999,9.999,9.999,9.999,9.999,9.999,99999,ZZZ-ZZZZ,""" """,9.99,ZZZ,,,,,,,,ZZZ,,,,,9,,,,9,,,,,,,,,,ZZZ-ZZZZ,ZZZ-Z""" """ZZZ,,ZZZZZ,ZZZZZ,ZZZZZ,ZZZZZ,,,9.99,,ZZ-ZZZZ,ZZ-ZZZZ,ZZ""" """,999,,,,ZZ-ZZZZ,ZZZ,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,99.99,99.99""" """,,,9.99,9.99,9.99,9.99,ZZZ-ZZZZ,,,ZZZ-ZZZZZ,,,,,-9.99,-""" """9.99,-9.99,-9.99,,,,,,,,,ZZZ-ZZZZ,,9,9.99,9.99,99ZZ,,-9""" """.99,-9.99,ZZZ-ZZZZ,,,,,,,ZZZ-ZZZZ,9.99,9.99,9999,,,,,,,""" """,,,-9.9,Z/Z-ZZZZ,999.99,9.99,,999.99,ZZ-ZZZZ,ZZ-ZZZZ,9.""" """99,9.99,9.99,9.99,9.99,9.99,,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZ""" """ZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ,ZZZ,ZZZ,ZZZ,9.99,,,-9.99,ZZ""" """-ZZZZ,-999.99,,-9999,,999.99,,,,999.99,99.99,,,ZZ-ZZZZZ""" """ZZZ,ZZ-ZZZZ-ZZZZZZZ,,,,ZZ-ZZ-ZZZZZZZZ,ZZZZZZZZ,ZZZ-ZZZZ""" """,9999,999.99,ZZZ-ZZZZ,-9.99,-9.99,ZZZ-ZZZZ,99:99:99,,99""" """,99,,9.99,,-99.99,,,,,,9.99,ZZZ-ZZZZ,-9.99,-9.99,9.99,9""" """.99,,ZZZ,,,,,,,ZZZ,ZZZ,,,,,"""
+ record_ = (
+ """9999-9,99:99,,,,ZZ,ZZ,,,ZZZ-ZZZZ,.Z-ZZZZ,-9.99,,,9.99,Z"""
+ """ZZZZ,,-99,9,ZZZ-ZZZZ,ZZ-ZZZZ,,9.99,ZZZ-ZZZZZ,ZZZ-ZZZZZ,"""
+ """ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,9"""
+ """99,ZZZ-ZZZZ,,ZZ-ZZZZ,,,,,ZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,,,9,9,"""
+ """9,9,99,99,999,999,ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,9,ZZ-ZZZZ,9."""
+ """99,ZZ-ZZZZ,ZZ-ZZZZ,,,,ZZZZ,,,ZZ,ZZ,,,,,,,,,,,,,9,,,999."""
+ """99,999.99,,,ZZZZZ,,,Z9,,,,,,,ZZZ,ZZZ,,,,,,,,,,,ZZZZZ,ZZ"""
+ """ZZZ,ZZZ-ZZZZZZ,ZZZ-ZZZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZ"""
+ """ZZ,,,999999,999999,ZZZ,ZZZ,,,ZZZ,ZZZ,999.99,999.99,,,,Z"""
+ """ZZ-ZZZ,ZZZ-ZZZ,-9.99,-9.99,9,9,,99,,9.99,9.99,9,9,9.99,"""
+ """9.99,,,,9.99,9.99,,99,,99,9.99,9.99,,,ZZZ,ZZZ,,999.99,,"""
+ """999.99,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,ZZZZZ,ZZZZZ,ZZZ,ZZZ,9,9,"""
+ """,,,,,ZZZ-ZZZZ,ZZZ999Z,,,999.99,,999.99,ZZZ-ZZZZ,,,9.999"""
+ """,9.999,9.999,9.999,-9.999,-9.999,-9.999,-9.999,9.999,9."""
+ """999,9.999,9.999,9.999,9.999,9.999,9.999,99999,ZZZ-ZZZZ,"""
+ """,9.99,ZZZ,,,,,,,,ZZZ,,,,,9,,,,9,,,,,,,,,,ZZZ-ZZZZ,ZZZ-Z"""
+ """ZZZ,,ZZZZZ,ZZZZZ,ZZZZZ,ZZZZZ,,,9.99,,ZZ-ZZZZ,ZZ-ZZZZ,ZZ"""
+ """,999,,,,ZZ-ZZZZ,ZZZ,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,99.99,99.99"""
+ """,,,9.99,9.99,9.99,9.99,ZZZ-ZZZZ,,,ZZZ-ZZZZZ,,,,,-9.99,-"""
+ """9.99,-9.99,-9.99,,,,,,,,,ZZZ-ZZZZ,,9,9.99,9.99,99ZZ,,-9"""
+ """.99,-9.99,ZZZ-ZZZZ,,,,,,,ZZZ-ZZZZ,9.99,9.99,9999,,,,,,,"""
+ """,,,-9.9,Z/Z-ZZZZ,999.99,9.99,,999.99,ZZ-ZZZZ,ZZ-ZZZZ,9."""
+ """99,9.99,9.99,9.99,9.99,9.99,,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZ"""
+ """ZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ,ZZZ,ZZZ,ZZZ,9.99,,,-9.99,ZZ"""
+ """-ZZZZ,-999.99,,-9999,,999.99,,,,999.99,99.99,,,ZZ-ZZZZZ"""
+ """ZZZ,ZZ-ZZZZ-ZZZZZZZ,,,,ZZ-ZZ-ZZZZZZZZ,ZZZZZZZZ,ZZZ-ZZZZ"""
+ """,9999,999.99,ZZZ-ZZZZ,-9.99,-9.99,ZZZ-ZZZZ,99:99:99,,99"""
+ """,99,,9.99,,-99.99,,,,,,9.99,ZZZ-ZZZZ,-9.99,-9.99,9.99,9"""
+ """.99,,ZZZ,,,,,,,ZZZ,ZZZ,,,,,"""
+ )
Unstable formatting /home/konsti/ruff/target/checkouts/pandas-dev:pandas/pandas/core/groupby/generic.py
@@ -1519,7 +1519,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/pandas-dev:pandas/pandas/core/window/rolling.py
@@ -1814,7 +1814,8 @@
- / self._on.freq.nanos / self._on.freq.n
+ / self._on.freq.nanos
+ / self._on.freq.n
Unstable formatting /home/konsti/ruff/target/checkouts/opsi-org:opsipxeconfd/opsipxeconfd/opsipxeconfd.py
@@ -635,8 +635,7 @@
- "%02X%02X%02X%02X"
- % tuple([int(i) for i in host.ipAddress.split(".")]) # pylint: disable=consider-using-generator,consider-using-f-string
+ "%02X%02X%02X%02X" % tuple([int(i) for i in host.ipAddress.split(".")]) # pylint: disable=consider-using-generator,consider-using-f-string
Unstable formatting /home/konsti/ruff/target/checkouts/SMAT-Lab:Scalpel/tests/test-cases/cfg-tests/pytorch-test-test_nn.py
@@ -17815,8 +17815,9 @@
- lambda self, device, dtype: # Compute sum of the large tensor sizes:
- # (im.numel() + small_image.numel() + small_image.grad.numel() +
+ lambda self,
+ device,
+ dtype,: # (im.numel() + small_image.numel() + small_image.grad.numel() + # Compute sum of the large tensor sizes:
@@ -17872,8 +17873,9 @@
- lambda self, device, dtype: # Compute sum of the large tensor sizes:
- # (im.numel() + small_image.numel() + small_image.grad.numel() +
+ lambda self,
+ device,
+ dtype,: # (im.numel() + small_image.numel() + small_image.grad.numel() + # Compute sum of the large tensor sizes:
Unstable formatting /home/konsti/ruff/target/checkouts/RasaHQ:rasa/rasa/core/policies/ted_policy.py
@@ -2100,8 +2100,7 @@
- )# the output is of shape (batch_size, max_seq_len)
- ,
+ ), # the output is of shape (batch_size, max_seq_len)
Unstable formatting /home/konsti/ruff/target/checkouts/HellConnector:tradematebot/bot/utils.py
@@ -176,11 +176,8 @@
- return (
- f"NOT_YET_IMPLEMENTED_ExprJoinedStr"
- + "\n".join(
- map(lambda x: f"NOT_YET_IMPLEMENTED_ExprJoinedStr", enumerate(page))
- )
+ return f"NOT_YET_IMPLEMENTED_ExprJoinedStr" + "\n".join(
+ map(lambda x: f"NOT_YET_IMPLEMENTED_ExprJoinedStr", enumerate(page))
Error reading /home/konsti/ruff/target/checkouts/pylint-dev:pylint/tests/functional/i/implicit/implicit_str_concat_latin1.py: stream did not contain valid UTF-8
Unstable formatting /home/konsti/ruff/target/checkouts/pylint-dev:pylint/tests/functional/c/cellvar_escaping_loop.py
@@ -180,7 +180,7 @@
- # [cell-var-from-loop]
+ # [cell-var-from-loop]
Unstable formatting /home/konsti/ruff/target/checkouts/huggingface:transformers/src/transformers/generation/flax_logits_process.py
@@ -346,9 +346,8 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/huggingface:transformers/src/transformers/generation/tf_logits_process.py
@@ -575,8 +575,7 @@
- )# Only valid (positive) tokens are forced
+ ), # Only valid (positive) tokens are forced
- ,
Unstable formatting /home/konsti/ruff/target/checkouts/akhanf:snakedwi/snakedwi/workflow/scripts/anatomical/map_channels_to_tissue.py
@@ -16,8 +16,7 @@
- np.sum(np.logical_and(s1, s2).flat)
- / np.sum(np.logical_or(s1, s2).flat) # noqa: F841
+ np.sum(np.logical_and(s1, s2).flat) / np.sum(np.logical_or(s1, s2).flat) # noqa: F841
Unstable formatting /home/konsti/ruff/target/checkouts/atlasacademy:fgo-game-data-api/app/db/helpers/fetch.py
@@ -225,7 +225,8 @@
-schema_map_fetch_one: dict[Type[BaseModelORJson], tuple[Table, ColumnElement]] = { # type:ignore
+schema_map_fetch_one: dict[Type[BaseModelORJson], tuple[Table, ColumnElement]] = {
+ # type:ignore
Unstable formatting /home/konsti/ruff/target/checkouts/litestar-org:litestar/litestar/contrib/sqlalchemy/repository/_sync.py
@@ -480,8 +480,7 @@
- session.execute(text("SELECT 1")).scalar_one()
- == 1
+ session.execute(text("SELECT 1")).scalar_one() == 1
Unstable formatting /home/konsti/ruff/target/checkouts/litestar-org:litestar/litestar/contrib/sqlalchemy/repository/_async.py
@@ -478,8 +478,7 @@
- await session.execute(text("SELECT 1")).scalar_one()
- == 1
+ await session.execute(text("SELECT 1")).scalar_one() == 1
Unstable formatting /home/konsti/ruff/target/checkouts/libratbag:libratbag/tools/ratbagd.py
@@ -1002,7 +1002,8 @@
- RatbagdButton.Macro.KEY_RELEASE: lambda key,: f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
+ RatbagdButton.Macro.KEY_RELEASE: lambda key,
+ : f"NOT_YET_IMPLEMENTED_ExprJoinedStr",
Unstable formatting /home/konsti/ruff/target/checkouts/vkottler:rcmpy/rcmpy/config/file.py
@@ -52,8 +52,7 @@
- self.platform
- and eval(self.condition, None, env) # pylint: disable=eval-used
+ self.platform and eval(self.condition, None, env) # pylint: disable=eval-used
Unstable formatting /home/konsti/ruff/target/checkouts/Stinky-c:DatBot/src/main.py
@@ -18,7 +18,6 @@
-
Unstable formatting /home/konsti/ruff/target/checkouts/SWAG-MLG-420:Gajim_SWAG_MLG_M.O.D/gajim/common/storage/cache.py
@@ -338,7 +338,6 @@
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment