From 9e3c87e1c56542f59efbfc20410405d8f8b64fdf Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Wed, 25 Dec 2024 18:15:41 +0800 Subject: [PATCH] Update noqa comments to use ruff Closes: ray-project/ray#48508 Signed-off-by: Chi-Sheng Liu --- .../pytorch_tutorials_hyperparameter_tuning_tutorial.py | 2 +- doc/source/data/doc_code/custom_datasource_example.py | 2 +- doc/source/data/doc_code/key_concepts.py | 2 +- doc/source/data/doc_code/preprocessors.py | 2 +- doc/source/ray-core/doc_code/actor_creator_failure.py | 2 +- doc/source/ray-core/doc_code/actor_restart.py | 2 +- doc/source/ray-core/doc_code/actors.py | 2 +- doc/source/ray-core/doc_code/cross_language.py | 2 +- doc/source/ray-core/doc_code/getting_started.py | 2 +- doc/source/ray-core/doc_code/namespaces.py | 2 +- doc/source/ray-core/doc_code/nested-tasks.py | 2 +- doc/source/ray-core/doc_code/owners.py | 2 +- doc/source/ray-core/doc_code/ray-dag.py | 2 +- doc/source/ray-core/doc_code/ray_oom_prevention.py | 2 +- doc/source/ray-core/doc_code/runtime_env_example.py | 2 +- doc/source/ray-core/doc_code/streaming_generator.py | 2 +- doc/source/ray-core/doc_code/task_exceptions.py | 2 +- doc/source/ray-core/doc_code/tasks.py | 2 +- doc/source/ray-core/doc_code/tasks_fault_tolerance.py | 2 +- doc/source/ray-more-libs/doc_code/dask_on_ray_callbacks.py | 2 +- doc/source/ray-observability/doc_code/gotchas.py | 2 +- doc/source/rllib/doc_code/advanced_api.py | 2 +- doc/source/rllib/doc_code/catalog_guide.py | 2 +- doc/source/rllib/doc_code/checkpoints.py | 2 +- doc/source/rllib/doc_code/getting_started.py | 2 +- doc/source/rllib/doc_code/rllib_in_60s.py | 2 +- doc/source/rllib/doc_code/rlmodule_guide.py | 2 +- doc/source/rllib/doc_code/sa_episode.py | 2 +- .../rllib/doc_code/saving_and_loading_algos_and_policies.py | 2 +- doc/source/rllib/doc_code/training.py | 2 +- doc/source/serve/doc_code/app_builder.py | 2 +- doc/source/serve/doc_code/aws_neuron_core_inference_serve.py | 2 +- doc/source/serve/doc_code/batching_guide.py | 2 +- .../doc_code/configure_serve_deployment/model_deployment.py | 2 +- doc/source/serve/doc_code/develop_and_deploy.py | 2 +- .../serve/doc_code/fault_tolerance/replica_health_check.py | 2 +- doc/source/serve/doc_code/fault_tolerance/sleepy_pid.py | 2 +- doc/source/serve/doc_code/getting_started/model_deployment.py | 2 +- .../serve/doc_code/getting_started/model_deployment_full.py | 2 +- doc/source/serve/doc_code/getting_started/models.py | 2 +- doc/source/serve/doc_code/getting_started/translator.py | 2 +- doc/source/serve/doc_code/grpc_proxy/grpc_guide.py | 2 +- doc/source/serve/doc_code/http_guide/disconnects.py | 2 +- doc/source/serve/doc_code/http_guide/http_guide.py | 2 +- doc/source/serve/doc_code/http_guide/streaming_example.py | 2 +- doc/source/serve/doc_code/http_guide/websockets_example.py | 2 +- doc/source/serve/doc_code/key_concepts.py | 2 +- doc/source/serve/doc_code/load_shedding.py | 4 ++-- .../serve/doc_code/model_composition/chaining_example.py | 2 +- .../serve/doc_code/model_composition/language_example.py | 2 +- .../model_composition/response_to_object_ref_example.py | 2 +- .../serve/doc_code/model_composition/streaming_example.py | 2 +- doc/source/serve/doc_code/monitoring/logging_config.py | 2 +- doc/source/serve/doc_code/monitoring/monitor_deployment.py | 2 +- doc/source/serve/doc_code/monitoring/monitoring.py | 2 +- doc/source/serve/doc_code/production_guide/text_ml.py | 2 +- doc/source/serve/doc_code/requests_best_practices.py | 2 +- doc/source/serve/doc_code/sklearn_quickstart.py | 2 +- doc/source/serve/doc_code/streaming_tutorial.py | 2 +- doc/source/serve/doc_code/test_service_pb2.py | 2 +- doc/source/serve/doc_code/test_service_pb2_grpc.py | 2 +- doc/source/train/doc_code/checkpoints.py | 2 +- doc/source/train/doc_code/data_ingest_torch_new.py | 2 +- doc/source/train/doc_code/dl_guide.py | 2 +- doc/source/train/doc_code/gbdt_user_guide.py | 2 +- doc/source/train/doc_code/key_concepts.py | 2 +- doc/source/train/doc_code/tf_starter.py | 2 +- doc/source/train/doc_code/torchmetrics_example.py | 2 +- doc/source/train/doc_code/tuner.py | 2 +- doc/source/tune/doc_code/faq.py | 2 +- doc/source/tune/doc_code/fault_tolerance.py | 2 +- doc/source/tune/doc_code/keras_hyperopt.py | 2 +- doc/source/tune/doc_code/key_concepts.py | 2 +- doc/source/tune/doc_code/pytorch_optuna.py | 2 +- doc/source/tune/doc_code/stopping.py | 2 +- doc/source/tune/doc_code/trainable.py | 2 +- doc/source/tune/doc_code/trial_checkpoint.py | 2 +- doc/source/tune/doc_code/tune.py | 2 +- python/ray/_private/pydantic_compat.py | 2 +- python/ray/air/examples/custom_trainer.py | 2 +- .../modules/event/tests/test_generate_export_events.py | 2 +- .../modules/metrics/dashboards/data_dashboard_panels.py | 2 +- .../modules/metrics/dashboards/default_dashboard_panels.py | 2 +- .../modules/metrics/dashboards/serve_dashboard_panels.py | 2 +- .../metrics/dashboards/serve_deployment_dashboard_panels.py | 2 +- python/ray/serve/tests/common/remote_uris.py | 2 +- python/ray/setup-dev.py | 2 +- .../experiment_tracking/lightning_exp_tracking_mlflow.py | 2 +- .../experiment_tracking/lightning_exp_tracking_model_dl.py | 2 +- .../experiment_tracking/lightning_exp_tracking_tensorboard.py | 2 +- .../experiment_tracking/lightning_exp_tracking_wandb.py | 2 +- .../examples/experiment_tracking/torch_exp_tracking_mlflow.py | 2 +- .../examples/experiment_tracking/torch_exp_tracking_wandb.py | 2 +- python/ray/train/examples/pytorch/torch_quick_start.py | 2 +- python/ray/train/examples/tf/tensorflow_quick_start.py | 2 +- python/ray/tune/examples/cifar10_pytorch.py | 2 +- python/ray/tune/examples/pbt_convnet_example.py | 2 +- python/ray/tune/tests/example.py | 2 +- python/ray/tune/tests/tutorial.py | 2 +- 99 files changed, 100 insertions(+), 100 deletions(-) diff --git a/doc/external/pytorch_tutorials_hyperparameter_tuning_tutorial.py b/doc/external/pytorch_tutorials_hyperparameter_tuning_tutorial.py index 6c31af382842..9b461f28db42 100644 --- a/doc/external/pytorch_tutorials_hyperparameter_tuning_tutorial.py +++ b/doc/external/pytorch_tutorials_hyperparameter_tuning_tutorial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# flake8: noqa +# ruff: noqa """ Hyperparameter tuning with Ray Tune =================================== diff --git a/doc/source/data/doc_code/custom_datasource_example.py b/doc/source/data/doc_code/custom_datasource_example.py index 7b59da6c0c07..68bee4610409 100644 --- a/doc/source/data/doc_code/custom_datasource_example.py +++ b/doc/source/data/doc_code/custom_datasource_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off from typing import Iterator, Union, List diff --git a/doc/source/data/doc_code/key_concepts.py b/doc/source/data/doc_code/key_concepts.py index 5625d61f45b6..6b8ca17af7d3 100644 --- a/doc/source/data/doc_code/key_concepts.py +++ b/doc/source/data/doc_code/key_concepts.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __resource_allocation_1_begin__ diff --git a/doc/source/data/doc_code/preprocessors.py b/doc/source/data/doc_code/preprocessors.py index 8997a4166d98..53cef07a9c43 100644 --- a/doc/source/data/doc_code/preprocessors.py +++ b/doc/source/data/doc_code/preprocessors.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __preprocessor_setup_start__ diff --git a/doc/source/ray-core/doc_code/actor_creator_failure.py b/doc/source/ray-core/doc_code/actor_creator_failure.py index a4d0cd923f9a..ebb3d76dcb2b 100644 --- a/doc/source/ray-core/doc_code/actor_creator_failure.py +++ b/doc/source/ray-core/doc_code/actor_creator_failure.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __actor_creator_failure_begin__ diff --git a/doc/source/ray-core/doc_code/actor_restart.py b/doc/source/ray-core/doc_code/actor_restart.py index 667dc33dc3c0..8bd232e0b614 100644 --- a/doc/source/ray-core/doc_code/actor_restart.py +++ b/doc/source/ray-core/doc_code/actor_restart.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __actor_restart_begin__ diff --git a/doc/source/ray-core/doc_code/actors.py b/doc/source/ray-core/doc_code/actors.py index 2a40efdd07d5..6346bad7be3b 100644 --- a/doc/source/ray-core/doc_code/actors.py +++ b/doc/source/ray-core/doc_code/actors.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __cancel_start__ import ray diff --git a/doc/source/ray-core/doc_code/cross_language.py b/doc/source/ray-core/doc_code/cross_language.py index 0bf9c56bceea..346cc6c57ddc 100644 --- a/doc/source/ray-core/doc_code/cross_language.py +++ b/doc/source/ray-core/doc_code/cross_language.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __crosslang_init_start__ diff --git a/doc/source/ray-core/doc_code/getting_started.py b/doc/source/ray-core/doc_code/getting_started.py index bbc6efeda767..0ad1d95b36eb 100644 --- a/doc/source/ray-core/doc_code/getting_started.py +++ b/doc/source/ray-core/doc_code/getting_started.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __starting_ray_start__ import ray diff --git a/doc/source/ray-core/doc_code/namespaces.py b/doc/source/ray-core/doc_code/namespaces.py index 057d2e1d8762..30247ec5272f 100644 --- a/doc/source/ray-core/doc_code/namespaces.py +++ b/doc/source/ray-core/doc_code/namespaces.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __init_namespace_start__ import ray diff --git a/doc/source/ray-core/doc_code/nested-tasks.py b/doc/source/ray-core/doc_code/nested-tasks.py index 10b0a399ec68..9c66eb56289b 100644 --- a/doc/source/ray-core/doc_code/nested-tasks.py +++ b/doc/source/ray-core/doc_code/nested-tasks.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __nested_start__ import ray diff --git a/doc/source/ray-core/doc_code/owners.py b/doc/source/ray-core/doc_code/owners.py index b16a83d52a4a..00222631fdd2 100644 --- a/doc/source/ray-core/doc_code/owners.py +++ b/doc/source/ray-core/doc_code/owners.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __owners_begin__ import ray import numpy as np diff --git a/doc/source/ray-core/doc_code/ray-dag.py b/doc/source/ray-core/doc_code/ray-dag.py index a0711d13e2f2..7ecec2f5fdf9 100644 --- a/doc/source/ray-core/doc_code/ray-dag.py +++ b/doc/source/ray-core/doc_code/ray-dag.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __dag_tasks_begin__ diff --git a/doc/source/ray-core/doc_code/ray_oom_prevention.py b/doc/source/ray-core/doc_code/ray_oom_prevention.py index 03aa021c56eb..c9c4c3b32637 100644 --- a/doc/source/ray-core/doc_code/ray_oom_prevention.py +++ b/doc/source/ray-core/doc_code/ray_oom_prevention.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import ray ray.init( diff --git a/doc/source/ray-core/doc_code/runtime_env_example.py b/doc/source/ray-core/doc_code/runtime_env_example.py index e7b04efbb369..b68f76cd80e3 100644 --- a/doc/source/ray-core/doc_code/runtime_env_example.py +++ b/doc/source/ray-core/doc_code/runtime_env_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa """ This file holds code for the runtime envs documentation. diff --git a/doc/source/ray-core/doc_code/streaming_generator.py b/doc/source/ray-core/doc_code/streaming_generator.py index 55f32917e758..51a76d501a67 100644 --- a/doc/source/ray-core/doc_code/streaming_generator.py +++ b/doc/source/ray-core/doc_code/streaming_generator.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off diff --git a/doc/source/ray-core/doc_code/task_exceptions.py b/doc/source/ray-core/doc_code/task_exceptions.py index 5218f80b412b..7dbf02115c66 100644 --- a/doc/source/ray-core/doc_code/task_exceptions.py +++ b/doc/source/ray-core/doc_code/task_exceptions.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __task_exceptions_begin__ diff --git a/doc/source/ray-core/doc_code/tasks.py b/doc/source/ray-core/doc_code/tasks.py index 347b34621614..493a9091d2ad 100644 --- a/doc/source/ray-core/doc_code/tasks.py +++ b/doc/source/ray-core/doc_code/tasks.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __tasks_start__ import ray diff --git a/doc/source/ray-core/doc_code/tasks_fault_tolerance.py b/doc/source/ray-core/doc_code/tasks_fault_tolerance.py index e80ff4f52f57..8a8d6843e1a2 100644 --- a/doc/source/ray-core/doc_code/tasks_fault_tolerance.py +++ b/doc/source/ray-core/doc_code/tasks_fault_tolerance.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __tasks_fault_tolerance_retries_begin__ diff --git a/doc/source/ray-more-libs/doc_code/dask_on_ray_callbacks.py b/doc/source/ray-more-libs/doc_code/dask_on_ray_callbacks.py index 690b2c51a36d..5b56b43fb896 100644 --- a/doc/source/ray-more-libs/doc_code/dask_on_ray_callbacks.py +++ b/doc/source/ray-more-libs/doc_code/dask_on_ray_callbacks.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import ray import dask.array as da diff --git a/doc/source/ray-observability/doc_code/gotchas.py b/doc/source/ray-observability/doc_code/gotchas.py index 5c9b2cb0eb85..9cd8cdfd873e 100644 --- a/doc/source/ray-observability/doc_code/gotchas.py +++ b/doc/source/ray-observability/doc_code/gotchas.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __env_var_start__ import ray import os diff --git a/doc/source/rllib/doc_code/advanced_api.py b/doc/source/rllib/doc_code/advanced_api.py index d8fcb9a34fcf..ba3775c0b4f4 100644 --- a/doc/source/rllib/doc_code/advanced_api.py +++ b/doc/source/rllib/doc_code/advanced_api.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __rllib-adv_api_counter_begin__ import ray diff --git a/doc/source/rllib/doc_code/catalog_guide.py b/doc/source/rllib/doc_code/catalog_guide.py index d223afac5f7c..f28a7ef3e214 100644 --- a/doc/source/rllib/doc_code/catalog_guide.py +++ b/doc/source/rllib/doc_code/catalog_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa """ This file holds several examples for the Catalogs API that are used in the catalog guide. diff --git a/doc/source/rllib/doc_code/checkpoints.py b/doc/source/rllib/doc_code/checkpoints.py index 00cb1a58b004..5af5299e134c 100644 --- a/doc/source/rllib/doc_code/checkpoints.py +++ b/doc/source/rllib/doc_code/checkpoints.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __rllib-convert-pickle-to-msgpack-checkpoint-begin__ import tempfile diff --git a/doc/source/rllib/doc_code/getting_started.py b/doc/source/rllib/doc_code/getting_started.py index 951b3acee8da..a6b07163387c 100644 --- a/doc/source/rllib/doc_code/getting_started.py +++ b/doc/source/rllib/doc_code/getting_started.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __rllib-first-config-begin__ from pprint import pprint diff --git a/doc/source/rllib/doc_code/rllib_in_60s.py b/doc/source/rllib/doc_code/rllib_in_60s.py index 6d214504f15d..0da2b35f5bf4 100644 --- a/doc/source/rllib/doc_code/rllib_in_60s.py +++ b/doc/source/rllib/doc_code/rllib_in_60s.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __rllib-in-60s-begin__ from ray.rllib.algorithms.ppo import PPOConfig diff --git a/doc/source/rllib/doc_code/rlmodule_guide.py b/doc/source/rllib/doc_code/rlmodule_guide.py index cc7eb92c19d1..919714030ff8 100644 --- a/doc/source/rllib/doc_code/rlmodule_guide.py +++ b/doc/source/rllib/doc_code/rlmodule_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa from ray.rllib.utils.annotations import override diff --git a/doc/source/rllib/doc_code/sa_episode.py b/doc/source/rllib/doc_code/sa_episode.py index a642b196ac90..13438e8c32f8 100644 --- a/doc/source/rllib/doc_code/sa_episode.py +++ b/doc/source/rllib/doc_code/sa_episode.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import copy # __rllib-sa-episode-01-begin__ diff --git a/doc/source/rllib/doc_code/saving_and_loading_algos_and_policies.py b/doc/source/rllib/doc_code/saving_and_loading_algos_and_policies.py index 0ba5e06b7775..9f666f54b749 100644 --- a/doc/source/rllib/doc_code/saving_and_loading_algos_and_policies.py +++ b/doc/source/rllib/doc_code/saving_and_loading_algos_and_policies.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __create-algo-checkpoint-begin__ # Create a PPO algorithm object using a config object .. diff --git a/doc/source/rllib/doc_code/training.py b/doc/source/rllib/doc_code/training.py index 75bf8a48f18c..0b3aafc244f4 100644 --- a/doc/source/rllib/doc_code/training.py +++ b/doc/source/rllib/doc_code/training.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __preprocessing_observations_start__ try: diff --git a/doc/source/serve/doc_code/app_builder.py b/doc/source/serve/doc_code/app_builder.py index 3e410b504cf6..6071ad91e21d 100644 --- a/doc/source/serve/doc_code/app_builder.py +++ b/doc/source/serve/doc_code/app_builder.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __begin_untyped_builder__ from typing import Dict diff --git a/doc/source/serve/doc_code/aws_neuron_core_inference_serve.py b/doc/source/serve/doc_code/aws_neuron_core_inference_serve.py index 9535ca3bd22e..fb0f10b6e690 100644 --- a/doc/source/serve/doc_code/aws_neuron_core_inference_serve.py +++ b/doc/source/serve/doc_code/aws_neuron_core_inference_serve.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __compile_neuron_code_start__ from transformers import AutoModelForSequenceClassification, AutoTokenizer import torch, torch_neuronx diff --git a/doc/source/serve/doc_code/batching_guide.py b/doc/source/serve/doc_code/batching_guide.py index 5ae7852a5723..278cb65af383 100644 --- a/doc/source/serve/doc_code/batching_guide.py +++ b/doc/source/serve/doc_code/batching_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __single_sample_begin__ from ray import serve from ray.serve.handle import DeploymentHandle diff --git a/doc/source/serve/doc_code/configure_serve_deployment/model_deployment.py b/doc/source/serve/doc_code/configure_serve_deployment/model_deployment.py index 43425103d5fe..11ee5bdc6117 100644 --- a/doc/source/serve/doc_code/configure_serve_deployment/model_deployment.py +++ b/doc/source/serve/doc_code/configure_serve_deployment/model_deployment.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import ray diff --git a/doc/source/serve/doc_code/develop_and_deploy.py b/doc/source/serve/doc_code/develop_and_deploy.py index 3d58185135b6..64af5afb82a0 100644 --- a/doc/source/serve/doc_code/develop_and_deploy.py +++ b/doc/source/serve/doc_code/develop_and_deploy.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __deployment_start__ import ray diff --git a/doc/source/serve/doc_code/fault_tolerance/replica_health_check.py b/doc/source/serve/doc_code/fault_tolerance/replica_health_check.py index 42fe2a0486ca..2056ba7aa493 100644 --- a/doc/source/serve/doc_code/fault_tolerance/replica_health_check.py +++ b/doc/source/serve/doc_code/fault_tolerance/replica_health_check.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa from ray import serve diff --git a/doc/source/serve/doc_code/fault_tolerance/sleepy_pid.py b/doc/source/serve/doc_code/fault_tolerance/sleepy_pid.py index 4e74e427fd4d..6052f19c6528 100644 --- a/doc/source/serve/doc_code/fault_tolerance/sleepy_pid.py +++ b/doc/source/serve/doc_code/fault_tolerance/sleepy_pid.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __start__ # File name: sleepy_pid.py diff --git a/doc/source/serve/doc_code/getting_started/model_deployment.py b/doc/source/serve/doc_code/getting_started/model_deployment.py index 482d12ffe4ad..6fdf1b1753b4 100644 --- a/doc/source/serve/doc_code/getting_started/model_deployment.py +++ b/doc/source/serve/doc_code/getting_started/model_deployment.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __import_start__ from starlette.requests import Request diff --git a/doc/source/serve/doc_code/getting_started/model_deployment_full.py b/doc/source/serve/doc_code/getting_started/model_deployment_full.py index f8ca87f18210..5e862e618d02 100644 --- a/doc/source/serve/doc_code/getting_started/model_deployment_full.py +++ b/doc/source/serve/doc_code/getting_started/model_deployment_full.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __deployment_full_start__ # File name: serve_quickstart.py diff --git a/doc/source/serve/doc_code/getting_started/models.py b/doc/source/serve/doc_code/getting_started/models.py index c30782c2d270..8f8da487a840 100644 --- a/doc/source/serve/doc_code/getting_started/models.py +++ b/doc/source/serve/doc_code/getting_started/models.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __start_translation_model__ # File name: model.py diff --git a/doc/source/serve/doc_code/getting_started/translator.py b/doc/source/serve/doc_code/getting_started/translator.py index bff2f2005bde..474c4ed693c8 100644 --- a/doc/source/serve/doc_code/getting_started/translator.py +++ b/doc/source/serve/doc_code/getting_started/translator.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __start_graph__ # File name: serve_quickstart_composed.py diff --git a/doc/source/serve/doc_code/grpc_proxy/grpc_guide.py b/doc/source/serve/doc_code/grpc_proxy/grpc_guide.py index d72f6e8bb2ff..587cbb38817b 100644 --- a/doc/source/serve/doc_code/grpc_proxy/grpc_guide.py +++ b/doc/source/serve/doc_code/grpc_proxy/grpc_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import ray diff --git a/doc/source/serve/doc_code/http_guide/disconnects.py b/doc/source/serve/doc_code/http_guide/disconnects.py index 6927dcee1522..db0115259904 100644 --- a/doc/source/serve/doc_code/http_guide/disconnects.py +++ b/doc/source/serve/doc_code/http_guide/disconnects.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off import ray diff --git a/doc/source/serve/doc_code/http_guide/http_guide.py b/doc/source/serve/doc_code/http_guide/http_guide.py index cbee62ca5ce9..adb6f82ac88a 100644 --- a/doc/source/serve/doc_code/http_guide/http_guide.py +++ b/doc/source/serve/doc_code/http_guide/http_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __begin_starlette__ import starlette.requests diff --git a/doc/source/serve/doc_code/http_guide/streaming_example.py b/doc/source/serve/doc_code/http_guide/streaming_example.py index 3de9193199f9..51ddf7aec18e 100644 --- a/doc/source/serve/doc_code/http_guide/streaming_example.py +++ b/doc/source/serve/doc_code/http_guide/streaming_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __begin_example__ import time diff --git a/doc/source/serve/doc_code/http_guide/websockets_example.py b/doc/source/serve/doc_code/http_guide/websockets_example.py index 6cabc6c11b05..7cdca74ba547 100644 --- a/doc/source/serve/doc_code/http_guide/websockets_example.py +++ b/doc/source/serve/doc_code/http_guide/websockets_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __websocket_serve_app_start__ from fastapi import FastAPI, WebSocket, WebSocketDisconnect diff --git a/doc/source/serve/doc_code/key_concepts.py b/doc/source/serve/doc_code/key_concepts.py index 23fc510aa9be..39cdbcd75207 100644 --- a/doc/source/serve/doc_code/key_concepts.py +++ b/doc/source/serve/doc_code/key_concepts.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __start_my_first_deployment__ from ray import serve diff --git a/doc/source/serve/doc_code/load_shedding.py b/doc/source/serve/doc_code/load_shedding.py index c11c6201d571..4045e61485f7 100644 --- a/doc/source/serve/doc_code/load_shedding.py +++ b/doc/source/serve/doc_code/load_shedding.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __example_deployment_start__ @@ -38,7 +38,7 @@ async def do_request(self) -> int: first_refs = [r.do_request.remote() for _ in range(2)] _, pending = ray.wait(first_refs, timeout=1) assert len(pending) == 2 -# 2 will be queued in the proxy. +# 2 will be queued in the proxy. queued_refs = [r.do_request.remote() for _ in range(2)] _, pending = ray.wait(queued_refs, timeout=0.1) assert len(pending) == 2 diff --git a/doc/source/serve/doc_code/model_composition/chaining_example.py b/doc/source/serve/doc_code/model_composition/chaining_example.py index 3ba0361a20a7..4880d14e37cc 100644 --- a/doc/source/serve/doc_code/model_composition/chaining_example.py +++ b/doc/source/serve/doc_code/model_composition/chaining_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __chaining_example_start__ # File name: chain.py from ray import serve diff --git a/doc/source/serve/doc_code/model_composition/language_example.py b/doc/source/serve/doc_code/model_composition/language_example.py index ba3ec9ec8211..efc9c002a8b3 100644 --- a/doc/source/serve/doc_code/model_composition/language_example.py +++ b/doc/source/serve/doc_code/model_composition/language_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import requests diff --git a/doc/source/serve/doc_code/model_composition/response_to_object_ref_example.py b/doc/source/serve/doc_code/model_composition/response_to_object_ref_example.py index f12de3b3832a..8c99d8a814ae 100644 --- a/doc/source/serve/doc_code/model_composition/response_to_object_ref_example.py +++ b/doc/source/serve/doc_code/model_composition/response_to_object_ref_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __response_to_object_ref_example_start__ # File name: response_to_object_ref.py import ray diff --git a/doc/source/serve/doc_code/model_composition/streaming_example.py b/doc/source/serve/doc_code/model_composition/streaming_example.py index ca4cacf4c45a..9b310243a583 100644 --- a/doc/source/serve/doc_code/model_composition/streaming_example.py +++ b/doc/source/serve/doc_code/model_composition/streaming_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __streaming_example_start__ # File name: stream.py from typing import AsyncGenerator, Generator diff --git a/doc/source/serve/doc_code/monitoring/logging_config.py b/doc/source/serve/doc_code/monitoring/logging_config.py index 1fc51d578d3c..72a2a015fc64 100644 --- a/doc/source/serve/doc_code/monitoring/logging_config.py +++ b/doc/source/serve/doc_code/monitoring/logging_config.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __deployment_json_start__ import requests from ray import serve diff --git a/doc/source/serve/doc_code/monitoring/monitor_deployment.py b/doc/source/serve/doc_code/monitoring/monitor_deployment.py index d5305215b43b..ef76d9572cbd 100644 --- a/doc/source/serve/doc_code/monitoring/monitor_deployment.py +++ b/doc/source/serve/doc_code/monitoring/monitor_deployment.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __monitor_start__ diff --git a/doc/source/serve/doc_code/monitoring/monitoring.py b/doc/source/serve/doc_code/monitoring/monitoring.py index b1f3759773cb..a278fcb45963 100644 --- a/doc/source/serve/doc_code/monitoring/monitoring.py +++ b/doc/source/serve/doc_code/monitoring/monitoring.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __start__ # File name: monitoring.py diff --git a/doc/source/serve/doc_code/production_guide/text_ml.py b/doc/source/serve/doc_code/production_guide/text_ml.py index 6d211f819715..c9a46b601049 100644 --- a/doc/source/serve/doc_code/production_guide/text_ml.py +++ b/doc/source/serve/doc_code/production_guide/text_ml.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __example_start__ from starlette.requests import Request diff --git a/doc/source/serve/doc_code/requests_best_practices.py b/doc/source/serve/doc_code/requests_best_practices.py index 62e235d94494..60efbff89e4f 100644 --- a/doc/source/serve/doc_code/requests_best_practices.py +++ b/doc/source/serve/doc_code/requests_best_practices.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off diff --git a/doc/source/serve/doc_code/sklearn_quickstart.py b/doc/source/serve/doc_code/sklearn_quickstart.py index 3421053effa5..53c054213cea 100644 --- a/doc/source/serve/doc_code/sklearn_quickstart.py +++ b/doc/source/serve/doc_code/sklearn_quickstart.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __serve_example_begin__ diff --git a/doc/source/serve/doc_code/streaming_tutorial.py b/doc/source/serve/doc_code/streaming_tutorial.py index bd23858e95f1..bc8c60501f1d 100644 --- a/doc/source/serve/doc_code/streaming_tutorial.py +++ b/doc/source/serve/doc_code/streaming_tutorial.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off from typing import List diff --git a/doc/source/serve/doc_code/test_service_pb2.py b/doc/source/serve/doc_code/test_service_pb2.py index bb6e98e81dc9..47a4db942df0 100755 --- a/doc/source/serve/doc_code/test_service_pb2.py +++ b/doc/source/serve/doc_code/test_service_pb2.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! diff --git a/doc/source/serve/doc_code/test_service_pb2_grpc.py b/doc/source/serve/doc_code/test_service_pb2_grpc.py index 73d0d3e7edd8..11fce0fbe1f7 100755 --- a/doc/source/serve/doc_code/test_service_pb2_grpc.py +++ b/doc/source/serve/doc_code/test_service_pb2_grpc.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" diff --git a/doc/source/train/doc_code/checkpoints.py b/doc/source/train/doc_code/checkpoints.py index 9ec5fa554bb2..b20958ac6d3b 100644 --- a/doc/source/train/doc_code/checkpoints.py +++ b/doc/source/train/doc_code/checkpoints.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __pytorch_save_start__ diff --git a/doc/source/train/doc_code/data_ingest_torch_new.py b/doc/source/train/doc_code/data_ingest_torch_new.py index c6f945fba95d..d94b4ca34d67 100644 --- a/doc/source/train/doc_code/data_ingest_torch_new.py +++ b/doc/source/train/doc_code/data_ingest_torch_new.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __basic__ diff --git a/doc/source/train/doc_code/dl_guide.py b/doc/source/train/doc_code/dl_guide.py index 8187913af560..42afc23ca879 100644 --- a/doc/source/train/doc_code/dl_guide.py +++ b/doc/source/train/doc_code/dl_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa MOCK = True diff --git a/doc/source/train/doc_code/gbdt_user_guide.py b/doc/source/train/doc_code/gbdt_user_guide.py index ea82cfe3e922..56897fb84e4c 100644 --- a/doc/source/train/doc_code/gbdt_user_guide.py +++ b/doc/source/train/doc_code/gbdt_user_guide.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __xgboost_start__ diff --git a/doc/source/train/doc_code/key_concepts.py b/doc/source/train/doc_code/key_concepts.py index 0c2a06821728..beac3bf348c4 100644 --- a/doc/source/train/doc_code/key_concepts.py +++ b/doc/source/train/doc_code/key_concepts.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file from pathlib import Path diff --git a/doc/source/train/doc_code/tf_starter.py b/doc/source/train/doc_code/tf_starter.py index ec928c9588b7..ba7ab842c167 100644 --- a/doc/source/train/doc_code/tf_starter.py +++ b/doc/source/train/doc_code/tf_starter.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __tf_train_start__ diff --git a/doc/source/train/doc_code/torchmetrics_example.py b/doc/source/train/doc_code/torchmetrics_example.py index 8a12f6c99c1b..27e78d1fd016 100644 --- a/doc/source/train/doc_code/torchmetrics_example.py +++ b/doc/source/train/doc_code/torchmetrics_example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __start__ diff --git a/doc/source/train/doc_code/tuner.py b/doc/source/train/doc_code/tuner.py index 5d5239442c5f..314a47a0ab50 100644 --- a/doc/source/train/doc_code/tuner.py +++ b/doc/source/train/doc_code/tuner.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # __basic_start__ diff --git a/doc/source/tune/doc_code/faq.py b/doc/source/tune/doc_code/faq.py index c128702905c1..854ff847e1b0 100644 --- a/doc/source/tune/doc_code/faq.py +++ b/doc/source/tune/doc_code/faq.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __reproducible_start__ import numpy as np diff --git a/doc/source/tune/doc_code/fault_tolerance.py b/doc/source/tune/doc_code/fault_tolerance.py index 44e4dc866647..fbb34e68615d 100644 --- a/doc/source/tune/doc_code/fault_tolerance.py +++ b/doc/source/tune/doc_code/fault_tolerance.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __ft_initial_run_start__ import json diff --git a/doc/source/tune/doc_code/keras_hyperopt.py b/doc/source/tune/doc_code/keras_hyperopt.py index 6f7f8375c580..1f34ca47c661 100644 --- a/doc/source/tune/doc_code/keras_hyperopt.py +++ b/doc/source/tune/doc_code/keras_hyperopt.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa accuracy = 42 diff --git a/doc/source/tune/doc_code/key_concepts.py b/doc/source/tune/doc_code/key_concepts.py index 98c2b8417e38..632a10b46092 100644 --- a/doc/source/tune/doc_code/key_concepts.py +++ b/doc/source/tune/doc_code/key_concepts.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __function_api_start__ from ray import train diff --git a/doc/source/tune/doc_code/pytorch_optuna.py b/doc/source/tune/doc_code/pytorch_optuna.py index a19699a11297..003c9866c1d3 100644 --- a/doc/source/tune/doc_code/pytorch_optuna.py +++ b/doc/source/tune/doc_code/pytorch_optuna.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import os from filelock import FileLock diff --git a/doc/source/tune/doc_code/stopping.py b/doc/source/tune/doc_code/stopping.py index 3a37b9449355..003971edbc84 100644 --- a/doc/source/tune/doc_code/stopping.py +++ b/doc/source/tune/doc_code/stopping.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __stopping_example_trainable_start__ diff --git a/doc/source/tune/doc_code/trainable.py b/doc/source/tune/doc_code/trainable.py index 8550159961bf..b0467c0e6a06 100644 --- a/doc/source/tune/doc_code/trainable.py +++ b/doc/source/tune/doc_code/trainable.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __example_objective_start__ diff --git a/doc/source/tune/doc_code/trial_checkpoint.py b/doc/source/tune/doc_code/trial_checkpoint.py index 244abe47ace9..95611b9de5d7 100644 --- a/doc/source/tune/doc_code/trial_checkpoint.py +++ b/doc/source/tune/doc_code/trial_checkpoint.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # __class_api_checkpointing_start__ import os diff --git a/doc/source/tune/doc_code/tune.py b/doc/source/tune/doc_code/tune.py index e372f4f2fe64..8ecee4479d83 100644 --- a/doc/source/tune/doc_code/tune.py +++ b/doc/source/tune/doc_code/tune.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __step1_begin__ diff --git a/python/ray/_private/pydantic_compat.py b/python/ray/_private/pydantic_compat.py index 93b83326db47..b405e64ffa8f 100644 --- a/python/ray/_private/pydantic_compat.py +++ b/python/ray/_private/pydantic_compat.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa import packaging.version # Pydantic is a dependency of `ray["default"]` but not the minimal installation, diff --git a/python/ray/air/examples/custom_trainer.py b/python/ray/air/examples/custom_trainer.py index 68063a8b6e14..1ac37ec89230 100644 --- a/python/ray/air/examples/custom_trainer.py +++ b/python/ray/air/examples/custom_trainer.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # TODO(rliaw): Include this in the docs. diff --git a/python/ray/dashboard/modules/event/tests/test_generate_export_events.py b/python/ray/dashboard/modules/event/tests/test_generate_export_events.py index 349dfaddb490..9894a7de07ff 100644 --- a/python/ray/dashboard/modules/event/tests/test_generate_export_events.py +++ b/python/ray/dashboard/modules/event/tests/test_generate_export_events.py @@ -1,5 +1,5 @@ # isort: skip_file -# flake8: noqa E402 +# ruff: noqa: E402 import json import os import sys diff --git a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py index 228537bbcdb4..e252fbfec092 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py @@ -1,4 +1,4 @@ -# flake8: noqa E501 +# ruff: noqa: E501 import dataclasses from typing import Dict diff --git a/python/ray/dashboard/modules/metrics/dashboards/default_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/default_dashboard_panels.py index a6c834a33dcd..96560f0995b8 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/default_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/default_dashboard_panels.py @@ -1,4 +1,4 @@ -# flake8: noqa E501 +# ruff: noqa: E501 from ray.dashboard.modules.metrics.dashboards.common import ( DashboardConfig, diff --git a/python/ray/dashboard/modules/metrics/dashboards/serve_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/serve_dashboard_panels.py index 0e0d4ad4a0b3..fddf96fd810f 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/serve_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/serve_dashboard_panels.py @@ -1,4 +1,4 @@ -# flake8: noqa E501 +# ruff: noqa: E501 from ray.dashboard.modules.metrics.dashboards.common import ( DashboardConfig, diff --git a/python/ray/dashboard/modules/metrics/dashboards/serve_deployment_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/serve_deployment_dashboard_panels.py index e20a153c73e9..67cb70db01c4 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/serve_deployment_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/serve_deployment_dashboard_panels.py @@ -1,4 +1,4 @@ -# flake8: noqa E501 +# ruff: noqa: E501 from ray.dashboard.modules.metrics.dashboards.common import ( DashboardConfig, diff --git a/python/ray/serve/tests/common/remote_uris.py b/python/ray/serve/tests/common/remote_uris.py index 8e25ac573285..d51244d70b2a 100644 --- a/python/ray/serve/tests/common/remote_uris.py +++ b/python/ray/serve/tests/common/remote_uris.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa """ This file contains links to pinned versions of remote URIs used in testing. diff --git a/python/ray/setup-dev.py b/python/ray/setup-dev.py index d26d377a65f5..75c7bae79e1a 100755 --- a/python/ray/setup-dev.py +++ b/python/ray/setup-dev.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# flake8: noqa E402 +# ruff: noqa: E402 """This script allows you to develop Ray Python code without needing to compile Ray. See https://docs.ray.io/en/master/development.html#building-ray-python-only""" diff --git a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_mlflow.py b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_mlflow.py index 615d23a4c4e0..c0cdee6a7e25 100644 --- a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_mlflow.py +++ b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_mlflow.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file import os import tempfile diff --git a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_model_dl.py b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_model_dl.py index f09ec351fd44..f1e72d59cd38 100644 --- a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_model_dl.py +++ b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_model_dl.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # # isort: skip_file diff --git a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_tensorboard.py b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_tensorboard.py index 0c75ff7c0fd0..c20c198fef64 100644 --- a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_tensorboard.py +++ b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_tensorboard.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file import os diff --git a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_wandb.py b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_wandb.py index 07f1277d176a..f8ae5c742f9b 100644 --- a/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_wandb.py +++ b/python/ray/train/examples/experiment_tracking/lightning_exp_tracking_wandb.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # # isort: skip_file diff --git a/python/ray/train/examples/experiment_tracking/torch_exp_tracking_mlflow.py b/python/ray/train/examples/experiment_tracking/torch_exp_tracking_mlflow.py index a3c4f0feb67d..41d13d33f17c 100644 --- a/python/ray/train/examples/experiment_tracking/torch_exp_tracking_mlflow.py +++ b/python/ray/train/examples/experiment_tracking/torch_exp_tracking_mlflow.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file from filelock import FileLock import os diff --git a/python/ray/train/examples/experiment_tracking/torch_exp_tracking_wandb.py b/python/ray/train/examples/experiment_tracking/torch_exp_tracking_wandb.py index 271c1fe24b32..9489b4ceac23 100644 --- a/python/ray/train/examples/experiment_tracking/torch_exp_tracking_wandb.py +++ b/python/ray/train/examples/experiment_tracking/torch_exp_tracking_wandb.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # isort: off diff --git a/python/ray/train/examples/pytorch/torch_quick_start.py b/python/ray/train/examples/pytorch/torch_quick_start.py index bf4a7fa83aa8..df1ae3461bd7 100644 --- a/python/ray/train/examples/pytorch/torch_quick_start.py +++ b/python/ray/train/examples/pytorch/torch_quick_start.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # isort: skip_file diff --git a/python/ray/train/examples/tf/tensorflow_quick_start.py b/python/ray/train/examples/tf/tensorflow_quick_start.py index 76e4128e8e0b..4b0786759602 100644 --- a/python/ray/train/examples/tf/tensorflow_quick_start.py +++ b/python/ray/train/examples/tf/tensorflow_quick_start.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # isort: skip_file diff --git a/python/ray/tune/examples/cifar10_pytorch.py b/python/ray/tune/examples/cifar10_pytorch.py index 572522bb8698..972773f77cb3 100644 --- a/python/ray/tune/examples/cifar10_pytorch.py +++ b/python/ray/tune/examples/cifar10_pytorch.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # fmt: off # __import_begin__ diff --git a/python/ray/tune/examples/pbt_convnet_example.py b/python/ray/tune/examples/pbt_convnet_example.py index 27e18e243ad8..e9d7a3936a59 100644 --- a/python/ray/tune/examples/pbt_convnet_example.py +++ b/python/ray/tune/examples/pbt_convnet_example.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# flake8: noqa +# ruff: noqa # fmt: off # __tutorial_imports_begin__ diff --git a/python/ray/tune/tests/example.py b/python/ray/tune/tests/example.py index c29970c8f2c3..c7f4c87d6c47 100644 --- a/python/ray/tune/tests/example.py +++ b/python/ray/tune/tests/example.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # This is an example quickstart for Tune. # To connect to a cluster, uncomment below: diff --git a/python/ray/tune/tests/tutorial.py b/python/ray/tune/tests/tutorial.py index 0aaaa980fba8..81d4c0f61a83 100644 --- a/python/ray/tune/tests/tutorial.py +++ b/python/ray/tune/tests/tutorial.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa # isort: skip_file # Original Code: https://github.com/pytorch/examples/blob/master/mnist/main.py